135 lines
4.4 KiB
C#
135 lines
4.4 KiB
C#
/*
|
||
* 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.Tiems.V20190416.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>
|
||
/// 使用的资源组 Id,默认使用共享资源组
|
||
/// </summary>
|
||
[JsonProperty("ResourceGroupId")]
|
||
public string ResourceGroupId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 处理器配置, 单位为1/1000核;范围[100, 256000]
|
||
/// </summary>
|
||
[JsonProperty("Cpu")]
|
||
public ulong? Cpu{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 内存配置, 单位为1M;范围[100, 256000]
|
||
/// </summary>
|
||
[JsonProperty("Memory")]
|
||
public ulong? Memory{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 运行集群
|
||
/// </summary>
|
||
[JsonProperty("Cluster")]
|
||
public string Cluster{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 预测输入
|
||
/// </summary>
|
||
[JsonProperty("PredictInput")]
|
||
public PredictInput PredictInput{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务描述
|
||
/// </summary>
|
||
[JsonProperty("Description")]
|
||
public string Description{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 同时处理任务的 Worker 个数
|
||
/// </summary>
|
||
[JsonProperty("WorkerCount")]
|
||
public ulong? WorkerCount{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 使用的配置 Id
|
||
/// </summary>
|
||
[JsonProperty("ConfigId")]
|
||
public string ConfigId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
|
||
/// </summary>
|
||
[JsonProperty("Gpu")]
|
||
public ulong? Gpu{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 显存配置, 单位为1M,范围 [0, 256000]
|
||
/// </summary>
|
||
[JsonProperty("GpuMemory")]
|
||
public ulong? GpuMemory{ get; set; }
|
||
|
||
/// <summary>
|
||
/// GPU类型
|
||
/// </summary>
|
||
[JsonProperty("GpuType")]
|
||
public string GpuType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 量化输入
|
||
/// </summary>
|
||
[JsonProperty("QuantizationInput")]
|
||
public QuantizationInput QuantizationInput{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Cls日志主题ID
|
||
/// </summary>
|
||
[JsonProperty("LogTopicId")]
|
||
public string LogTopicId{ 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 + "ResourceGroupId", this.ResourceGroupId);
|
||
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
|
||
this.SetParamSimple(map, prefix + "Memory", this.Memory);
|
||
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
|
||
this.SetParamObj(map, prefix + "PredictInput.", this.PredictInput);
|
||
this.SetParamSimple(map, prefix + "Description", this.Description);
|
||
this.SetParamSimple(map, prefix + "WorkerCount", this.WorkerCount);
|
||
this.SetParamSimple(map, prefix + "ConfigId", this.ConfigId);
|
||
this.SetParamSimple(map, prefix + "Gpu", this.Gpu);
|
||
this.SetParamSimple(map, prefix + "GpuMemory", this.GpuMemory);
|
||
this.SetParamSimple(map, prefix + "GpuType", this.GpuType);
|
||
this.SetParamObj(map, prefix + "QuantizationInput.", this.QuantizationInput);
|
||
this.SetParamSimple(map, prefix + "LogTopicId", this.LogTopicId);
|
||
}
|
||
}
|
||
}
|
||
|