tencentcloud-sdk-cvm 3.0.524 → 3.0.526

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e33916bd8d3aec13264cc5bf3483e221ff5a7c73
4
- data.tar.gz: 51ce99336619c48675090de1dea607a2425135b9
3
+ metadata.gz: 6ddeb976e9b409cb0f6b43af934208db2a254717
4
+ data.tar.gz: 3846d5cbfef4aa83fbc9f20fdc7e43f0a4a4c688
5
5
  SHA512:
6
- metadata.gz: f571fcc7d7fb807b9453fc6d9c20ec1d445348c4b2bce65473c14273d575797f5eceb795de5b1b7d73712b2522cfb5d4c03d7cdbdb377e36d1cedf7c1ceca2d1
7
- data.tar.gz: 65fd47f9865880c142884542e89dab418c652386d3d403f6fddc0915d1e3f4ee99370ab5afd6d1e441a00e496adcbdae2cea4df77d8d12b4a7776d3e273fe5eb
6
+ metadata.gz: 9607a6434217be0c715b537ceb3d7e16229db815b5ca9024e1a8f0706059f9b077dec60beba9a6c6dcc775ce480eb71ca4a107d560f63efa2bca4f84666bc88c
7
+ data.tar.gz: 1e6df93092f9a45677537721872301a5e7f3302da3010165da827418cc154ddf8f2a0d392faf5f6eada950cc52c686a86d87666f69042ab5c7f48b076c830f52
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.524
1
+ 3.0.526
@@ -1145,6 +1145,33 @@ module TencentCloud
1145
1145
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1146
1146
  end
1147
1147
 
1148
+ # 本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。
1149
+
1150
+ # - 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。
1151
+ # - 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的维修任务列表。
1152
+
1153
+ # @param request: Request instance for DescribeTaskInfo.
1154
+ # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeTaskInfoRequest`
1155
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeTaskInfoResponse`
1156
+ def DescribeTaskInfo(request)
1157
+ body = send_request('DescribeTaskInfo', request.serialize)
1158
+ response = JSON.parse(body)
1159
+ if response['Response'].key?('Error') == false
1160
+ model = DescribeTaskInfoResponse.new
1161
+ model.deserialize(response['Response'])
1162
+ model
1163
+ else
1164
+ code = response['Response']['Error']['Code']
1165
+ message = response['Response']['Error']['Message']
1166
+ reqid = response['Response']['RequestId']
1167
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1168
+ end
1169
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1170
+ raise e
1171
+ rescue StandardError => e
1172
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1173
+ end
1174
+
1148
1175
  # 本接口(DescribeZoneInstanceConfigInfos) 获取可用区的机型信息。
1149
1176
 
1150
1177
  # @param request: Request instance for DescribeZoneInstanceConfigInfos.
@@ -1565,6 +1592,7 @@ module TencentCloud
1565
1592
  # 本接口 (InquiryPriceTerminateInstances) 用于退还实例询价。
1566
1593
 
1567
1594
  # * 查询退还实例可以返还的费用。
1595
+ # * 在退还包年包月实例时,使用ReleasePrepaidDataDisks参数,会在返回值中包含退还挂载的包年包月数据盘返还的费用。
1568
1596
  # * 支持批量操作,每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。
1569
1597
 
1570
1598
  # @param request: Request instance for InquiryPriceTerminateInstances.
@@ -2146,6 +2174,35 @@ module TencentCloud
2146
2174
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2147
2175
  end
2148
2176
 
2177
+ # 本接口(RepairTaskControl)用于对待授权状态的维修任务进行授权操作。
2178
+
2179
+ # - 仅当任务状态处于`待授权`状态时,可通过此接口对待授权的维修任务进行授权。
2180
+ # - 调用时需指定产品类型、实例ID、维修任务ID、操作类型。
2181
+ # - 可授权立即处理,或提前预约计划维护时间之前的指定时间进行处理(预约时间需晚于当前时间至少5分钟,且在48小时之内)。
2182
+ # - 针对不同类型的维修任务,提供的可选授权处理策略可参见 [维修任务类型与处理策略](https://cloud.tencent.com/document/product/213/67789)。
2183
+
2184
+ # @param request: Request instance for RepairTaskControl.
2185
+ # @type request: :class:`Tencentcloud::cvm::V20170312::RepairTaskControlRequest`
2186
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::RepairTaskControlResponse`
2187
+ def RepairTaskControl(request)
2188
+ body = send_request('RepairTaskControl', request.serialize)
2189
+ response = JSON.parse(body)
2190
+ if response['Response'].key?('Error') == false
2191
+ model = RepairTaskControlResponse.new
2192
+ model.deserialize(response['Response'])
2193
+ model
2194
+ else
2195
+ code = response['Response']['Error']['Code']
2196
+ message = response['Response']['Error']['Message']
2197
+ reqid = response['Response']['RequestId']
2198
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2199
+ end
2200
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2201
+ raise e
2202
+ rescue StandardError => e
2203
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2204
+ end
2205
+
2149
2206
  # 本接口 (ResetInstance) 用于重装指定实例上的操作系统。
2150
2207
 
2151
2208
  # * 如果指定了`ImageId`参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。
@@ -2419,6 +2476,7 @@ module TencentCloud
2419
2476
  # * 不再使用的实例,可通过本接口主动退还。
2420
2477
  # * 按量计费的实例通过本接口可直接退还;包年包月实例如符合[退还规则](https://cloud.tencent.com/document/product/213/9711),也可通过本接口主动退还。
2421
2478
  # * 包年包月实例首次调用本接口,实例将被移至回收站,再次调用本接口,实例将被销毁,且不可恢复。按量计费实例调用本接口将被直接销毁。
2479
+ # * 包年包月实例首次调用本接口,入参中包含ReleasePrepaidDataDisks时,包年包月数据盘同时也会被移至回收站。
2422
2480
  # * 支持批量操作,每次请求批量实例的上限为100。
2423
2481
  # * 批量操作时,所有实例的付费类型必须一致。
2424
2482
 
@@ -3019,6 +3019,137 @@ module TencentCloud
3019
3019
  end
3020
3020
  end
3021
3021
 
3022
+ # DescribeTaskInfo请求参数结构体
3023
+ class DescribeTaskInfoRequest < TencentCloud::Common::AbstractModel
3024
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
3025
+ # @type Limit: Integer
3026
+ # @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
3027
+ # @type Offset: Integer
3028
+ # @param Product: 按照指定的产品类型查询,支持取值:
3029
+
3030
+ # - `CVM`:云服务器
3031
+ # - `CDH`:专用宿主机
3032
+ # - `CPM2.0`:裸金属云服务器
3033
+
3034
+ # 未传入或为空时,默认查询全部产品类型。
3035
+ # @type Product: String
3036
+ # @param TaskStatus: 按照一个或多个任务状态ID进行过滤。
3037
+ # `TaskStatus`(任务状态ID)与任务状态中文名的对应关系如下:
3038
+
3039
+ # - `1`:待授权
3040
+ # - `2`:处理中
3041
+ # - `3`:已结束
3042
+ # - `4`:已预约
3043
+ # - `5`:已取消
3044
+ # - `6`:已避免
3045
+
3046
+ # 各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。
3047
+ # @type TaskStatus: Array
3048
+ # @param TaskTypeIds: 按照一个或多个任务类型ID进行过滤。
3049
+
3050
+ # `TaskTypeId`(任务类型ID)与任务类型中文名的对应关系如下:
3051
+
3052
+ # - `101`:实例运行隐患
3053
+ # - `102`:实例运行异常
3054
+ # - `103`:实例硬盘异常
3055
+ # - `104`:实例网络连接异常
3056
+ # - `105`:实例运行预警
3057
+ # - `106`:实例硬盘预警
3058
+ # - `107`:实例维护升级
3059
+
3060
+ # 各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。
3061
+ # @type TaskTypeIds: Array
3062
+ # @param TaskIds: 按照一个或者多个任务ID查询。任务ID形如:`rep-xxxxxxxx`。
3063
+ # @type TaskIds: Array
3064
+ # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:`ins-xxxxxxxx`。
3065
+ # @type InstanceIds: Array
3066
+ # @param Aliases: 按照一个或者多个实例名称查询。
3067
+ # @type Aliases: Array
3068
+ # @param StartDate: 时间查询区间的起始位置,会根据任务创建时间`CreateTime`进行过滤。未传入时默认为当天`00:00:00`。
3069
+ # @type StartDate: String
3070
+ # @param EndDate: 时间查询区间的终止位置,会根据任务创建时间`CreateTime`进行过滤。未传入时默认为当前时刻。
3071
+ # @type EndDate: String
3072
+ # @param OrderField: 指定返回维修任务列表的排序字段,目前支持:
3073
+
3074
+ # - `CreateTime`:任务创建时间
3075
+ # - `AuthTime`:任务授权时间
3076
+ # - `EndTime`:任务结束时间
3077
+
3078
+ # 未传入时或为空时,默认按`CreateTime`字段进行排序。
3079
+ # @type OrderField: String
3080
+ # @param Order: 排序方式,目前支持:
3081
+
3082
+ # - `0`:升序(默认)
3083
+ # - `1`:降序
3084
+
3085
+ # 未传入或为空时,默认按升序排序。
3086
+ # @type Order: Integer
3087
+
3088
+ attr_accessor :Limit, :Offset, :Product, :TaskStatus, :TaskTypeIds, :TaskIds, :InstanceIds, :Aliases, :StartDate, :EndDate, :OrderField, :Order
3089
+
3090
+ def initialize(limit=nil, offset=nil, product=nil, taskstatus=nil, tasktypeids=nil, taskids=nil, instanceids=nil, aliases=nil, startdate=nil, enddate=nil, orderfield=nil, order=nil)
3091
+ @Limit = limit
3092
+ @Offset = offset
3093
+ @Product = product
3094
+ @TaskStatus = taskstatus
3095
+ @TaskTypeIds = tasktypeids
3096
+ @TaskIds = taskids
3097
+ @InstanceIds = instanceids
3098
+ @Aliases = aliases
3099
+ @StartDate = startdate
3100
+ @EndDate = enddate
3101
+ @OrderField = orderfield
3102
+ @Order = order
3103
+ end
3104
+
3105
+ def deserialize(params)
3106
+ @Limit = params['Limit']
3107
+ @Offset = params['Offset']
3108
+ @Product = params['Product']
3109
+ @TaskStatus = params['TaskStatus']
3110
+ @TaskTypeIds = params['TaskTypeIds']
3111
+ @TaskIds = params['TaskIds']
3112
+ @InstanceIds = params['InstanceIds']
3113
+ @Aliases = params['Aliases']
3114
+ @StartDate = params['StartDate']
3115
+ @EndDate = params['EndDate']
3116
+ @OrderField = params['OrderField']
3117
+ @Order = params['Order']
3118
+ end
3119
+ end
3120
+
3121
+ # DescribeTaskInfo返回参数结构体
3122
+ class DescribeTaskInfoResponse < TencentCloud::Common::AbstractModel
3123
+ # @param TotalCount: 查询返回的维修任务总数量。
3124
+ # @type TotalCount: Integer
3125
+ # @param RepairTaskInfoSet: 查询返回的维修任务列表。
3126
+ # 注意:此字段可能返回 null,表示取不到有效值。
3127
+ # @type RepairTaskInfoSet: Array
3128
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3129
+ # @type RequestId: String
3130
+
3131
+ attr_accessor :TotalCount, :RepairTaskInfoSet, :RequestId
3132
+
3133
+ def initialize(totalcount=nil, repairtaskinfoset=nil, requestid=nil)
3134
+ @TotalCount = totalcount
3135
+ @RepairTaskInfoSet = repairtaskinfoset
3136
+ @RequestId = requestid
3137
+ end
3138
+
3139
+ def deserialize(params)
3140
+ @TotalCount = params['TotalCount']
3141
+ unless params['RepairTaskInfoSet'].nil?
3142
+ @RepairTaskInfoSet = []
3143
+ params['RepairTaskInfoSet'].each do |i|
3144
+ repairtaskinfo_tmp = RepairTaskInfo.new
3145
+ repairtaskinfo_tmp.deserialize(i)
3146
+ @RepairTaskInfoSet << repairtaskinfo_tmp
3147
+ end
3148
+ end
3149
+ @RequestId = params['RequestId']
3150
+ end
3151
+ end
3152
+
3022
3153
  # DescribeZoneInstanceConfigInfos请求参数结构体
3023
3154
  class DescribeZoneInstanceConfigInfosRequest < TencentCloud::Common::AbstractModel
3024
3155
  # @param Filters: <li><strong>zone</strong></li>
@@ -3814,10 +3945,12 @@ module TencentCloud
3814
3945
  # TencentCloud: 腾讯云官方许可
3815
3946
  # BYOL: 自带许可(Bring Your Own License)
3816
3947
  # @type LicenseType: String
3948
+ # @param BootMode: 启动模式
3949
+ # @type BootMode: String
3817
3950
 
3818
- attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force, :TagSpecification, :LicenseType
3951
+ attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force, :TagSpecification, :LicenseType, :BootMode
3819
3952
 
3820
- def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil, licensetype=nil)
3953
+ def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil, licensetype=nil, bootmode=nil)
3821
3954
  @Architecture = architecture
3822
3955
  @OsType = ostype
3823
3956
  @OsVersion = osversion
@@ -3828,6 +3961,7 @@ module TencentCloud
3828
3961
  @Force = force
3829
3962
  @TagSpecification = tagspecification
3830
3963
  @LicenseType = licensetype
3964
+ @BootMode = bootmode
3831
3965
  end
3832
3966
 
3833
3967
  def deserialize(params)
@@ -3848,6 +3982,7 @@ module TencentCloud
3848
3982
  end
3849
3983
  end
3850
3984
  @LicenseType = params['LicenseType']
3985
+ @BootMode = params['BootMode']
3851
3986
  end
3852
3987
  end
3853
3988
 
@@ -6724,6 +6859,230 @@ module TencentCloud
6724
6859
  end
6725
6860
  end
6726
6861
 
6862
+ # RepairTaskControl请求参数结构体
6863
+ class RepairTaskControlRequest < TencentCloud::Common::AbstractModel
6864
+ # @param Product: 待授权任务实例对应的产品类型,支持取值:
6865
+
6866
+ # - `CVM`:云服务器
6867
+ # - `CDH`:专用宿主机
6868
+ # - `CPM2.0`:裸金属云服务器
6869
+ # @type Product: String
6870
+ # @param InstanceIds: 指定待操作的实例ID列表,仅允许对列表中的实例ID相关的维修任务发起授权。
6871
+ # @type InstanceIds: Array
6872
+ # @param TaskId: 维修任务ID。
6873
+ # @type TaskId: String
6874
+ # @param Operate: 操作类型,当前只支持传入`AuthorizeRepair`。
6875
+ # @type Operate: String
6876
+ # @param OrderAuthTime: 预约授权时间,形如`2023-01-01 12:00:00`。预约时间需晚于当前时间至少5分钟,且在48小时之内。
6877
+ # @type OrderAuthTime: String
6878
+ # @param TaskSubMethod: 附加的授权处理策略。
6879
+ # @type TaskSubMethod: String
6880
+
6881
+ attr_accessor :Product, :InstanceIds, :TaskId, :Operate, :OrderAuthTime, :TaskSubMethod
6882
+
6883
+ def initialize(product=nil, instanceids=nil, taskid=nil, operate=nil, orderauthtime=nil, tasksubmethod=nil)
6884
+ @Product = product
6885
+ @InstanceIds = instanceids
6886
+ @TaskId = taskid
6887
+ @Operate = operate
6888
+ @OrderAuthTime = orderauthtime
6889
+ @TaskSubMethod = tasksubmethod
6890
+ end
6891
+
6892
+ def deserialize(params)
6893
+ @Product = params['Product']
6894
+ @InstanceIds = params['InstanceIds']
6895
+ @TaskId = params['TaskId']
6896
+ @Operate = params['Operate']
6897
+ @OrderAuthTime = params['OrderAuthTime']
6898
+ @TaskSubMethod = params['TaskSubMethod']
6899
+ end
6900
+ end
6901
+
6902
+ # RepairTaskControl返回参数结构体
6903
+ class RepairTaskControlResponse < TencentCloud::Common::AbstractModel
6904
+ # @param TaskId: 已完成授权的维修任务ID。
6905
+ # @type TaskId: String
6906
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6907
+ # @type RequestId: String
6908
+
6909
+ attr_accessor :TaskId, :RequestId
6910
+
6911
+ def initialize(taskid=nil, requestid=nil)
6912
+ @TaskId = taskid
6913
+ @RequestId = requestid
6914
+ end
6915
+
6916
+ def deserialize(params)
6917
+ @TaskId = params['TaskId']
6918
+ @RequestId = params['RequestId']
6919
+ end
6920
+ end
6921
+
6922
+ # 描述维修任务的相关信息
6923
+ class RepairTaskInfo < TencentCloud::Common::AbstractModel
6924
+ # @param TaskId: 维修任务ID
6925
+ # @type TaskId: String
6926
+ # @param InstanceId: 实例ID
6927
+ # @type InstanceId: String
6928
+ # @param Alias: 实例名称
6929
+ # 注意:此字段可能返回 null,表示取不到有效值。
6930
+ # @type Alias: String
6931
+ # @param TaskTypeId: 任务类型ID,与任务类型中文名的对应关系如下:
6932
+
6933
+ # - `101`:实例运行隐患
6934
+ # - `102`:实例运行异常
6935
+ # - `103`:实例硬盘异常
6936
+ # - `104`:实例网络连接异常
6937
+ # - `105`:实例运行预警
6938
+ # - `106`:实例硬盘预警
6939
+ # - `107`:实例维护升级
6940
+
6941
+ # 各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。
6942
+ # @type TaskTypeId: Integer
6943
+ # @param TaskTypeName: 任务类型中文名
6944
+ # @type TaskTypeName: String
6945
+ # @param TaskStatus: 任务状态ID,与任务状态中文名的对应关系如下:
6946
+
6947
+ # - `1`:待授权
6948
+ # - `2`:处理中
6949
+ # - `3`:已结束
6950
+ # - `4`:已预约
6951
+ # - `5`:已取消
6952
+ # - `6`:已避免
6953
+
6954
+ # 各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。
6955
+ # @type TaskStatus: Integer
6956
+ # @param DeviceStatus: 设备状态ID,与设备状态中文名的对应关系如下:
6957
+
6958
+ # - `1`:故障中
6959
+ # - `2`:处理中
6960
+ # - `3`:正常
6961
+ # - `4`:已预约
6962
+ # - `5`:已取消
6963
+ # - `6`:已避免
6964
+ # @type DeviceStatus: Integer
6965
+ # @param OperateStatus: 操作状态ID,与操作状态中文名的对应关系如下:
6966
+
6967
+ # - `1`:未授权
6968
+ # - `2`:已授权
6969
+ # - `3`:已处理
6970
+ # - `4`:已预约
6971
+ # - `5`:已取消
6972
+ # - `6`:已避免
6973
+ # @type OperateStatus: Integer
6974
+ # @param CreateTime: 任务创建时间
6975
+ # @type CreateTime: String
6976
+ # @param AuthTime: 任务授权时间
6977
+ # 注意:此字段可能返回 null,表示取不到有效值。
6978
+ # @type AuthTime: String
6979
+ # @param EndTime: 任务结束时间
6980
+ # 注意:此字段可能返回 null,表示取不到有效值。
6981
+ # @type EndTime: String
6982
+ # @param TaskDetail: 任务详情
6983
+ # 注意:此字段可能返回 null,表示取不到有效值。
6984
+ # @type TaskDetail: String
6985
+ # @param Zone: 可用区
6986
+ # 注意:此字段可能返回 null,表示取不到有效值。
6987
+ # @type Zone: String
6988
+ # @param Region: 地域
6989
+ # 注意:此字段可能返回 null,表示取不到有效值。
6990
+ # @type Region: String
6991
+ # @param VpcId: 所在私有网络ID
6992
+ # 注意:此字段可能返回 null,表示取不到有效值。
6993
+ # @type VpcId: String
6994
+ # @param VpcName: 所在私有网络名称
6995
+ # 注意:此字段可能返回 null,表示取不到有效值。
6996
+ # @type VpcName: String
6997
+ # @param SubnetId: 所在子网ID
6998
+ # 注意:此字段可能返回 null,表示取不到有效值。
6999
+ # @type SubnetId: String
7000
+ # @param SubnetName: 所在子网名称
7001
+ # 注意:此字段可能返回 null,表示取不到有效值。
7002
+ # @type SubnetName: String
7003
+ # @param WanIp: 实例公网IP
7004
+ # 注意:此字段可能返回 null,表示取不到有效值。
7005
+ # @type WanIp: String
7006
+ # @param LanIp: 实例内网IP
7007
+ # 注意:此字段可能返回 null,表示取不到有效值。
7008
+ # @type LanIp: String
7009
+ # @param Product: 产品类型,支持取值:
7010
+
7011
+ # - `CVM`:云服务器
7012
+ # - `CDH`:专用宿主机
7013
+ # - `CPM2.0`:裸金属云服务器
7014
+ # 注意:此字段可能返回 null,表示取不到有效值。
7015
+ # @type Product: String
7016
+ # @param TaskSubType: 任务子类型
7017
+ # 注意:此字段可能返回 null,表示取不到有效值。
7018
+ # @type TaskSubType: String
7019
+ # @param AuthType: 任务授权类型
7020
+ # @type AuthType: Integer
7021
+ # @param AuthSource: 授权渠道,支持取值:
7022
+
7023
+ # - `Waiting_auth`:待授权
7024
+ # - `Customer_auth`:客户操作授权
7025
+ # - `System_mandatory_auth`:系统默认授权
7026
+ # - `Pre_policy_auth`:预置策略授权
7027
+ # @type AuthSource: String
7028
+
7029
+ attr_accessor :TaskId, :InstanceId, :Alias, :TaskTypeId, :TaskTypeName, :TaskStatus, :DeviceStatus, :OperateStatus, :CreateTime, :AuthTime, :EndTime, :TaskDetail, :Zone, :Region, :VpcId, :VpcName, :SubnetId, :SubnetName, :WanIp, :LanIp, :Product, :TaskSubType, :AuthType, :AuthSource
7030
+
7031
+ def initialize(taskid=nil, instanceid=nil, _alias=nil, tasktypeid=nil, tasktypename=nil, taskstatus=nil, devicestatus=nil, operatestatus=nil, createtime=nil, authtime=nil, endtime=nil, taskdetail=nil, zone=nil, region=nil, vpcid=nil, vpcname=nil, subnetid=nil, subnetname=nil, wanip=nil, lanip=nil, product=nil, tasksubtype=nil, authtype=nil, authsource=nil)
7032
+ @TaskId = taskid
7033
+ @InstanceId = instanceid
7034
+ @Alias = _alias
7035
+ @TaskTypeId = tasktypeid
7036
+ @TaskTypeName = tasktypename
7037
+ @TaskStatus = taskstatus
7038
+ @DeviceStatus = devicestatus
7039
+ @OperateStatus = operatestatus
7040
+ @CreateTime = createtime
7041
+ @AuthTime = authtime
7042
+ @EndTime = endtime
7043
+ @TaskDetail = taskdetail
7044
+ @Zone = zone
7045
+ @Region = region
7046
+ @VpcId = vpcid
7047
+ @VpcName = vpcname
7048
+ @SubnetId = subnetid
7049
+ @SubnetName = subnetname
7050
+ @WanIp = wanip
7051
+ @LanIp = lanip
7052
+ @Product = product
7053
+ @TaskSubType = tasksubtype
7054
+ @AuthType = authtype
7055
+ @AuthSource = authsource
7056
+ end
7057
+
7058
+ def deserialize(params)
7059
+ @TaskId = params['TaskId']
7060
+ @InstanceId = params['InstanceId']
7061
+ @Alias = params['Alias']
7062
+ @TaskTypeId = params['TaskTypeId']
7063
+ @TaskTypeName = params['TaskTypeName']
7064
+ @TaskStatus = params['TaskStatus']
7065
+ @DeviceStatus = params['DeviceStatus']
7066
+ @OperateStatus = params['OperateStatus']
7067
+ @CreateTime = params['CreateTime']
7068
+ @AuthTime = params['AuthTime']
7069
+ @EndTime = params['EndTime']
7070
+ @TaskDetail = params['TaskDetail']
7071
+ @Zone = params['Zone']
7072
+ @Region = params['Region']
7073
+ @VpcId = params['VpcId']
7074
+ @VpcName = params['VpcName']
7075
+ @SubnetId = params['SubnetId']
7076
+ @SubnetName = params['SubnetName']
7077
+ @WanIp = params['WanIp']
7078
+ @LanIp = params['LanIp']
7079
+ @Product = params['Product']
7080
+ @TaskSubType = params['TaskSubType']
7081
+ @AuthType = params['AuthType']
7082
+ @AuthSource = params['AuthSource']
7083
+ end
7084
+ end
7085
+
6727
7086
  # 预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
6728
7087
  class ReservedInstanceConfigInfoItem < TencentCloud::Common::AbstractModel
6729
7088
  # @param Type: 实例规格。
@@ -7929,15 +8288,19 @@ module TencentCloud
7929
8288
  class TerminateInstancesRequest < TencentCloud::Common::AbstractModel
7930
8289
  # @param InstanceIds: 一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
7931
8290
  # @type InstanceIds: Array
8291
+ # @param ReleasePrepaidDataDisks: 释放实例挂载的包年包月数据盘。
8292
+ # @type ReleasePrepaidDataDisks: Boolean
7932
8293
 
7933
- attr_accessor :InstanceIds
8294
+ attr_accessor :InstanceIds, :ReleasePrepaidDataDisks
7934
8295
 
7935
- def initialize(instanceids=nil)
8296
+ def initialize(instanceids=nil, releaseprepaiddatadisks=nil)
7936
8297
  @InstanceIds = instanceids
8298
+ @ReleasePrepaidDataDisks = releaseprepaiddatadisks
7937
8299
  end
7938
8300
 
7939
8301
  def deserialize(params)
7940
8302
  @InstanceIds = params['InstanceIds']
8303
+ @ReleasePrepaidDataDisks = params['ReleasePrepaidDataDisks']
7941
8304
  end
7942
8305
  end
7943
8306
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.524
4
+ version: 3.0.526
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common