代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Activity : AbstractModel
{
/// <summary>
/// 活动ID
/// </summary>
[JsonProperty("ActivityId")]
public string ActivityId{ get; set; }
/// <summary>
/// 计算节点ID
/// </summary>
[JsonProperty("ComputeNodeId")]
public string ComputeNodeId{ get; set; }
/// <summary>
/// 计算节点活动类型,创建或者销毁
/// </summary>
[JsonProperty("ComputeNodeActivityType")]
public string ComputeNodeActivityType{ get; set; }
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 起因
/// </summary>
[JsonProperty("Cause")]
public string Cause{ get; set; }
/// <summary>
/// 活动状态
/// </summary>
[JsonProperty("ActivityState")]
public string ActivityState{ get; set; }
/// <summary>
/// 状态原因
/// </summary>
[JsonProperty("StateReason")]
public string StateReason{ get; set; }
/// <summary>
/// 活动开始时间
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 活动结束时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 云服务器实例ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ 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 + "ActivityId", this.ActivityId);
this.SetParamSimple(map, prefix + "ComputeNodeId", this.ComputeNodeId);
this.SetParamSimple(map, prefix + "ComputeNodeActivityType", this.ComputeNodeActivityType);
this.SetParamSimple(map, prefix + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "Cause", this.Cause);
this.SetParamSimple(map, prefix + "ActivityState", this.ActivityState);
this.SetParamSimple(map, prefix + "StateReason", this.StateReason);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AgentRunningMode : AbstractModel
{
/// <summary>
/// 场景类型支持WINDOWS
/// </summary>
[JsonProperty("Scene")]
public string Scene{ get; set; }
/// <summary>
/// 运行Agent的User
/// </summary>
[JsonProperty("User")]
public string User{ get; set; }
/// <summary>
/// 运行Agent的Session
/// </summary>
[JsonProperty("Session")]
public string Session{ 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 + "Scene", this.Scene);
this.SetParamSimple(map, prefix + "User", this.User);
this.SetParamSimple(map, prefix + "Session", this.Session);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AnonymousComputeEnv : AbstractModel
{
/// <summary>
/// 计算环境管理类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算环境具体参数
/// </summary>
[JsonProperty("EnvData")]
public EnvData EnvData{ get; set; }
/// <summary>
/// 数据盘挂载选项
/// </summary>
[JsonProperty("MountDataDisks")]
public MountDataDisk[] MountDataDisks{ get; set; }
/// <summary>
/// agent运行模式适用于Windows系统
/// </summary>
[JsonProperty("AgentRunningMode")]
public AgentRunningMode AgentRunningMode{ 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 + "EnvType", this.EnvType);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
this.SetParamArrayObj(map, prefix + "MountDataDisks.", this.MountDataDisks);
this.SetParamObj(map, prefix + "AgentRunningMode.", this.AgentRunningMode);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Application : AbstractModel
{
/// <summary>
/// 任务执行命令
/// </summary>
[JsonProperty("Command")]
public string Command{ get; set; }
/// <summary>
/// 应用程序的交付方式包括PACKAGE、LOCAL 两种取值,分别指远程存储的软件包、计算环境本地。
/// </summary>
[JsonProperty("DeliveryForm")]
public string DeliveryForm{ get; set; }
/// <summary>
/// 应用程序软件包的远程存储路径
/// </summary>
[JsonProperty("PackagePath")]
public string PackagePath{ get; set; }
/// <summary>
/// 应用使用Docker的相关配置。在使用Docker配置的情况下DeliveryForm 为 LOCAL 表示直接使用Docker镜像内部的应用软件通过Docker方式运行DeliveryForm 为 PACKAGE表示将远程应用包注入到Docker镜像后通过Docker方式运行。为避免Docker不同版本的兼容性问题Docker安装包及相关依赖由Batch统一负责对于已安装Docker的自定义镜像请卸载后再使用Docker特性。
/// </summary>
[JsonProperty("Docker")]
public Docker Docker{ 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 + "Command", this.Command);
this.SetParamSimple(map, prefix + "DeliveryForm", this.DeliveryForm);
this.SetParamSimple(map, prefix + "PackagePath", this.PackagePath);
this.SetParamObj(map, prefix + "Docker.", this.Docker);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AttachInstancesRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 加入计算环境实例列表
/// </summary>
[JsonProperty("Instances")]
public Instance[] Instances{ 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 + "EnvId", this.EnvId);
this.SetParamArrayObj(map, prefix + "Instances.", this.Instances);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AttachInstancesResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Authentication : AbstractModel
{
/// <summary>
/// 授权场景例如COS
/// </summary>
[JsonProperty("Scene")]
public string Scene{ get; set; }
/// <summary>
/// SecretId
/// </summary>
[JsonProperty("SecretId")]
public string SecretId{ get; set; }
/// <summary>
/// SecretKey
/// </summary>
[JsonProperty("SecretKey")]
public string SecretKey{ 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 + "Scene", this.Scene);
this.SetParamSimple(map, prefix + "SecretId", this.SecretId);
this.SetParamSimple(map, prefix + "SecretKey", this.SecretKey);
}
}
}

View File

@@ -0,0 +1,112 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ComputeEnvCreateInfo : AbstractModel
{
/// <summary>
/// 计算环境 ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 计算环境名称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 计算环境描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnvDescription")]
public string EnvDescription{ get; set; }
/// <summary>
/// 计算环境类型仅支持“MANAGED”类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算环境参数
/// </summary>
[JsonProperty("EnvData")]
public EnvData EnvData{ get; set; }
/// <summary>
/// 数据盘挂载选项
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MountDataDisks")]
public MountDataDisk[] MountDataDisks{ get; set; }
/// <summary>
/// 输入映射
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InputMappings")]
public InputMapping[] InputMappings{ get; set; }
/// <summary>
/// 授权信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Authentications")]
public Authentication[] Authentications{ get; set; }
/// <summary>
/// 通知信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Notifications")]
public Notification[] Notifications{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public ulong? DesiredComputeNodeCount{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "EnvName", this.EnvName);
this.SetParamSimple(map, prefix + "EnvDescription", this.EnvDescription);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
this.SetParamArrayObj(map, prefix + "MountDataDisks.", this.MountDataDisks);
this.SetParamArrayObj(map, prefix + "InputMappings.", this.InputMappings);
this.SetParamArrayObj(map, prefix + "Authentications.", this.Authentications);
this.SetParamArrayObj(map, prefix + "Notifications.", this.Notifications);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ComputeEnvData : AbstractModel
{
/// <summary>
/// CVM实例类型列表
/// </summary>
[JsonProperty("InstanceTypes")]
public string[] InstanceTypes{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "InstanceTypes.", this.InstanceTypes);
}
}
}

View File

@@ -0,0 +1,106 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ComputeEnvView : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 位置信息
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 计算节点统计指标
/// </summary>
[JsonProperty("ComputeNodeMetrics")]
public ComputeNodeMetrics ComputeNodeMetrics{ get; set; }
/// <summary>
/// 计算环境类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public ulong? DesiredComputeNodeCount{ get; set; }
/// <summary>
/// 计算环境资源类型当前为CVM和CPM黑石
/// </summary>
[JsonProperty("ResourceType")]
public string ResourceType{ get; set; }
/// <summary>
/// 下一步动作
/// </summary>
[JsonProperty("NextAction")]
public string NextAction{ get; set; }
/// <summary>
/// 用户添加到计算环境中的计算节点个数
/// </summary>
[JsonProperty("AttachedComputeNodeCount")]
public ulong? AttachedComputeNodeCount{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "EnvName", this.EnvName);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamObj(map, prefix + "ComputeNodeMetrics.", this.ComputeNodeMetrics);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "ResourceType", this.ResourceType);
this.SetParamSimple(map, prefix + "NextAction", this.NextAction);
this.SetParamSimple(map, prefix + "AttachedComputeNodeCount", this.AttachedComputeNodeCount);
}
}
}

View File

@@ -0,0 +1,121 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ComputeNode : AbstractModel
{
/// <summary>
/// 计算节点ID
/// </summary>
[JsonProperty("ComputeNodeId")]
public string ComputeNodeId{ get; set; }
/// <summary>
/// 计算节点实例ID对于CVM场景即为CVM的InstanceId
/// </summary>
[JsonProperty("ComputeNodeInstanceId")]
public string ComputeNodeInstanceId{ get; set; }
/// <summary>
/// 计算节点状态
/// </summary>
[JsonProperty("ComputeNodeState")]
public string ComputeNodeState{ get; set; }
/// <summary>
/// CPU核数
/// </summary>
[JsonProperty("Cpu")]
public ulong? Cpu{ get; set; }
/// <summary>
/// 内存容量单位GiB
/// </summary>
[JsonProperty("Mem")]
public ulong? Mem{ get; set; }
/// <summary>
/// 资源创建完成时间
/// </summary>
[JsonProperty("ResourceCreatedTime")]
public string ResourceCreatedTime{ get; set; }
/// <summary>
/// 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。
/// </summary>
[JsonProperty("TaskInstanceNumAvailable")]
public ulong? TaskInstanceNumAvailable{ get; set; }
/// <summary>
/// Batch Agent 版本
/// </summary>
[JsonProperty("AgentVersion")]
public string AgentVersion{ get; set; }
/// <summary>
/// 实例内网IP
/// </summary>
[JsonProperty("PrivateIpAddresses")]
public string[] PrivateIpAddresses{ get; set; }
/// <summary>
/// 实例公网IP
/// </summary>
[JsonProperty("PublicIpAddresses")]
public string[] PublicIpAddresses{ get; set; }
/// <summary>
/// 计算环境资源类型当前为CVM和CPM黑石
/// </summary>
[JsonProperty("ResourceType")]
public string ResourceType{ get; set; }
/// <summary>
/// 计算环境资源来源。<br>BATCH_CREATED由批量计算创建的实例资源。<br>
/// USER_ATTACHED用户添加到计算环境中的实例资源。
/// </summary>
[JsonProperty("ResourceOrigin")]
public string ResourceOrigin{ 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 + "ComputeNodeId", this.ComputeNodeId);
this.SetParamSimple(map, prefix + "ComputeNodeInstanceId", this.ComputeNodeInstanceId);
this.SetParamSimple(map, prefix + "ComputeNodeState", this.ComputeNodeState);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
this.SetParamSimple(map, prefix + "Mem", this.Mem);
this.SetParamSimple(map, prefix + "ResourceCreatedTime", this.ResourceCreatedTime);
this.SetParamSimple(map, prefix + "TaskInstanceNumAvailable", this.TaskInstanceNumAvailable);
this.SetParamSimple(map, prefix + "AgentVersion", this.AgentVersion);
this.SetParamArraySimple(map, prefix + "PrivateIpAddresses.", this.PrivateIpAddresses);
this.SetParamArraySimple(map, prefix + "PublicIpAddresses.", this.PublicIpAddresses);
this.SetParamSimple(map, prefix + "ResourceType", this.ResourceType);
this.SetParamSimple(map, prefix + "ResourceOrigin", this.ResourceOrigin);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ComputeNodeMetrics : AbstractModel
{
/// <summary>
/// 已经完成提交的计算节点数量
/// </summary>
[JsonProperty("SubmittedCount")]
public ulong? SubmittedCount{ get; set; }
/// <summary>
/// 创建中的计算节点数量
/// </summary>
[JsonProperty("CreatingCount")]
public ulong? CreatingCount{ get; set; }
/// <summary>
/// 创建失败的计算节点数量
/// </summary>
[JsonProperty("CreationFailedCount")]
public ulong? CreationFailedCount{ get; set; }
/// <summary>
/// 完成创建的计算节点数量
/// </summary>
[JsonProperty("CreatedCount")]
public ulong? CreatedCount{ get; set; }
/// <summary>
/// 运行中的计算节点数量
/// </summary>
[JsonProperty("RunningCount")]
public ulong? RunningCount{ get; set; }
/// <summary>
/// 销毁中的计算节点数量
/// </summary>
[JsonProperty("DeletingCount")]
public ulong? DeletingCount{ get; set; }
/// <summary>
/// 异常的计算节点数量
/// </summary>
[JsonProperty("AbnormalCount")]
public ulong? AbnormalCount{ 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 + "SubmittedCount", this.SubmittedCount);
this.SetParamSimple(map, prefix + "CreatingCount", this.CreatingCount);
this.SetParamSimple(map, prefix + "CreationFailedCount", this.CreationFailedCount);
this.SetParamSimple(map, prefix + "CreatedCount", this.CreatedCount);
this.SetParamSimple(map, prefix + "RunningCount", this.RunningCount);
this.SetParamSimple(map, prefix + "DeletingCount", this.DeletingCount);
this.SetParamSimple(map, prefix + "AbnormalCount", this.AbnormalCount);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CpmVirtualPrivateCloud : AbstractModel
{
/// <summary>
/// 黑石私有网络ID
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 黑石子网ID
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ 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 + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateComputeEnvRequest : AbstractModel
{
/// <summary>
/// 计算环境信息
/// </summary>
[JsonProperty("ComputeEnv")]
public NamedComputeEnv ComputeEnv{ get; set; }
/// <summary>
/// 位置信息
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 用于保证请求幂等性的字符串。该字符串由用户生成需保证不同请求之间唯一最大值不超过64个ASCII字符。若不指定该参数则无法保证请求的幂等性。
/// </summary>
[JsonProperty("ClientToken")]
public string ClientToken{ 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 + "ComputeEnv.", this.ComputeEnv);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "ClientToken", this.ClientToken);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateComputeEnvResponse : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateCpmComputeEnvRequest : AbstractModel
{
/// <summary>
/// 计算环境信息
/// </summary>
[JsonProperty("ComputeEnv")]
public NamedCpmComputeEnv ComputeEnv{ get; set; }
/// <summary>
/// 位置信息
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 用于保证请求幂等性的字符串。该字符串由用户生成需保证不同请求之间唯一最大值不超过64个ASCII字符。若不指定该参数则无法保证请求的幂等性。
/// </summary>
[JsonProperty("ClientToken")]
public string ClientToken{ 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 + "ComputeEnv.", this.ComputeEnv);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "ClientToken", this.ClientToken);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateCpmComputeEnvResponse : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTaskTemplateRequest : AbstractModel
{
/// <summary>
/// 任务模板名称
/// </summary>
[JsonProperty("TaskTemplateName")]
public string TaskTemplateName{ get; set; }
/// <summary>
/// 任务模板内容,参数要求与任务一致
/// </summary>
[JsonProperty("TaskTemplateInfo")]
public Task TaskTemplateInfo{ get; set; }
/// <summary>
/// 任务模板描述
/// </summary>
[JsonProperty("TaskTemplateDescription")]
public string TaskTemplateDescription{ 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 + "TaskTemplateName", this.TaskTemplateName);
this.SetParamObj(map, prefix + "TaskTemplateInfo.", this.TaskTemplateInfo);
this.SetParamSimple(map, prefix + "TaskTemplateDescription", this.TaskTemplateDescription);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTaskTemplateResponse : AbstractModel
{
/// <summary>
/// 任务模板ID
/// </summary>
[JsonProperty("TaskTemplateId")]
public string TaskTemplateId{ 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 + "TaskTemplateId", this.TaskTemplateId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,89 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DataDisk : AbstractModel
{
/// <summary>
/// 数据盘大小单位GB。最小调整步长为10G不同数据盘类型取值范围不同具体限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0表示不购买数据盘。更多限制详见产品文档。
/// </summary>
[JsonProperty("DiskSize")]
public long? DiskSize{ get; set; }
/// <summary>
/// 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC本地硬盘<br><li>LOCAL_SSD本地SSD硬盘<br><li>CLOUD_BASIC普通云硬盘<br><li>CLOUD_PREMIUM高性能云硬盘<br><li>CLOUD_SSDSSD云硬盘<br><br>默认取值LOCAL_BASIC。<br><br>该参数对`ResizeInstanceDisk`接口无效。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID暂时不支持该参数。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 数据盘是否随子机销毁。取值范围:
/// <li>TRUE子机销毁时销毁数据盘只支持按小时后付费云盘
/// <li>FALSE子机销毁时保留数据盘<br>
/// 默认取值TRUE<br>
/// 该参数目前仅用于 `RunInstances` 接口。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DeleteWithInstance")]
public bool? DeleteWithInstance{ get; set; }
/// <summary>
/// 数据盘快照ID。选择的数据盘快照大小需小于数据盘大小。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 数据盘是加密。取值范围:
/// <li>TRUE加密
/// <li>FALSE不加密<br>
/// 默认取值FALSE<br>
/// 该参数目前仅用于 `RunInstances` 接口。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Encrypt")]
public bool? Encrypt{ 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 + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
this.SetParamSimple(map, prefix + "SnapshotId", this.SnapshotId);
this.SetParamSimple(map, prefix + "Encrypt", this.Encrypt);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteComputeEnvRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ 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 + "EnvId", this.EnvId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteComputeEnvResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteJobRequest : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ 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 + "JobId", this.JobId);
}
}
}

View 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.Batch.V20170312.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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteTaskTemplatesRequest : AbstractModel
{
/// <summary>
/// 用于删除任务模板信息
/// </summary>
[JsonProperty("TaskTemplateIds")]
public string[] TaskTemplateIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "TaskTemplateIds.", this.TaskTemplateIds);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteTaskTemplatesResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Dependence : AbstractModel
{
/// <summary>
/// 依赖关系的起点任务名称
/// </summary>
[JsonProperty("StartTask")]
public string StartTask{ get; set; }
/// <summary>
/// 依赖关系的终点任务名称
/// </summary>
[JsonProperty("EndTask")]
public string EndTask{ 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 + "StartTask", this.StartTask);
this.SetParamSimple(map, prefix + "EndTask", this.EndTask);
}
}
}

View File

@@ -0,0 +1,45 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAvailableCvmInstanceTypesRequest : AbstractModel
{
/// <summary>
/// 过滤条件。
/// <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
/// <li> instance-family String - 是否必填:否 -过滤条件按照机型系列过滤。实例机型系列形如S1、I1、M1等。</li>
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ 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 + "Filters.", this.Filters);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAvailableCvmInstanceTypesResponse : AbstractModel
{
/// <summary>
/// 机型配置数组
/// </summary>
[JsonProperty("InstanceTypeConfigSet")]
public InstanceTypeConfig[] InstanceTypeConfigSet{ 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 + "InstanceTypeConfigSet.", this.InstanceTypeConfigSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvActivitiesRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 返回数量
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 过滤条件
/// <li> compute-node-id - String - 是否必填:否 -过滤条件按照计算节点ID过滤。</li>
/// </summary>
[JsonProperty("Filters")]
public Filter Filters{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamObj(map, prefix + "Filters.", this.Filters);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvActivitiesResponse : AbstractModel
{
/// <summary>
/// 计算环境中的活动列表
/// </summary>
[JsonProperty("ActivitySet")]
public Activity[] ActivitySet{ get; set; }
/// <summary>
/// 活动数量
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ 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 + "ActivitySet.", this.ActivitySet);
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvCreateInfoRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ 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 + "EnvId", this.EnvId);
}
}
}

View File

@@ -0,0 +1,114 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvCreateInfoResponse : AbstractModel
{
/// <summary>
/// 计算环境 ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 计算环境描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnvDescription")]
public string EnvDescription{ get; set; }
/// <summary>
/// 计算环境类型仅支持“MANAGED”类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算环境参数
/// </summary>
[JsonProperty("EnvData")]
public EnvData EnvData{ get; set; }
/// <summary>
/// 数据盘挂载选项
/// </summary>
[JsonProperty("MountDataDisks")]
public MountDataDisk[] MountDataDisks{ get; set; }
/// <summary>
/// 输入映射
/// </summary>
[JsonProperty("InputMappings")]
public InputMapping[] InputMappings{ get; set; }
/// <summary>
/// 授权信息
/// </summary>
[JsonProperty("Authentications")]
public Authentication[] Authentications{ get; set; }
/// <summary>
/// 通知信息
/// </summary>
[JsonProperty("Notifications")]
public Notification[] Notifications{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public long? DesiredComputeNodeCount{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "EnvName", this.EnvName);
this.SetParamSimple(map, prefix + "EnvDescription", this.EnvDescription);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
this.SetParamArrayObj(map, prefix + "MountDataDisks.", this.MountDataDisks);
this.SetParamArrayObj(map, prefix + "InputMappings.", this.InputMappings);
this.SetParamArrayObj(map, prefix + "Authentications.", this.Authentications);
this.SetParamArrayObj(map, prefix + "Notifications.", this.Notifications);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,68 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvCreateInfosRequest : AbstractModel
{
/// <summary>
/// 计算环境ID列表与Filters参数不能同时指定。
/// </summary>
[JsonProperty("EnvIds")]
public string[] EnvIds{ get; set; }
/// <summary>
/// 过滤条件
/// <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
/// <li> env-id - String - 是否必填:否 -过滤条件按照计算环境ID过滤。</li>
/// <li> env-name - String - 是否必填:否 -(过滤条件)按照计算环境名称过滤。</li>
/// 与EnvIds参数不能同时指定。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "EnvIds.", this.EnvIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvCreateInfosResponse : AbstractModel
{
/// <summary>
/// 计算环境数量
/// </summary>
[JsonProperty("TotalCount")]
public long? TotalCount{ get; set; }
/// <summary>
/// 计算环境创建信息列表
/// </summary>
[JsonProperty("ComputeEnvCreateInfoSet")]
public ComputeEnvCreateInfo[] ComputeEnvCreateInfoSet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "ComputeEnvCreateInfoSet.", this.ComputeEnvCreateInfoSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ 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 + "EnvId", this.EnvId);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvResponse : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 位置信息
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 计算环境创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 计算节点列表信息
/// </summary>
[JsonProperty("ComputeNodeSet")]
public ComputeNode[] ComputeNodeSet{ get; set; }
/// <summary>
/// 计算节点统计指标
/// </summary>
[JsonProperty("ComputeNodeMetrics")]
public ComputeNodeMetrics ComputeNodeMetrics{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public ulong? DesiredComputeNodeCount{ get; set; }
/// <summary>
/// 计算环境类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算环境资源类型当前为CVM和CPM黑石
/// </summary>
[JsonProperty("ResourceType")]
public string ResourceType{ get; set; }
/// <summary>
/// 下一步动作
/// </summary>
[JsonProperty("NextAction")]
public string NextAction{ get; set; }
/// <summary>
/// 用户添加到计算环境中的计算节点个数
/// </summary>
[JsonProperty("AttachedComputeNodeCount")]
public ulong? AttachedComputeNodeCount{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "EnvName", this.EnvName);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamArrayObj(map, prefix + "ComputeNodeSet.", this.ComputeNodeSet);
this.SetParamObj(map, prefix + "ComputeNodeMetrics.", this.ComputeNodeMetrics);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamSimple(map, prefix + "ResourceType", this.ResourceType);
this.SetParamSimple(map, prefix + "NextAction", this.NextAction);
this.SetParamSimple(map, prefix + "AttachedComputeNodeCount", this.AttachedComputeNodeCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,69 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvsRequest : AbstractModel
{
/// <summary>
/// 计算环境ID列表与Filters参数不能同时指定。
/// </summary>
[JsonProperty("EnvIds")]
public string[] EnvIds{ get; set; }
/// <summary>
/// 过滤条件
/// <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
/// <li> env-id - String - 是否必填:否 -过滤条件按照计算环境ID过滤。</li>
/// <li> env-name - String - 是否必填:否 -(过滤条件)按照计算环境名称过滤。</li>
/// <li> resource-type - String - 是否必填:否 -过滤条件按照计算资源类型过滤取值CVM或者CPM(黑石)。</li>
/// 与EnvIds参数不能同时指定。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "EnvIds.", this.EnvIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeComputeEnvsResponse : AbstractModel
{
/// <summary>
/// 计算环境列表
/// </summary>
[JsonProperty("ComputeEnvSet")]
public ComputeEnvView[] ComputeEnvSet{ get; set; }
/// <summary>
/// 计算环境数量
/// </summary>
[JsonProperty("TotalCount")]
public long? TotalCount{ 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 + "ComputeEnvSet.", this.ComputeEnvSet);
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeCpmOsInfoRequest : AbstractModel
{
/// <summary>
/// 黑石设备类型代号。 可以从[DescribeDeviceClass](https://cloud.tencent.com/document/api/386/32911)查询设备类型列表。
/// </summary>
[JsonProperty("DeviceClassCode")]
public string DeviceClassCode{ 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 + "DeviceClassCode", this.DeviceClassCode);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeCpmOsInfoResponse : AbstractModel
{
/// <summary>
/// 操作系统信息列表。
/// </summary>
[JsonProperty("OsInfoSet")]
public OsInfo[] OsInfoSet{ 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 + "OsInfoSet.", this.OsInfoSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,47 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeCvmZoneInstanceConfigInfosRequest : AbstractModel
{
/// <summary>
/// 过滤条件。
/// <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
/// <li> instance-family String - 是否必填:否 -过滤条件按照机型系列过滤。实例机型系列形如S1、I1、M1等。</li>
/// <li> instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。</li>
/// <li> instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 ( POSTPAID_BY_HOUR表示后付费即按量计费机型 | SPOTPAID表示竞价付费机型。 ) </li>
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ 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 + "Filters.", this.Filters);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeCvmZoneInstanceConfigInfosResponse : AbstractModel
{
/// <summary>
/// 可用区机型配置列表。
/// </summary>
[JsonProperty("InstanceTypeQuotaSet")]
public InstanceTypeQuotaItem[] InstanceTypeQuotaSet{ 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 + "InstanceTypeQuotaSet.", this.InstanceTypeQuotaSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,36 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceCategoriesRequest : AbstractModel
{
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceCategoriesResponse : AbstractModel
{
/// <summary>
/// CVM实例分类列表
/// </summary>
[JsonProperty("InstanceCategorySet")]
public InstanceCategoryItem[] InstanceCategorySet{ 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 + "InstanceCategorySet.", this.InstanceCategorySet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobRequest : AbstractModel
{
/// <summary>
/// 作业标识
/// </summary>
[JsonProperty("JobId")]
public string JobId{ 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 + "JobId", this.JobId);
}
}
}

View File

@@ -0,0 +1,127 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobResponse : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 作业名称
/// </summary>
[JsonProperty("JobName")]
public string JobName{ get; set; }
/// <summary>
/// 可用区信息
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 作业优先级
/// </summary>
[JsonProperty("Priority")]
public long? Priority{ get; set; }
/// <summary>
/// 作业状态
/// </summary>
[JsonProperty("JobState")]
public string JobState{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 任务视图信息
/// </summary>
[JsonProperty("TaskSet")]
public TaskView[] TaskSet{ get; set; }
/// <summary>
/// 任务间依赖信息
/// </summary>
[JsonProperty("DependenceSet")]
public Dependence[] DependenceSet{ get; set; }
/// <summary>
/// 任务统计指标
/// </summary>
[JsonProperty("TaskMetrics")]
public TaskMetrics TaskMetrics{ get; set; }
/// <summary>
/// 任务实例统计指标
/// </summary>
[JsonProperty("TaskInstanceMetrics")]
public TaskInstanceView TaskInstanceMetrics{ get; set; }
/// <summary>
/// 作业失败原因
/// </summary>
[JsonProperty("StateReason")]
public string StateReason{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "JobName", this.JobName);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "Priority", this.Priority);
this.SetParamSimple(map, prefix + "JobState", this.JobState);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamArrayObj(map, prefix + "TaskSet.", this.TaskSet);
this.SetParamArrayObj(map, prefix + "DependenceSet.", this.DependenceSet);
this.SetParamObj(map, prefix + "TaskMetrics.", this.TaskMetrics);
this.SetParamObj(map, prefix + "TaskInstanceMetrics.", this.TaskInstanceMetrics);
this.SetParamSimple(map, prefix + "StateReason", this.StateReason);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobSubmitInfoRequest : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ 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 + "JobId", this.JobId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobSubmitInfoResponse : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 作业名称
/// </summary>
[JsonProperty("JobName")]
public string JobName{ get; set; }
/// <summary>
/// 作业描述
/// </summary>
[JsonProperty("JobDescription")]
public string JobDescription{ get; set; }
/// <summary>
/// 作业优先级任务Task和任务实例TaskInstance会继承作业优先级
/// </summary>
[JsonProperty("Priority")]
public long? Priority{ get; set; }
/// <summary>
/// 任务信息
/// </summary>
[JsonProperty("Tasks")]
public Task[] Tasks{ get; set; }
/// <summary>
/// 依赖信息
/// </summary>
[JsonProperty("Dependences")]
public Dependence[] Dependences{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "JobName", this.JobName);
this.SetParamSimple(map, prefix + "JobDescription", this.JobDescription);
this.SetParamSimple(map, prefix + "Priority", this.Priority);
this.SetParamArrayObj(map, prefix + "Tasks.", this.Tasks);
this.SetParamArrayObj(map, prefix + "Dependences.", this.Dependences);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,69 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobsRequest : AbstractModel
{
/// <summary>
/// 作业ID列表与Filters参数不能同时指定。
/// </summary>
[JsonProperty("JobIds")]
public string[] JobIds{ get; set; }
/// <summary>
/// 过滤条件
/// <li> job-id - String - 是否必填:否 -过滤条件按照作业ID过滤。</li>
/// <li> job-name - String - 是否必填:否 -(过滤条件)按照作业名称过滤。</li>
/// <li> job-state - String - 是否必填:否 -(过滤条件)按照作业状态过滤。</li>
/// <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
/// 与JobIds参数不能同时指定。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 返回数量
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "JobIds.", this.JobIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeJobsResponse : AbstractModel
{
/// <summary>
/// 作业列表
/// </summary>
[JsonProperty("JobSet")]
public JobView[] JobSet{ get; set; }
/// <summary>
/// 符合条件的作业数量
/// </summary>
[JsonProperty("TotalCount")]
public long? TotalCount{ 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 + "JobSet.", this.JobSet);
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskLogsRequest : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 任务名称
/// </summary>
[JsonProperty("TaskName")]
public string TaskName{ get; set; }
/// <summary>
/// 任务实例集合
/// </summary>
[JsonProperty("TaskInstanceIndexes")]
public ulong?[] TaskInstanceIndexes{ get; set; }
/// <summary>
/// 起始任务实例
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 最大任务实例数
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "TaskName", this.TaskName);
this.SetParamArraySimple(map, prefix + "TaskInstanceIndexes.", this.TaskInstanceIndexes);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskLogsResponse : AbstractModel
{
/// <summary>
/// 任务实例总数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 任务实例日志详情集合
/// </summary>
[JsonProperty("TaskInstanceLogSet")]
public TaskInstanceLog[] TaskInstanceLogSet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "TaskInstanceLogSet.", this.TaskInstanceLogSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,72 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskRequest : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 任务名称
/// </summary>
[JsonProperty("TaskName")]
public string TaskName{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量。默认取值100最大取值1000。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 过滤条件,详情如下:
/// <li> task-instance-type - String - 是否必填: 否 - 按照任务实例状态进行过滤SUBMITTED已提交PENDING等待中RUNNABLE可运行STARTING启动中RUNNING运行中SUCCEED成功FAILED失败FAILED_INTERRUPTED失败后保留实例。</li>
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "TaskName", this.TaskName);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskResponse : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 任务名称
/// </summary>
[JsonProperty("TaskName")]
public string TaskName{ get; set; }
/// <summary>
/// 任务状态
/// </summary>
[JsonProperty("TaskState")]
public string TaskState{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 任务实例总数
/// </summary>
[JsonProperty("TaskInstanceTotalCount")]
public long? TaskInstanceTotalCount{ get; set; }
/// <summary>
/// 任务实例信息
/// </summary>
[JsonProperty("TaskInstanceSet")]
public TaskInstanceView[] TaskInstanceSet{ get; set; }
/// <summary>
/// 任务实例统计指标
/// </summary>
[JsonProperty("TaskInstanceMetrics")]
public TaskInstanceMetrics TaskInstanceMetrics{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "TaskName", this.TaskName);
this.SetParamSimple(map, prefix + "TaskState", this.TaskState);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "TaskInstanceTotalCount", this.TaskInstanceTotalCount);
this.SetParamArrayObj(map, prefix + "TaskInstanceSet.", this.TaskInstanceSet);
this.SetParamObj(map, prefix + "TaskInstanceMetrics.", this.TaskInstanceMetrics);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,66 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskTemplatesRequest : AbstractModel
{
/// <summary>
/// 任务模板ID列表与Filters参数不能同时指定。
/// </summary>
[JsonProperty("TaskTemplateIds")]
public string[] TaskTemplateIds{ get; set; }
/// <summary>
/// 过滤条件
/// <li> task-template-name - String - 是否必填:否 -(过滤条件)按照任务模板名称过滤。</li>
/// 与TaskTemplateIds参数不能同时指定。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 返回数量
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "TaskTemplateIds.", this.TaskTemplateIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskTemplatesResponse : AbstractModel
{
/// <summary>
/// 任务模板列表
/// </summary>
[JsonProperty("TaskTemplateSet")]
public TaskTemplateView[] TaskTemplateSet{ get; set; }
/// <summary>
/// 任务模板数量
/// </summary>
[JsonProperty("TotalCount")]
public long? TotalCount{ 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 + "TaskTemplateSet.", this.TaskTemplateSet);
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetachInstancesRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 实例ID列表
/// </summary>
[JsonProperty("InstanceIds")]
public string[] InstanceIds{ 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 + "EnvId", this.EnvId);
this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetachInstancesResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Docker : AbstractModel
{
/// <summary>
/// Docker Hub 用户名或 Tencent Registry 用户名
/// </summary>
[JsonProperty("User")]
public string User{ get; set; }
/// <summary>
/// Docker Hub 密码或 Tencent Registry 密码
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// Docker Hub填写“[user/repo]:[tag]”Tencent Registry填写“ccr.ccs.tencentyun.com/[namespace/repo]:[tag]”
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”
/// </summary>
[JsonProperty("Server")]
public string Server{ 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 + "User", this.User);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Server", this.Server);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnhancedService : AbstractModel
{
/// <summary>
/// 开启云安全服务。若不指定该参数,则默认开启云安全服务。
/// </summary>
[JsonProperty("SecurityService")]
public RunSecurityServiceEnabled SecurityService{ get; set; }
/// <summary>
/// 开启云监控服务。若不指定该参数,则默认开启云监控服务。
/// </summary>
[JsonProperty("MonitorService")]
public RunMonitorServiceEnabled MonitorService{ 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 + "SecurityService.", this.SecurityService);
this.SetParamObj(map, prefix + "MonitorService.", this.MonitorService);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnvData : AbstractModel
{
/// <summary>
/// CVM实例类型不能与InstanceTypes和InstanceTypeOptions同时出现。
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// CVM镜像ID
/// </summary>
[JsonProperty("ImageId")]
public string ImageId{ get; set; }
/// <summary>
/// 实例系统盘配置信息
/// </summary>
[JsonProperty("SystemDisk")]
public SystemDisk SystemDisk{ get; set; }
/// <summary>
/// 实例数据盘配置信息
/// </summary>
[JsonProperty("DataDisks")]
public DataDisk[] DataDisks{ get; set; }
/// <summary>
/// 私有网络相关信息配置与Zones和VirtualPrivateClouds不能同时指定。
/// </summary>
[JsonProperty("VirtualPrivateCloud")]
public VirtualPrivateCloud VirtualPrivateCloud{ get; set; }
/// <summary>
/// 公网带宽相关信息设置
/// </summary>
[JsonProperty("InternetAccessible")]
public InternetAccessible InternetAccessible{ get; set; }
/// <summary>
/// CVM实例显示名称
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 实例登录设置
/// </summary>
[JsonProperty("LoginSettings")]
public LoginSettings LoginSettings{ get; set; }
/// <summary>
/// 实例所属安全组
/// </summary>
[JsonProperty("SecurityGroupIds")]
public string[] SecurityGroupIds{ get; set; }
/// <summary>
/// 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
/// </summary>
[JsonProperty("EnhancedService")]
public EnhancedService EnhancedService{ get; set; }
/// <summary>
/// CVM实例计费类型<br><li>POSTPAID_BY_HOUR按小时后付费<br><li>SPOTPAID竞价付费<br>默认值POSTPAID_BY_HOUR。
/// </summary>
[JsonProperty("InstanceChargeType")]
public string InstanceChargeType{ get; set; }
/// <summary>
/// 实例的市场相关选项,如竞价实例相关参数
/// </summary>
[JsonProperty("InstanceMarketOptions")]
public InstanceMarketOptionsRequest InstanceMarketOptions{ get; set; }
/// <summary>
/// CVM实例类型列表不能与InstanceType和InstanceTypeOptions同时出现。指定该字段后计算节点按照机型先后顺序依次尝试创建直到实例创建成功结束遍历过程。最多支持10个机型。
/// </summary>
[JsonProperty("InstanceTypes")]
public string[] InstanceTypes{ get; set; }
/// <summary>
/// CVM实例机型配置。不能与InstanceType和InstanceTypes同时出现。
/// </summary>
[JsonProperty("InstanceTypeOptions")]
public InstanceTypeOptions InstanceTypeOptions{ get; set; }
/// <summary>
/// 可用区列表支持跨可用区创建CVM实例。与VirtualPrivateCloud和VirtualPrivateClouds不能同时指定。
/// </summary>
[JsonProperty("Zones")]
public string[] Zones{ get; set; }
/// <summary>
/// 私有网络列表支持跨私有网络创建CVM实例。与VirtualPrivateCloud和Zones不能同时指定。
/// </summary>
[JsonProperty("VirtualPrivateClouds")]
public VirtualPrivateCloud[] VirtualPrivateClouds{ 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 + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "ImageId", this.ImageId);
this.SetParamObj(map, prefix + "SystemDisk.", this.SystemDisk);
this.SetParamArrayObj(map, prefix + "DataDisks.", this.DataDisks);
this.SetParamObj(map, prefix + "VirtualPrivateCloud.", this.VirtualPrivateCloud);
this.SetParamObj(map, prefix + "InternetAccessible.", this.InternetAccessible);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamObj(map, prefix + "LoginSettings.", this.LoginSettings);
this.SetParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds);
this.SetParamObj(map, prefix + "EnhancedService.", this.EnhancedService);
this.SetParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.SetParamObj(map, prefix + "InstanceMarketOptions.", this.InstanceMarketOptions);
this.SetParamArraySimple(map, prefix + "InstanceTypes.", this.InstanceTypes);
this.SetParamObj(map, prefix + "InstanceTypeOptions.", this.InstanceTypeOptions);
this.SetParamArraySimple(map, prefix + "Zones.", this.Zones);
this.SetParamArrayObj(map, prefix + "VirtualPrivateClouds.", this.VirtualPrivateClouds);
}
}
}

View File

@@ -0,0 +1,183 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnvDataCpm : AbstractModel
{
/// <summary>
/// 黑石可用区名称列表。如ap-guangzhou-bls-1, 可通过黑石接口[DescribeRegions]( https://cloud.tencent.com/document/api/386/33564)接口获取。不是Batch可用区名称。目前仅支持一个可用区名称。
/// </summary>
[JsonProperty("Zones")]
public string[] Zones{ get; set; }
/// <summary>
/// 购买的机型ID。通过黑石接口[DescribeDeviceClass]( https://cloud.tencent.com/document/api/386/32911)查询设备型号,获取机型信息。
/// </summary>
[JsonProperty("InstanceTypes")]
public string[] InstanceTypes{ get; set; }
/// <summary>
/// 购买时长单位取值m(月)。
/// </summary>
[JsonProperty("TimeUnit")]
public string TimeUnit{ get; set; }
/// <summary>
/// 购买时长。
/// </summary>
[JsonProperty("TimeSpan")]
public ulong? TimeSpan{ get; set; }
/// <summary>
/// RAID类型ID。通过黑石接口[DescribeDeviceClassPartition]( https://cloud.tencent.com/document/api/386/32910)查询机型RAID方式以及系统盘大小获取RAID信息。
/// </summary>
[JsonProperty("RaidId")]
public long? RaidId{ get; set; }
/// <summary>
/// 部署服务器的操作系统ID。通过批量计算接口DescribeCpmOsInfo查询操作系统信息。
/// </summary>
[JsonProperty("OsTypeId")]
public long? OsTypeId{ get; set; }
/// <summary>
/// 黑石VPC列表目前仅支持一个VPC。
/// </summary>
[JsonProperty("VirtualPrivateClouds")]
public CpmVirtualPrivateCloud[] VirtualPrivateClouds{ get; set; }
/// <summary>
/// 是否安装安全Agent取值1(安装) 0(不安装)默认取值0。
/// </summary>
[JsonProperty("NeedSecurityAgent")]
public long? NeedSecurityAgent{ get; set; }
/// <summary>
/// 是否安装监控Agent取值1(安装) 0(不安装)默认取值0。
/// </summary>
[JsonProperty("NeedMonitorAgent")]
public long? NeedMonitorAgent{ get; set; }
/// <summary>
/// 自动续费标志位取值1(自动续费) 0(不自动续费)默认取值0。
/// </summary>
[JsonProperty("AutoRenewFlag")]
public long? AutoRenewFlag{ get; set; }
/// <summary>
/// 数据盘是否格式化取值1(格式化) 0(不格式化)默认取值为1。
/// </summary>
[JsonProperty("IsZoning")]
public long? IsZoning{ get; set; }
/// <summary>
/// 指定数据盘的文件系统格式,当前支持 ext4和xfs选项 默认为ext4。 参数适用于数据盘和Linux 且在IsZoning为1时生效。
/// </summary>
[JsonProperty("FileSystem")]
public string FileSystem{ get; set; }
/// <summary>
/// 设置Linux root或Windows Administrator的密码。若不设置此参数默认情况下会随机生成密码并以站内信方式通知到用户。
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 是否分配弹性公网IP取值1(分配) 0(不分配)默认取值0。
/// </summary>
[JsonProperty("ApplyEip")]
public long? ApplyEip{ get; set; }
/// <summary>
/// 弹性公网IP计费模式取值flow(按流量计费) bandwidth(按带宽计费)默认取值flow。
/// </summary>
[JsonProperty("EipPayMode")]
public string EipPayMode{ get; set; }
/// <summary>
/// 弹性公网IP带宽限制单位Mb。
/// </summary>
[JsonProperty("EipBandwidth")]
public long? EipBandwidth{ get; set; }
/// <summary>
/// 自定义镜像ID取值生效时用自定义镜像部署物理机。
/// </summary>
[JsonProperty("ImageId")]
public string ImageId{ get; set; }
/// <summary>
/// 系统盘根分区大小单位为G默认取值10G。通过黑石接口[DescribeDeviceClassPartition]( https://cloud.tencent.com/document/api/386/32910)查询机型RAID方式以及系统盘大小获取根分区信息。
/// </summary>
[JsonProperty("SysRootSpace")]
public long? SysRootSpace{ get; set; }
/// <summary>
/// /data分区大小单位为G。如果系统盘还有剩余大小会分配给/data分区。特殊情况如果剩余空间不足10G并且没有指定/data分区则剩余空间会分配给Root分区
/// </summary>
[JsonProperty("SysDataSpace")]
public long? SysDataSpace{ get; set; }
/// <summary>
/// 是否开启超线程取值1(开启) 0(关闭)默认取值1。
/// </summary>
[JsonProperty("HyperThreading")]
public long? HyperThreading{ get; set; }
/// <summary>
/// 指定的内网IP列表不指定时自动分配。
/// </summary>
[JsonProperty("LanIps")]
public string[] LanIps{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "Zones.", this.Zones);
this.SetParamArraySimple(map, prefix + "InstanceTypes.", this.InstanceTypes);
this.SetParamSimple(map, prefix + "TimeUnit", this.TimeUnit);
this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan);
this.SetParamSimple(map, prefix + "RaidId", this.RaidId);
this.SetParamSimple(map, prefix + "OsTypeId", this.OsTypeId);
this.SetParamArrayObj(map, prefix + "VirtualPrivateClouds.", this.VirtualPrivateClouds);
this.SetParamSimple(map, prefix + "NeedSecurityAgent", this.NeedSecurityAgent);
this.SetParamSimple(map, prefix + "NeedMonitorAgent", this.NeedMonitorAgent);
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.SetParamSimple(map, prefix + "IsZoning", this.IsZoning);
this.SetParamSimple(map, prefix + "FileSystem", this.FileSystem);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamSimple(map, prefix + "ApplyEip", this.ApplyEip);
this.SetParamSimple(map, prefix + "EipPayMode", this.EipPayMode);
this.SetParamSimple(map, prefix + "EipBandwidth", this.EipBandwidth);
this.SetParamSimple(map, prefix + "ImageId", this.ImageId);
this.SetParamSimple(map, prefix + "SysRootSpace", this.SysRootSpace);
this.SetParamSimple(map, prefix + "SysDataSpace", this.SysDataSpace);
this.SetParamSimple(map, prefix + "HyperThreading", this.HyperThreading);
this.SetParamArraySimple(map, prefix + "LanIps.", this.LanIps);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnvVar : AbstractModel
{
/// <summary>
/// 环境变量名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 环境变量取值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Value", this.Value);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EventConfig : AbstractModel
{
/// <summary>
/// 事件类型,包括:<br/><li>“JOB_RUNNING”作业运行适用于"SubmitJob"。</li><li>“JOB_SUCCEED”作业成功适用于"SubmitJob"。</li><li>“JOB_FAILED”作业失败适用于"SubmitJob"。</li><li>“JOB_FAILED_INTERRUPTED”作业失败保留实例适用于"SubmitJob"。</li><li>“TASK_RUNNING”任务运行适用于"SubmitJob"。</li><li>“TASK_SUCCEED”任务成功适用于"SubmitJob"。</li><li>“TASK_FAILED”任务失败适用于"SubmitJob"。</li><li>“TASK_FAILED_INTERRUPTED”任务失败保留实例适用于"SubmitJob"。</li><li>“TASK_INSTANCE_RUNNING”任务实例运行适用于"SubmitJob"。</li><li>“TASK_INSTANCE_SUCCEED”任务实例成功适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED”任务实例失败适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED_INTERRUPTED”任务实例失败保留实例适用于"SubmitJob"。</li><li>“COMPUTE_ENV_CREATED”计算环境已创建适用于"CreateComputeEnv"。</li><li>“COMPUTE_ENV_DELETED”计算环境已删除适用于"CreateComputeEnv"。</li><li>“COMPUTE_NODE_CREATED”计算节点已创建适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_CREATION_FAILED”计算节点创建失败适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_RUNNING”计算节点运行中适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_ABNORMAL”计算节点异常适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_DELETING”计算节点已删除适用于"CreateComputeEnv"和"SubmitJob"。</li>
/// </summary>
[JsonProperty("EventName")]
public string EventName{ get; set; }
/// <summary>
/// 自定义键值对
/// </summary>
[JsonProperty("EventVars")]
public EventVar[] EventVars{ 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 + "EventName", this.EventName);
this.SetParamArrayObj(map, prefix + "EventVars.", this.EventVars);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EventVar : AbstractModel
{
/// <summary>
/// 自定义键
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 自定义值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,60 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Externals : AbstractModel
{
/// <summary>
/// 释放地址
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReleaseAddress")]
public bool? ReleaseAddress{ get; set; }
/// <summary>
/// 不支持的网络类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnsupportNetworks")]
public string[] UnsupportNetworks{ get; set; }
/// <summary>
/// HDD本地存储属性
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StorageBlockAttr")]
public StorageBlock StorageBlockAttr{ 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 + "ReleaseAddress", this.ReleaseAddress);
this.SetParamArraySimple(map, prefix + "UnsupportNetworks.", this.UnsupportNetworks);
this.SetParamObj(map, prefix + "StorageBlockAttr.", this.StorageBlockAttr);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Filter : AbstractModel
{
/// <summary>
/// 需要过滤的字段。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 字段的过滤值。
/// </summary>
[JsonProperty("Values")]
public string[] Values{ 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.SetParamArraySimple(map, prefix + "Values.", this.Values);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InputMapping : AbstractModel
{
/// <summary>
/// 源端路径
/// </summary>
[JsonProperty("SourcePath")]
public string SourcePath{ get; set; }
/// <summary>
/// 目的端路径
/// </summary>
[JsonProperty("DestinationPath")]
public string DestinationPath{ get; set; }
/// <summary>
/// 挂载配置项参数
/// </summary>
[JsonProperty("MountOptionParameter")]
public string MountOptionParameter{ 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 + "SourcePath", this.SourcePath);
this.SetParamSimple(map, prefix + "DestinationPath", this.DestinationPath);
this.SetParamSimple(map, prefix + "MountOptionParameter", this.MountOptionParameter);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Instance : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 镜像ID
/// </summary>
[JsonProperty("ImageId")]
public string ImageId{ get; set; }
/// <summary>
/// 实例登录设置。
/// </summary>
[JsonProperty("LoginSettings")]
public LoginSettings LoginSettings{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "ImageId", this.ImageId);
this.SetParamObj(map, prefix + "LoginSettings.", this.LoginSettings);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceCategoryItem : AbstractModel
{
/// <summary>
/// 实例类型名
/// </summary>
[JsonProperty("InstanceCategory")]
public string InstanceCategory{ get; set; }
/// <summary>
/// 实例族列表
/// </summary>
[JsonProperty("InstanceFamilySet")]
public string[] InstanceFamilySet{ 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 + "InstanceCategory", this.InstanceCategory);
this.SetParamArraySimple(map, prefix + "InstanceFamilySet.", this.InstanceFamilySet);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceMarketOptionsRequest : AbstractModel
{
/// <summary>
/// 竞价相关选项
/// </summary>
[JsonProperty("SpotOptions")]
public SpotMarketOptions SpotOptions{ get; set; }
/// <summary>
/// 市场选项类型当前只支持取值spot
/// </summary>
[JsonProperty("MarketType")]
public string MarketType{ 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 + "SpotOptions.", this.SpotOptions);
this.SetParamSimple(map, prefix + "MarketType", this.MarketType);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceTypeConfig : AbstractModel
{
/// <summary>
/// 内存容量,单位:`GB`。
/// </summary>
[JsonProperty("Mem")]
public long? Mem{ get; set; }
/// <summary>
/// CPU核数单位核。
/// </summary>
[JsonProperty("Cpu")]
public long? Cpu{ get; set; }
/// <summary>
/// 实例机型。
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 可用区。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例机型系列。
/// </summary>
[JsonProperty("InstanceFamily")]
public string InstanceFamily{ 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 + "Mem", this.Mem);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "InstanceFamily", this.InstanceFamily);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceTypeOptions : AbstractModel
{
/// <summary>
/// CPU核数。
/// </summary>
[JsonProperty("CPU")]
public ulong? CPU{ get; set; }
/// <summary>
/// 内存值单位GB。
/// </summary>
[JsonProperty("Memory")]
public ulong? Memory{ get; set; }
/// <summary>
/// 实例机型类别可选参数“ALL”、“GENERAL”、“GENERAL_2”、“GENERAL_3”、“COMPUTE”、“COMPUTE_2”和“COMPUTE_3”。默认值“ALL”。
/// </summary>
[JsonProperty("InstanceCategories")]
public string[] InstanceCategories{ 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 + "CPU", this.CPU);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamArraySimple(map, prefix + "InstanceCategories.", this.InstanceCategories);
}
}
}

View File

@@ -0,0 +1,129 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceTypeQuotaItem : AbstractModel
{
/// <summary>
/// 可用区。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例机型。
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 实例计费模式。取值范围: <br><li>PREPAID表示预付费即包年包月<br><li>POSTPAID_BY_HOUR表示后付费即按量计费<br><li>CDHPAID表示[CDH](https://cloud.tencent.com/document/product/416)付费即只对CDH计费不对CDH上的实例计费。<br><li>`SPOTPAID`:表示竞价实例付费。
/// </summary>
[JsonProperty("InstanceChargeType")]
public string InstanceChargeType{ get; set; }
/// <summary>
/// 网卡类型例如25代表25G网卡
/// </summary>
[JsonProperty("NetworkCard")]
public long? NetworkCard{ get; set; }
/// <summary>
/// 扩展属性。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Externals")]
public Externals Externals{ get; set; }
/// <summary>
/// 实例的CPU核数单位核。
/// </summary>
[JsonProperty("Cpu")]
public long? Cpu{ get; set; }
/// <summary>
/// 实例内存容量,单位:`GB`。
/// </summary>
[JsonProperty("Memory")]
public long? Memory{ get; set; }
/// <summary>
/// 实例机型系列。
/// </summary>
[JsonProperty("InstanceFamily")]
public string InstanceFamily{ get; set; }
/// <summary>
/// 机型名称。
/// </summary>
[JsonProperty("TypeName")]
public string TypeName{ get; set; }
/// <summary>
/// 本地磁盘规格列表。当该参数返回为空值时,表示当前情况下无法创建本地盘。
/// </summary>
[JsonProperty("LocalDiskTypeList")]
public LocalDiskType[] LocalDiskTypeList{ get; set; }
/// <summary>
/// 实例是否售卖。取值范围: <br><li>SELL表示实例可购买<br><li>SOLD_OUT表示实例已售罄。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 实例的售卖价格。
/// </summary>
[JsonProperty("Price")]
public ItemPrice Price{ get; set; }
/// <summary>
/// 售罄原因。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SoldOutReason")]
public string SoldOutReason{ 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 + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.SetParamSimple(map, prefix + "NetworkCard", this.NetworkCard);
this.SetParamObj(map, prefix + "Externals.", this.Externals);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "InstanceFamily", this.InstanceFamily);
this.SetParamSimple(map, prefix + "TypeName", this.TypeName);
this.SetParamArrayObj(map, prefix + "LocalDiskTypeList.", this.LocalDiskTypeList);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamObj(map, prefix + "Price.", this.Price);
this.SetParamSimple(map, prefix + "SoldOutReason", this.SoldOutReason);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InternetAccessible : AbstractModel
{
/// <summary>
/// 网络计费类型。取值范围:<br><li>BANDWIDTH_PREPAID预付费按带宽结算<br><li>TRAFFIC_POSTPAID_BY_HOUR流量按小时后付费<br><li>BANDWIDTH_POSTPAID_BY_HOUR带宽按小时后付费<br><li>BANDWIDTH_PACKAGE带宽包用户<br>默认取值:非带宽包用户默认与子机付费类型保持一致。
/// </summary>
[JsonProperty("InternetChargeType")]
public string InternetChargeType{ get; set; }
/// <summary>
/// 公网出带宽上限单位Mbps。默认值0Mbps。不同机型带宽上限范围不一致具体限制详见[购买网络带宽](https://cloud.tencent.com/document/product/213/12523)。
/// </summary>
[JsonProperty("InternetMaxBandwidthOut")]
public long? InternetMaxBandwidthOut{ get; set; }
/// <summary>
/// 是否分配公网IP。取值范围<br><li>TRUE表示分配公网IP<br><li>FALSE表示不分配公网IP<br><br>当公网带宽大于0Mbps时可自由选择开通与否默认开通公网IP当公网带宽为0则不允许分配公网IP。该参数仅在RunInstances接口中作为入参使用。
/// </summary>
[JsonProperty("PublicIpAssigned")]
public bool? PublicIpAssigned{ get; set; }
/// <summary>
/// 带宽包ID。可通过[`DescribeBandwidthPackages`](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
/// </summary>
[JsonProperty("BandwidthPackageId")]
public string BandwidthPackageId{ 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 + "InternetChargeType", this.InternetChargeType);
this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.SetParamSimple(map, prefix + "PublicIpAssigned", this.PublicIpAssigned);
this.SetParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId);
}
}
}

View File

@@ -0,0 +1,116 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ItemPrice : AbstractModel
{
/// <summary>
/// 后续合计费用的原价,后付费模式使用,单位:元。<br><li>如返回了其他时间区间项如UnitPriceSecondStep则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPrice")]
public float? UnitPrice{ get; set; }
/// <summary>
/// 后续计价单元,后付费模式使用,可取值范围: <br><li>HOUR表示计价单元是按每小时来计算。当前涉及该计价单元的场景有实例按小时后付费POSTPAID_BY_HOUR、带宽按小时后付费BANDWIDTH_POSTPAID_BY_HOUR<br><li>GB表示计价单元是按每GB来计算。当前涉及该计价单元的场景有流量按小时后付费TRAFFIC_POSTPAID_BY_HOUR
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ChargeUnit")]
public string ChargeUnit{ get; set; }
/// <summary>
/// 预支合计费用的原价,预付费模式使用,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginalPrice")]
public float? OriginalPrice{ get; set; }
/// <summary>
/// 预支合计费用的折扣价,预付费模式使用,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DiscountPrice")]
public float? DiscountPrice{ get; set; }
/// <summary>
/// 折扣如20代表2折
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Discount")]
public ulong? Discount{ get; set; }
/// <summary>
/// 后续合计费用的折扣价,后付费模式使用,单位:元<br><li>如返回了其他时间区间项如UnitPriceDiscountSecondStep则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceDiscount")]
public float? UnitPriceDiscount{ get; set; }
/// <summary>
/// 使用时间区间在(96, 360)小时的后续合计费用的原价,后付费模式使用,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceSecondStep")]
public float? UnitPriceSecondStep{ get; set; }
/// <summary>
/// 使用时间区间在(96, 360)小时的后续合计费用的折扣价,后付费模式使用,单位:元
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceDiscountSecondStep")]
public float? UnitPriceDiscountSecondStep{ get; set; }
/// <summary>
/// 使用时间区间在(360, ∞)小时的后续合计费用的原价,后付费模式使用,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceThirdStep")]
public float? UnitPriceThirdStep{ get; set; }
/// <summary>
/// 使用时间区间在(360, ∞)小时的后续合计费用的折扣价,后付费模式使用,单位:元
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceDiscountThirdStep")]
public float? UnitPriceDiscountThirdStep{ 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 + "UnitPrice", this.UnitPrice);
this.SetParamSimple(map, prefix + "ChargeUnit", this.ChargeUnit);
this.SetParamSimple(map, prefix + "OriginalPrice", this.OriginalPrice);
this.SetParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
this.SetParamSimple(map, prefix + "Discount", this.Discount);
this.SetParamSimple(map, prefix + "UnitPriceDiscount", this.UnitPriceDiscount);
this.SetParamSimple(map, prefix + "UnitPriceSecondStep", this.UnitPriceSecondStep);
this.SetParamSimple(map, prefix + "UnitPriceDiscountSecondStep", this.UnitPriceDiscountSecondStep);
this.SetParamSimple(map, prefix + "UnitPriceThirdStep", this.UnitPriceThirdStep);
this.SetParamSimple(map, prefix + "UnitPriceDiscountThirdStep", this.UnitPriceDiscountThirdStep);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Job : AbstractModel
{
/// <summary>
/// 任务信息
/// </summary>
[JsonProperty("Tasks")]
public Task[] Tasks{ get; set; }
/// <summary>
/// 作业名称
/// </summary>
[JsonProperty("JobName")]
public string JobName{ get; set; }
/// <summary>
/// 作业描述
/// </summary>
[JsonProperty("JobDescription")]
public string JobDescription{ get; set; }
/// <summary>
/// 作业优先级任务Task和任务实例TaskInstance会继承作业优先级
/// </summary>
[JsonProperty("Priority")]
public ulong? Priority{ get; set; }
/// <summary>
/// 依赖信息
/// </summary>
[JsonProperty("Dependences")]
public Dependence[] Dependences{ get; set; }
/// <summary>
/// 通知信息
/// </summary>
[JsonProperty("Notifications")]
public Notification[] Notifications{ get; set; }
/// <summary>
/// 对于存在依赖关系的任务中,后序任务执行对于前序任务的依赖条件。取值范围包括 PRE_TASK_SUCCEEDPRE_TASK_AT_LEAST_PARTLY_SUCCEEDPRE_TASK_FINISHED默认值为PRE_TASK_SUCCEED。
/// </summary>
[JsonProperty("TaskExecutionDependOn")]
public string TaskExecutionDependOn{ get; set; }
/// <summary>
/// 表示创建 CVM 失败按照何种策略处理。取值范围包括 FAILEDRUNNABLE。FAILED 表示创建 CVM 失败按照一次执行失败处理RUNNABLE 表示创建 CVM 失败按照继续等待处理。默认值为FAILED。StateIfCreateCvmFailed对于提交的指定计算环境的作业无效。
/// </summary>
[JsonProperty("StateIfCreateCvmFailed")]
public string StateIfCreateCvmFailed{ 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 + "Tasks.", this.Tasks);
this.SetParamSimple(map, prefix + "JobName", this.JobName);
this.SetParamSimple(map, prefix + "JobDescription", this.JobDescription);
this.SetParamSimple(map, prefix + "Priority", this.Priority);
this.SetParamArrayObj(map, prefix + "Dependences.", this.Dependences);
this.SetParamArrayObj(map, prefix + "Notifications.", this.Notifications);
this.SetParamSimple(map, prefix + "TaskExecutionDependOn", this.TaskExecutionDependOn);
this.SetParamSimple(map, prefix + "StateIfCreateCvmFailed", this.StateIfCreateCvmFailed);
}
}
}

View File

@@ -0,0 +1,94 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class JobView : AbstractModel
{
/// <summary>
/// 作业ID
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 作业名称
/// </summary>
[JsonProperty("JobName")]
public string JobName{ get; set; }
/// <summary>
/// 作业状态
/// </summary>
[JsonProperty("JobState")]
public string JobState{ get; set; }
/// <summary>
/// 作业优先级
/// </summary>
[JsonProperty("Priority")]
public long? Priority{ get; set; }
/// <summary>
/// 位置信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 结束时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 任务统计指标
/// </summary>
[JsonProperty("TaskMetrics")]
public TaskMetrics TaskMetrics{ 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 + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "JobName", this.JobName);
this.SetParamSimple(map, prefix + "JobState", this.JobState);
this.SetParamSimple(map, prefix + "Priority", this.Priority);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamObj(map, prefix + "TaskMetrics.", this.TaskMetrics);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class LocalDiskType : AbstractModel
{
/// <summary>
/// 本地磁盘类型。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 本地磁盘属性。
/// </summary>
[JsonProperty("PartitionType")]
public string PartitionType{ get; set; }
/// <summary>
/// 本地磁盘最小值。
/// </summary>
[JsonProperty("MinSize")]
public long? MinSize{ get; set; }
/// <summary>
/// 本地磁盘最大值。
/// </summary>
[JsonProperty("MaxSize")]
public long? MaxSize{ get; set; }
/// <summary>
/// 购买时本地盘是否为必选。取值范围:<br><li>REQUIRED表示必选<br><li>OPTIONAL表示可选。
/// </summary>
[JsonProperty("Required")]
public string Required{ 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 + "Type", this.Type);
this.SetParamSimple(map, prefix + "PartitionType", this.PartitionType);
this.SetParamSimple(map, prefix + "MinSize", this.MinSize);
this.SetParamSimple(map, prefix + "MaxSize", this.MaxSize);
this.SetParamSimple(map, prefix + "Required", this.Required);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class LoginSettings : AbstractModel
{
/// <summary>
/// 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到16位至少包括两项[a-zA-Z]、[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? \/ ]中的特殊符号。<br><li>Windows实例密码必须12到16位至少包括三项[a-z][A-Z][0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? \/]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 密钥ID列表。关联密钥后就可以通过对应的私钥来访问实例KeyId可通过接口DescribeKeyPairs获取密钥与密码不能同时指定同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。
/// </summary>
[JsonProperty("KeyIds")]
public string[] KeyIds{ get; set; }
/// <summary>
/// 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围<br><li>TRUE表示保持镜像的登录设置<br><li>FALSE表示不保持镜像的登录设置<br><br>默认取值FALSE。
/// </summary>
[JsonProperty("KeepImageLogin")]
public string KeepImageLogin{ 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 + "Password", this.Password);
this.SetParamArraySimple(map, prefix + "KeyIds.", this.KeyIds);
this.SetParamSimple(map, prefix + "KeepImageLogin", this.KeepImageLogin);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyComputeEnvRequest : AbstractModel
{
/// <summary>
/// 计算环境ID
/// </summary>
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public long? DesiredComputeNodeCount{ get; set; }
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 计算环境描述
/// </summary>
[JsonProperty("EnvDescription")]
public string EnvDescription{ get; set; }
/// <summary>
/// 计算环境属性数据
/// </summary>
[JsonProperty("EnvData")]
public ComputeEnvData EnvData{ 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 + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "EnvName", this.EnvName);
this.SetParamSimple(map, prefix + "EnvDescription", this.EnvDescription);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyComputeEnvResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyTaskTemplateRequest : AbstractModel
{
/// <summary>
/// 任务模板ID
/// </summary>
[JsonProperty("TaskTemplateId")]
public string TaskTemplateId{ get; set; }
/// <summary>
/// 任务模板名称
/// </summary>
[JsonProperty("TaskTemplateName")]
public string TaskTemplateName{ get; set; }
/// <summary>
/// 任务模板描述
/// </summary>
[JsonProperty("TaskTemplateDescription")]
public string TaskTemplateDescription{ get; set; }
/// <summary>
/// 任务模板信息
/// </summary>
[JsonProperty("TaskTemplateInfo")]
public Task TaskTemplateInfo{ 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 + "TaskTemplateId", this.TaskTemplateId);
this.SetParamSimple(map, prefix + "TaskTemplateName", this.TaskTemplateName);
this.SetParamSimple(map, prefix + "TaskTemplateDescription", this.TaskTemplateDescription);
this.SetParamObj(map, prefix + "TaskTemplateInfo.", this.TaskTemplateInfo);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyTaskTemplateResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MountDataDisk : AbstractModel
{
/// <summary>
/// 挂载点Linux系统合法路径或Windows系统盘符,比如"H:\\"
/// </summary>
[JsonProperty("LocalPath")]
public string LocalPath{ get; set; }
/// <summary>
/// 文件系统类型Linux系统下支持"EXT3"和"EXT4"两种,默认"EXT3"Windows系统下仅支持"NTFS"
/// </summary>
[JsonProperty("FileSystemType")]
public string FileSystemType{ 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 + "LocalPath", this.LocalPath);
this.SetParamSimple(map, prefix + "FileSystemType", this.FileSystemType);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class NamedComputeEnv : AbstractModel
{
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public long? DesiredComputeNodeCount{ get; set; }
/// <summary>
/// 计算环境描述
/// </summary>
[JsonProperty("EnvDescription")]
public string EnvDescription{ get; set; }
/// <summary>
/// 计算环境管理类型
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 计算环境具体参数
/// </summary>
[JsonProperty("EnvData")]
public EnvData EnvData{ get; set; }
/// <summary>
/// 数据盘挂载选项
/// </summary>
[JsonProperty("MountDataDisks")]
public MountDataDisk[] MountDataDisks{ get; set; }
/// <summary>
/// 授权信息
/// </summary>
[JsonProperty("Authentications")]
public Authentication[] Authentications{ get; set; }
/// <summary>
/// 输入映射信息
/// </summary>
[JsonProperty("InputMappings")]
public InputMapping[] InputMappings{ get; set; }
/// <summary>
/// agent运行模式适用于Windows系统
/// </summary>
[JsonProperty("AgentRunningMode")]
public AgentRunningMode AgentRunningMode{ get; set; }
/// <summary>
/// 通知信息
/// </summary>
[JsonProperty("Notifications")]
public Notification Notifications{ get; set; }
/// <summary>
/// 非活跃节点处理策略默认“RECREATE”即对于实例创建失败或异常退还的计算节点定期重新创建实例资源。
/// </summary>
[JsonProperty("ActionIfComputeNodeInactive")]
public string ActionIfComputeNodeInactive{ get; set; }
/// <summary>
/// 对于实例创建失败或异常退还的计算节点定期重新创建实例资源的最大重试次数最大值11如果不设置的话系统会设置一个默认值当前为7
/// </summary>
[JsonProperty("ResourceMaxRetryCount")]
public long? ResourceMaxRetryCount{ 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 + "EnvName", this.EnvName);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "EnvDescription", this.EnvDescription);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
this.SetParamArrayObj(map, prefix + "MountDataDisks.", this.MountDataDisks);
this.SetParamArrayObj(map, prefix + "Authentications.", this.Authentications);
this.SetParamArrayObj(map, prefix + "InputMappings.", this.InputMappings);
this.SetParamObj(map, prefix + "AgentRunningMode.", this.AgentRunningMode);
this.SetParamObj(map, prefix + "Notifications.", this.Notifications);
this.SetParamSimple(map, prefix + "ActionIfComputeNodeInactive", this.ActionIfComputeNodeInactive);
this.SetParamSimple(map, prefix + "ResourceMaxRetryCount", this.ResourceMaxRetryCount);
}
}
}

View File

@@ -0,0 +1,106 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class NamedCpmComputeEnv : AbstractModel
{
/// <summary>
/// 计算环境名称
/// </summary>
[JsonProperty("EnvName")]
public string EnvName{ get; set; }
/// <summary>
/// 计算环境具体参数
/// </summary>
[JsonProperty("EnvData")]
public EnvDataCpm EnvData{ get; set; }
/// <summary>
/// 计算节点期望个数
/// </summary>
[JsonProperty("DesiredComputeNodeCount")]
public long? DesiredComputeNodeCount{ get; set; }
/// <summary>
/// 计算环境描述
/// </summary>
[JsonProperty("EnvDescription")]
public string EnvDescription{ get; set; }
/// <summary>
/// 计算环境管理类型, 取值MANAGED。
/// </summary>
[JsonProperty("EnvType")]
public string EnvType{ get; set; }
/// <summary>
/// 授权信息
/// </summary>
[JsonProperty("Authentications")]
public Authentication[] Authentications{ get; set; }
/// <summary>
/// 输入映射信息
/// </summary>
[JsonProperty("InputMappings")]
public InputMapping[] InputMappings{ get; set; }
/// <summary>
/// 通知信息
/// </summary>
[JsonProperty("Notifications")]
public Notification Notifications{ get; set; }
/// <summary>
/// 非活跃节点处理策略默认“RECREATE”即对于实例创建失败或异常退还的计算节点定期重新创建实例资源。
/// </summary>
[JsonProperty("ActionIfComputeNodeInactive")]
public string ActionIfComputeNodeInactive{ get; set; }
/// <summary>
/// 对于实例创建失败或异常退还的计算节点定期重新创建实例资源的最大重试次数最大值11如果不设置的话系统会设置一个默认值当前为7
/// </summary>
[JsonProperty("ResourceMaxRetryCount")]
public long? ResourceMaxRetryCount{ 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 + "EnvName", this.EnvName);
this.SetParamObj(map, prefix + "EnvData.", this.EnvData);
this.SetParamSimple(map, prefix + "DesiredComputeNodeCount", this.DesiredComputeNodeCount);
this.SetParamSimple(map, prefix + "EnvDescription", this.EnvDescription);
this.SetParamSimple(map, prefix + "EnvType", this.EnvType);
this.SetParamArrayObj(map, prefix + "Authentications.", this.Authentications);
this.SetParamArrayObj(map, prefix + "InputMappings.", this.InputMappings);
this.SetParamObj(map, prefix + "Notifications.", this.Notifications);
this.SetParamSimple(map, prefix + "ActionIfComputeNodeInactive", this.ActionIfComputeNodeInactive);
this.SetParamSimple(map, prefix + "ResourceMaxRetryCount", this.ResourceMaxRetryCount);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Notification : AbstractModel
{
/// <summary>
/// CMQ主题名字要求主题名有效且关联订阅
/// </summary>
[JsonProperty("TopicName")]
public string TopicName{ get; set; }
/// <summary>
/// 事件配置
/// </summary>
[JsonProperty("EventConfigs")]
public EventConfig[] EventConfigs{ 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 + "TopicName", this.TopicName);
this.SetParamArrayObj(map, prefix + "EventConfigs.", this.EventConfigs);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class OsInfo : AbstractModel
{
/// <summary>
/// 操作系统ID。
/// </summary>
[JsonProperty("OsTypeId")]
public ulong? OsTypeId{ get; set; }
/// <summary>
/// 操作系统名称。
/// </summary>
[JsonProperty("OsName")]
public string OsName{ get; set; }
/// <summary>
/// 操作系统名称描述。
/// </summary>
[JsonProperty("OsDescription")]
public string OsDescription{ get; set; }
/// <summary>
/// 操作系统英文名称。
/// </summary>
[JsonProperty("OsEnglishDescription")]
public string OsEnglishDescription{ get; set; }
/// <summary>
/// 操作系统的分类如CentOs Debian。
/// </summary>
[JsonProperty("OsClass")]
public string OsClass{ get; set; }
/// <summary>
/// 标识镜像分类。public:公共镜像; private: 专属镜像。
/// </summary>
[JsonProperty("ImageTag")]
public string ImageTag{ get; set; }
/// <summary>
/// 操作系统ext4文件下所支持的最大的磁盘大小。单位为T。
/// </summary>
[JsonProperty("MaxPartitionSize")]
public ulong? MaxPartitionSize{ 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 + "OsTypeId", this.OsTypeId);
this.SetParamSimple(map, prefix + "OsName", this.OsName);
this.SetParamSimple(map, prefix + "OsDescription", this.OsDescription);
this.SetParamSimple(map, prefix + "OsEnglishDescription", this.OsEnglishDescription);
this.SetParamSimple(map, prefix + "OsClass", this.OsClass);
this.SetParamSimple(map, prefix + "ImageTag", this.ImageTag);
this.SetParamSimple(map, prefix + "MaxPartitionSize", this.MaxPartitionSize);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class OutputMapping : AbstractModel
{
/// <summary>
/// 源端路径
/// </summary>
[JsonProperty("SourcePath")]
public string SourcePath{ get; set; }
/// <summary>
/// 目的端路径
/// </summary>
[JsonProperty("DestinationPath")]
public string DestinationPath{ 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 + "SourcePath", this.SourcePath);
this.SetParamSimple(map, prefix + "DestinationPath", this.DestinationPath);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class OutputMappingConfig : AbstractModel
{
/// <summary>
/// 存储类型仅支持COS
/// </summary>
[JsonProperty("Scene")]
public string Scene{ get; set; }
/// <summary>
/// 并行worker数量
/// </summary>
[JsonProperty("WorkerNum")]
public long? WorkerNum{ get; set; }
/// <summary>
/// worker分块大小单位MB
/// </summary>
[JsonProperty("WorkerPartSize")]
public long? WorkerPartSize{ 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 + "Scene", this.Scene);
this.SetParamSimple(map, prefix + "WorkerNum", this.WorkerNum);
this.SetParamSimple(map, prefix + "WorkerPartSize", this.WorkerPartSize);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Placement : AbstractModel
{
/// <summary>
/// 实例所属的[可用区](https://cloud.tencent.com/document/product/213/15753#ZoneInfo)ID。该参数也可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例所属项目ID。该参数可以通过调用 [DescribeProject](/document/api/378/4400) 的返回值中的 projectId 字段来获取。不填为默认项目。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 实例所属的专用宿主机ID列表仅用于入参。如果您有购买专用宿主机并且指定了该参数则您购买的实例就会随机的部署在这些专用宿主机上。
/// </summary>
[JsonProperty("HostIds")]
public string[] HostIds{ get; set; }
/// <summary>
/// 指定母机ip生产子机
/// </summary>
[JsonProperty("HostIps")]
public string[] HostIps{ get; set; }
/// <summary>
/// 实例所属的专用宿主机ID仅用于出参。
/// </summary>
[JsonProperty("HostId")]
public string HostId{ 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 + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArraySimple(map, prefix + "HostIds.", this.HostIds);
this.SetParamArraySimple(map, prefix + "HostIps.", this.HostIps);
this.SetParamSimple(map, prefix + "HostId", this.HostId);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RedirectInfo : AbstractModel
{
/// <summary>
/// 标准输出重定向路径
/// </summary>
[JsonProperty("StdoutRedirectPath")]
public string StdoutRedirectPath{ get; set; }
/// <summary>
/// 标准错误重定向路径
/// </summary>
[JsonProperty("StderrRedirectPath")]
public string StderrRedirectPath{ get; set; }
/// <summary>
/// 标准输出重定向文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
/// </summary>
[JsonProperty("StdoutRedirectFileName")]
public string StdoutRedirectFileName{ get; set; }
/// <summary>
/// 标准错误重定向文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
/// </summary>
[JsonProperty("StderrRedirectFileName")]
public string StderrRedirectFileName{ 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 + "StdoutRedirectPath", this.StdoutRedirectPath);
this.SetParamSimple(map, prefix + "StderrRedirectPath", this.StderrRedirectPath);
this.SetParamSimple(map, prefix + "StdoutRedirectFileName", this.StdoutRedirectFileName);
this.SetParamSimple(map, prefix + "StderrRedirectFileName", this.StderrRedirectFileName);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RedirectLocalInfo : AbstractModel
{
/// <summary>
/// 标准输出重定向本地路径
/// </summary>
[JsonProperty("StdoutLocalPath")]
public string StdoutLocalPath{ get; set; }
/// <summary>
/// 标准错误重定向本地路径
/// </summary>
[JsonProperty("StderrLocalPath")]
public string StderrLocalPath{ get; set; }
/// <summary>
/// 标准输出重定向本地文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
/// </summary>
[JsonProperty("StdoutLocalFileName")]
public string StdoutLocalFileName{ get; set; }
/// <summary>
/// 标准错误重定向本地文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
/// </summary>
[JsonProperty("StderrLocalFileName")]
public string StderrLocalFileName{ 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 + "StdoutLocalPath", this.StdoutLocalPath);
this.SetParamSimple(map, prefix + "StderrLocalPath", this.StderrLocalPath);
this.SetParamSimple(map, prefix + "StdoutLocalFileName", this.StdoutLocalFileName);
this.SetParamSimple(map, prefix + "StderrLocalFileName", this.StderrLocalFileName);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RetryJobsRequest : AbstractModel
{
/// <summary>
/// 作业ID列表。
/// </summary>
[JsonProperty("JobIds")]
public string[] JobIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "JobIds.", this.JobIds);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RetryJobsResponse : 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);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RunMonitorServiceEnabled : AbstractModel
{
/// <summary>
/// 是否开启[云监控](/document/product/248)服务。取值范围:<br><li>TRUE表示开启云监控服务<br><li>FALSE表示不开启云监控服务<br><br>默认取值TRUE。
/// </summary>
[JsonProperty("Enabled")]
public bool? Enabled{ 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 + "Enabled", this.Enabled);
}
}
}

View 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RunSecurityServiceEnabled : AbstractModel
{
/// <summary>
/// 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE表示开启云安全服务<br><li>FALSE表示不开启云安全服务<br><br>默认取值TRUE。
/// </summary>
[JsonProperty("Enabled")]
public bool? Enabled{ 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 + "Enabled", this.Enabled);
}
}
}

Some files were not shown because too many files have changed in this diff Show More