代码修改后的版本,全部提交
This commit is contained in:
134
TencentCloud/Tia/V20180226/Models/CreateJobRequest.cs
Normal file
134
TencentCloud/Tia/V20180226/Models/CreateJobRequest.cs
Normal file
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateJobRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的集群,详见 [使用集群](https://cloud.tencent.com/document/product/851/17317)
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的环境,详见 [运行环境](https://cloud.tencent.com/document/product/851/17320)
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeVersion")]
|
||||
public string RuntimeVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 挂载的路径,支持 NFS,[CFS](https://cloud.tencent.com/product/cfs) 和 [COS](https://cloud.tencent.com/product/cos),其中 COS 只在 [TI-A 定制环境](https://cloud.tencent.com/document/product/851/17320#ti-a-.E5.AE.9A.E5.88.B6.E7.8E.AF.E5.A2.83) 中支持
|
||||
/// </summary>
|
||||
[JsonProperty("PackageDir")]
|
||||
public string[] PackageDir{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务启动命令
|
||||
/// </summary>
|
||||
[JsonProperty("Command")]
|
||||
public string[] Command{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务启动参数
|
||||
/// </summary>
|
||||
[JsonProperty("Args")]
|
||||
public string[] Args{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的配置信息,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("ScaleTier")]
|
||||
public string ScaleTier{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Master 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("MasterType")]
|
||||
public string MasterType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Worker 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("WorkerType")]
|
||||
public string WorkerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Parameter server 机器类型,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("ParameterServerType")]
|
||||
public string ParameterServerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Worker 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("WorkerCount")]
|
||||
public ulong? WorkerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Parameter server 机器数量,ScaleTier 取值为 `CUSTOM` 时必填,详见 [训练规模](https://cloud.tencent.com/document/product/851/17319)
|
||||
/// </summary>
|
||||
[JsonProperty("ParameterServerCount")]
|
||||
public ulong? ParameterServerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启动 debug 模式,默认为 false
|
||||
/// </summary>
|
||||
[JsonProperty("Debug")]
|
||||
public bool? Debug{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的其他配置信息
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeConf")]
|
||||
public string[] RuntimeConf{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "RuntimeVersion", this.RuntimeVersion);
|
||||
this.SetParamArraySimple(map, prefix + "PackageDir.", this.PackageDir);
|
||||
this.SetParamArraySimple(map, prefix + "Command.", this.Command);
|
||||
this.SetParamArraySimple(map, prefix + "Args.", this.Args);
|
||||
this.SetParamSimple(map, prefix + "ScaleTier", this.ScaleTier);
|
||||
this.SetParamSimple(map, prefix + "MasterType", this.MasterType);
|
||||
this.SetParamSimple(map, prefix + "WorkerType", this.WorkerType);
|
||||
this.SetParamSimple(map, prefix + "ParameterServerType", this.ParameterServerType);
|
||||
this.SetParamSimple(map, prefix + "WorkerCount", this.WorkerCount);
|
||||
this.SetParamSimple(map, prefix + "ParameterServerCount", this.ParameterServerCount);
|
||||
this.SetParamSimple(map, prefix + "Debug", this.Debug);
|
||||
this.SetParamArraySimple(map, prefix + "RuntimeConf.", this.RuntimeConf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/CreateJobResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/CreateJobResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateJobResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 训练任务信息
|
||||
/// </summary>
|
||||
[JsonProperty("Job")]
|
||||
public Job Job{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Job.", this.Job);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
99
TencentCloud/Tia/V20180226/Models/CreateModelRequest.cs
Normal file
99
TencentCloud/Tia/V20180226/Models/CreateModelRequest.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateModelRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模型名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要部署的模型文件路径名
|
||||
/// </summary>
|
||||
[JsonProperty("Model")]
|
||||
public string Model{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关于模型的描述
|
||||
/// </summary>
|
||||
[JsonProperty("Description")]
|
||||
public string Description{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署目标集群的名称,`集群模式` 必填
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行环境镜像的标签,详见 [Serving 环境](https://cloud.tencent.com/document/product/851/17320#serving-.E7.8E.AF.E5.A2.83)
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeVersion")]
|
||||
public string RuntimeVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要部署的模型副本数目,`集群模式` 选填
|
||||
/// </summary>
|
||||
[JsonProperty("Replicas")]
|
||||
public ulong? Replicas{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 暴露外网或内网,默认暴露外网,`集群模式` 选填
|
||||
/// </summary>
|
||||
[JsonProperty("Expose")]
|
||||
public string Expose{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署模式,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式` 下服务的运行规模,形如 `2U4G1P`,详见 [自定义的训练规模](https://cloud.tencent.com/document/product/851/17319#.E8.87.AA.E5.AE.9A.E4.B9.89.E7.9A.84.E8.AE.AD.E7.BB.83.E8.A7.84.E6.A8.A1)
|
||||
/// </summary>
|
||||
[JsonProperty("ServType")]
|
||||
public string ServType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// `无服务器模式` 可选的其他配置信息,详见 [利用无服务器函数部署](https://cloud.tencent.com/document/product/851/17049#.E5.88.A9.E7.94.A8.E6.97.A0.E6.9C.8D.E5.8A.A1.E5.99.A8.E5.87.BD.E6.95.B0.E9.83.A8.E7.BD.B2)
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeConf")]
|
||||
public string[] RuntimeConf{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Model", this.Model);
|
||||
this.SetParamSimple(map, prefix + "Description", this.Description);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "RuntimeVersion", this.RuntimeVersion);
|
||||
this.SetParamSimple(map, prefix + "Replicas", this.Replicas);
|
||||
this.SetParamSimple(map, prefix + "Expose", this.Expose);
|
||||
this.SetParamSimple(map, prefix + "ServType", this.ServType);
|
||||
this.SetParamArraySimple(map, prefix + "RuntimeConf.", this.RuntimeConf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/CreateModelResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/CreateModelResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateModelResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模型的详细信息
|
||||
/// </summary>
|
||||
[JsonProperty("Model")]
|
||||
public ModelInfo Model{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Model.", this.Model);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/DeleteJobRequest.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/DeleteJobRequest.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteJobRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的集群
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Tia/V20180226/Models/DeleteJobResponse.cs
Normal file
43
TencentCloud/Tia/V20180226/Models/DeleteJobResponse.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteJobResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tia/V20180226/Models/DeleteModelRequest.cs
Normal file
57
TencentCloud/Tia/V20180226/Models/DeleteModelRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteModelRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 要删除的模型名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要删除的模型所在的集群名称,`集群模式` 必填
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`
|
||||
/// </summary>
|
||||
[JsonProperty("ServType")]
|
||||
public string ServType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "ServType", this.ServType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Tia/V20180226/Models/DeleteModelResponse.cs
Normal file
43
TencentCloud/Tia/V20180226/Models/DeleteModelResponse.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteModelResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/DescribeJobRequest.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/DescribeJobRequest.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeJobRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的集群
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/DescribeJobResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/DescribeJobResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeJobResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 训练任务信息
|
||||
/// </summary>
|
||||
[JsonProperty("Job")]
|
||||
public Job Job{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Job.", this.Job);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tia/V20180226/Models/DescribeModelRequest.cs
Normal file
57
TencentCloud/Tia/V20180226/Models/DescribeModelRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeModelRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模型名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型所在集群名称,`集群模式` 必填
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`
|
||||
/// </summary>
|
||||
[JsonProperty("ServType")]
|
||||
public string ServType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "ServType", this.ServType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/DescribeModelResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/DescribeModelResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeModelResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模型信息
|
||||
/// </summary>
|
||||
[JsonProperty("Model")]
|
||||
public ModelInfo Model{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Model.", this.Model);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tia/V20180226/Models/InstallAgentRequest.cs
Normal file
57
TencentCloud/Tia/V20180226/Models/InstallAgentRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class InstallAgentRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 集群名称
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Agent版本, 用于私有集群的agent安装,默认为“private-training”
|
||||
/// </summary>
|
||||
[JsonProperty("TiaVersion")]
|
||||
public string TiaVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许更新Agent
|
||||
/// </summary>
|
||||
[JsonProperty("Update")]
|
||||
public bool? Update{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "TiaVersion", this.TiaVersion);
|
||||
this.SetParamSimple(map, prefix + "Update", this.Update);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/InstallAgentResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/InstallAgentResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class InstallAgentResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Agent版本, 用于私有集群的agent安装
|
||||
/// </summary>
|
||||
[JsonProperty("TiaVersion")]
|
||||
public string TiaVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TiaVersion", this.TiaVersion);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
197
TencentCloud/Tia/V20180226/Models/Job.cs
Normal file
197
TencentCloud/Tia/V20180226/Models/Job.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Job : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务创建时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务开始时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务结束时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务状态,可能的状态为Created(已创建),Running(运行中),Succeeded(运行完成:成功),Failed(运行完成:失败)
|
||||
/// </summary>
|
||||
[JsonProperty("State")]
|
||||
public string State{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务状态信息
|
||||
/// </summary>
|
||||
[JsonProperty("Message")]
|
||||
public string Message{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的配置信息
|
||||
/// </summary>
|
||||
[JsonProperty("ScaleTier")]
|
||||
public string ScaleTier{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// (ScaleTier为Custom时)master机器类型
|
||||
/// </summary>
|
||||
[JsonProperty("MasterType")]
|
||||
public string MasterType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// (ScaleTier为Custom时)worker机器类型
|
||||
/// </summary>
|
||||
[JsonProperty("WorkerType")]
|
||||
public string WorkerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// (ScaleTier为Custom时)parameter server机器类型
|
||||
/// </summary>
|
||||
[JsonProperty("ParameterServerType")]
|
||||
public string ParameterServerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// (ScaleTier为Custom时)worker机器数量
|
||||
/// </summary>
|
||||
[JsonProperty("WorkerCount")]
|
||||
public ulong? WorkerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// (ScaleTier为Custom时)parameter server机器数量
|
||||
/// </summary>
|
||||
[JsonProperty("ParameterServerCount")]
|
||||
public ulong? ParameterServerCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 挂载的路径
|
||||
/// </summary>
|
||||
[JsonProperty("PackageDir")]
|
||||
public string[] PackageDir{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务启动命令
|
||||
/// </summary>
|
||||
[JsonProperty("Command")]
|
||||
public string[] Command{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务启动参数
|
||||
/// </summary>
|
||||
[JsonProperty("Args")]
|
||||
public string[] Args{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的集群
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的环境
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeVersion")]
|
||||
public string RuntimeVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
|
||||
/// </summary>
|
||||
[JsonProperty("DelTime")]
|
||||
public string DelTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建任务的AppId
|
||||
/// </summary>
|
||||
[JsonProperty("AppId")]
|
||||
public ulong? AppId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建任务的Uin
|
||||
/// </summary>
|
||||
[JsonProperty("Uin")]
|
||||
public string Uin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建任务的Debug模式
|
||||
/// </summary>
|
||||
[JsonProperty("Debug")]
|
||||
public bool? Debug{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Runtime的额外配置信息
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeConf")]
|
||||
public string[] RuntimeConf{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务Id
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamSimple(map, prefix + "State", this.State);
|
||||
this.SetParamSimple(map, prefix + "Message", this.Message);
|
||||
this.SetParamSimple(map, prefix + "ScaleTier", this.ScaleTier);
|
||||
this.SetParamSimple(map, prefix + "MasterType", this.MasterType);
|
||||
this.SetParamSimple(map, prefix + "WorkerType", this.WorkerType);
|
||||
this.SetParamSimple(map, prefix + "ParameterServerType", this.ParameterServerType);
|
||||
this.SetParamSimple(map, prefix + "WorkerCount", this.WorkerCount);
|
||||
this.SetParamSimple(map, prefix + "ParameterServerCount", this.ParameterServerCount);
|
||||
this.SetParamArraySimple(map, prefix + "PackageDir.", this.PackageDir);
|
||||
this.SetParamArraySimple(map, prefix + "Command.", this.Command);
|
||||
this.SetParamArraySimple(map, prefix + "Args.", this.Args);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "RuntimeVersion", this.RuntimeVersion);
|
||||
this.SetParamSimple(map, prefix + "DelTime", this.DelTime);
|
||||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||||
this.SetParamSimple(map, prefix + "Uin", this.Uin);
|
||||
this.SetParamSimple(map, prefix + "Debug", this.Debug);
|
||||
this.SetParamArraySimple(map, prefix + "RuntimeConf.", this.RuntimeConf);
|
||||
this.SetParamSimple(map, prefix + "Id", this.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tia/V20180226/Models/ListJobsRequest.cs
Normal file
57
TencentCloud/Tia/V20180226/Models/ListJobsRequest.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ListJobsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 运行任务的集群
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页参数,返回数量
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页参数,起始位置
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/ListJobsResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/ListJobsResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ListJobsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 训练任务列表
|
||||
/// </summary>
|
||||
[JsonProperty("Jobs")]
|
||||
public Job[] Jobs{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Jobs.", this.Jobs);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Tia/V20180226/Models/ListModelsRequest.cs
Normal file
64
TencentCloud/Tia/V20180226/Models/ListModelsRequest.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ListModelsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 部署模型的集群, `集群模式` 必填
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页参数,返回数量上限
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页参数,分页起始位置
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署类型,取值 `serverless` 即为 `无服务器模式`,否则为 `集群模式`。
|
||||
/// </summary>
|
||||
[JsonProperty("ServType")]
|
||||
public string ServType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "ServType", this.ServType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Tia/V20180226/Models/ListModelsResponse.cs
Normal file
50
TencentCloud/Tia/V20180226/Models/ListModelsResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ListModelsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Model 数组,用以显示所有模型的信息
|
||||
/// </summary>
|
||||
[JsonProperty("Models")]
|
||||
public ModelInfo[] Models{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Models.", this.Models);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Tia/V20180226/Models/LogInfo.cs
Normal file
78
TencentCloud/Tia/V20180226/Models/LogInfo.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class LogInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 容器名
|
||||
/// </summary>
|
||||
[JsonProperty("ContainerName")]
|
||||
public string ContainerName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志内容
|
||||
/// </summary>
|
||||
[JsonProperty("Log")]
|
||||
public string Log{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空间名
|
||||
/// </summary>
|
||||
[JsonProperty("Namespace")]
|
||||
public string Namespace{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Pod Id
|
||||
/// </summary>
|
||||
[JsonProperty("PodId")]
|
||||
public string PodId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Pod名
|
||||
/// </summary>
|
||||
[JsonProperty("PodName")]
|
||||
public string PodName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志日期,格式为“2018-07-02T09:10:04.916553368Z”
|
||||
/// </summary>
|
||||
[JsonProperty("Time")]
|
||||
public string Time{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "ContainerName", this.ContainerName);
|
||||
this.SetParamSimple(map, prefix + "Log", this.Log);
|
||||
this.SetParamSimple(map, prefix + "Namespace", this.Namespace);
|
||||
this.SetParamSimple(map, prefix + "PodId", this.PodId);
|
||||
this.SetParamSimple(map, prefix + "PodName", this.PodName);
|
||||
this.SetParamSimple(map, prefix + "Time", this.Time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
148
TencentCloud/Tia/V20180226/Models/ModelInfo.cs
Normal file
148
TencentCloud/Tia/V20180226/Models/ModelInfo.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModelInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模型名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型描述
|
||||
/// </summary>
|
||||
[JsonProperty("Description")]
|
||||
public string Description{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 集群名称
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型地址
|
||||
/// </summary>
|
||||
[JsonProperty("Model")]
|
||||
public string Model{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行环境编号
|
||||
/// </summary>
|
||||
[JsonProperty("RuntimeVersion")]
|
||||
public string RuntimeVersion{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型创建时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型运行状态
|
||||
/// </summary>
|
||||
[JsonProperty("State")]
|
||||
public string State{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提供服务的url
|
||||
/// </summary>
|
||||
[JsonProperty("ServingUrl")]
|
||||
public string ServingUrl{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 相关消息
|
||||
/// </summary>
|
||||
[JsonProperty("Message")]
|
||||
public string Message{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[JsonProperty("AppId")]
|
||||
public ulong? AppId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机型
|
||||
/// </summary>
|
||||
[JsonProperty("ServType")]
|
||||
public string ServType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型暴露方式
|
||||
/// </summary>
|
||||
[JsonProperty("Expose")]
|
||||
public string Expose{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部署副本数量
|
||||
/// </summary>
|
||||
[JsonProperty("Replicas")]
|
||||
public ulong? Replicas{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型Id
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建任务的Uin
|
||||
/// </summary>
|
||||
[JsonProperty("Uin")]
|
||||
public string Uin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST
|
||||
/// </summary>
|
||||
[JsonProperty("DelTime")]
|
||||
public string DelTime{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Description", this.Description);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "Model", this.Model);
|
||||
this.SetParamSimple(map, prefix + "RuntimeVersion", this.RuntimeVersion);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "State", this.State);
|
||||
this.SetParamSimple(map, prefix + "ServingUrl", this.ServingUrl);
|
||||
this.SetParamSimple(map, prefix + "Message", this.Message);
|
||||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||||
this.SetParamSimple(map, prefix + "ServType", this.ServType);
|
||||
this.SetParamSimple(map, prefix + "Expose", this.Expose);
|
||||
this.SetParamSimple(map, prefix + "Replicas", this.Replicas);
|
||||
this.SetParamSimple(map, prefix + "Id", this.Id);
|
||||
this.SetParamSimple(map, prefix + "Uin", this.Uin);
|
||||
this.SetParamSimple(map, prefix + "DelTime", this.DelTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Tia/V20180226/Models/QueryLogsRequest.cs
Normal file
78
TencentCloud/Tia/V20180226/Models/QueryLogsRequest.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class QueryLogsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务的名称
|
||||
/// </summary>
|
||||
[JsonProperty("JobName")]
|
||||
public string JobName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务所在集群的名称
|
||||
/// </summary>
|
||||
[JsonProperty("Cluster")]
|
||||
public string Cluster{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询日志的开始时间,格式:2019-01-01 00:00:00
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询日志的结束时间,格式:2019-01-01 00:00:00
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单次要返回的日志条数上限
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加载更多日志时使用,透传上次返回的 Context 值,获取后续的日志内容;使用 Context 翻页最多能获取 10000 条日志
|
||||
/// </summary>
|
||||
[JsonProperty("Context")]
|
||||
public string Context{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "JobName", this.JobName);
|
||||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "Context", this.Context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Tia/V20180226/Models/QueryLogsResponse.cs
Normal file
64
TencentCloud/Tia/V20180226/Models/QueryLogsResponse.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tia.V20180226.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class QueryLogsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 日志查询上下文,用于加载更多日志
|
||||
/// </summary>
|
||||
[JsonProperty("Context")]
|
||||
public string Context{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志内容列表
|
||||
/// </summary>
|
||||
[JsonProperty("Logs")]
|
||||
public LogInfo[] Logs{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否已经返回所有符合条件的日志
|
||||
/// </summary>
|
||||
[JsonProperty("Listover")]
|
||||
public bool? Listover{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Context", this.Context);
|
||||
this.SetParamArrayObj(map, prefix + "Logs.", this.Logs);
|
||||
this.SetParamSimple(map, prefix + "Listover", this.Listover);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user