/* * 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 { /// /// 活动ID /// [JsonProperty("ActivityId")] public string ActivityId{ get; set; } /// /// 计算节点ID /// [JsonProperty("ComputeNodeId")] public string ComputeNodeId{ get; set; } /// /// 计算节点活动类型,创建或者销毁 /// [JsonProperty("ComputeNodeActivityType")] public string ComputeNodeActivityType{ get; set; } /// /// 计算环境ID /// [JsonProperty("EnvId")] public string EnvId{ get; set; } /// /// 起因 /// [JsonProperty("Cause")] public string Cause{ get; set; } /// /// 活动状态 /// [JsonProperty("ActivityState")] public string ActivityState{ get; set; } /// /// 状态原因 /// [JsonProperty("StateReason")] public string StateReason{ get; set; } /// /// 活动开始时间 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 活动结束时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 云服务器实例ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }