tencentcloud-sdk-cvm 1.0.221 → 1.0.222

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a60970ce5231d97e0a8ae73dabf277c608f0ee88
4
- data.tar.gz: c78f7d2ff8c72a74dafa41ffb4505758c835bcd0
3
+ metadata.gz: 33e6bcccde51166f4a4b243f53888f9ac31b0346
4
+ data.tar.gz: 2912d63acff64253c58223fc1846dd6f44f94215
5
5
  SHA512:
6
- metadata.gz: a8a2966dc3a109df3f74fd3376dc27f7b056b6c985580cd02144598a232230f62744f8ea491cc4f3c94c3ecfa2528d18616a4e4b5a3ac1f8c52390cc9ab0684b
7
- data.tar.gz: 7447df697dc0908689c6fa22d7ae0d92185361d10472d5e002180ded4ad78de832a32be2f35dba58fe3ec47c583bc8ade2a5fb76a012204fe2b3139da2d049e9
6
+ metadata.gz: db3a2483b35b29b75edbc0e9493d800bc7147ab0cb356117dcb286a63a9904e925823c7aeec6fad2aaa420256516f42c7fa0b352c23f949a9c1b9ed6acdee9a2
7
+ data.tar.gz: 17416f8369d8be1fad984df5b1c3e360fb42e9adb552b0a1b076d4c38d92addc4884001f583e74b8c3e353a0de938b1be01ef869e21387b0e33356552e796bf3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.221
1
+ 1.0.222
@@ -1325,6 +1325,35 @@ module TencentCloud
1325
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
1326
  end
1327
1327
 
1328
+ # 本接口 (ModifyInstanceDiskType) 用于修改实例硬盘介质类型。
1329
+
1330
+ # * 只支持实例的本地系统盘、本地数据盘转化成指定云硬盘介质。
1331
+ # * 只支持实例在关机状态下转换成指定云硬盘介质。
1332
+ # * 不支持竞价实例类型。
1333
+ # * 修改前请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/378/4397)接口查询账户余额。
1334
+
1335
+ # @param request: Request instance for ModifyInstanceDiskType.
1336
+ # @type request: :class:`Tencentcloud::cvm::V20170312::ModifyInstanceDiskTypeRequest`
1337
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::ModifyInstanceDiskTypeResponse`
1338
+ def ModifyInstanceDiskType(request)
1339
+ body = send_request('ModifyInstanceDiskType', request.serialize)
1340
+ response = JSON.parse(body)
1341
+ if response['Response'].key?('Error') == false
1342
+ model = ModifyInstanceDiskTypeResponse.new
1343
+ model.deserialize(response['Response'])
1344
+ model
1345
+ else
1346
+ code = response['Response']['Error']['Code']
1347
+ message = response['Response']['Error']['Message']
1348
+ reqid = response['Response']['RequestId']
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1350
+ end
1351
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1352
+ raise e
1353
+ rescue StandardError => e
1354
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1355
+ end
1356
+
1328
1357
  # 本接口 (ModifyInstancesAttribute) 用于修改实例的属性(目前只支持修改实例的名称和关联的安全组)。
1329
1358
 
1330
1359
  # * 每次请求必须指定实例的一种属性用于修改。
@@ -4078,6 +4078,56 @@ module TencentCloud
4078
4078
  end
4079
4079
  end
4080
4080
 
4081
+ # ModifyInstanceDiskType请求参数结构体
4082
+ class ModifyInstanceDiskTypeRequest < TencentCloud::Common::AbstractModel
4083
+ # @param InstanceId: 待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/9388)接口返回值中的`InstanceId`获取。
4084
+ # @type InstanceId: String
4085
+ # @param DataDisks: 实例数据盘配置信息,只需要指定要转换的目标云硬盘的介质类型,指定DiskType的值,当前只支持一个数据盘转化。只支持CDHPAID类型实例指定CdcId参数。
4086
+ # @type DataDisks: Array
4087
+ # @param SystemDisk: 实例系统盘配置信息,只需要指定要转换的目标云硬盘的介质类型,指定DiskType的值。只支持CDHPAID类型实例指定CdcId参数。
4088
+ # @type SystemDisk: :class:`Tencentcloud::Cvm.v20170312.models.SystemDisk`
4089
+
4090
+ attr_accessor :InstanceId, :DataDisks, :SystemDisk
4091
+
4092
+ def initialize(instanceid=nil, datadisks=nil, systemdisk=nil)
4093
+ @InstanceId = instanceid
4094
+ @DataDisks = datadisks
4095
+ @SystemDisk = systemdisk
4096
+ end
4097
+
4098
+ def deserialize(params)
4099
+ @InstanceId = params['InstanceId']
4100
+ unless params['DataDisks'].nil?
4101
+ @DataDisks = []
4102
+ params['DataDisks'].each do |i|
4103
+ datadisk_tmp = DataDisk.new
4104
+ datadisk_tmp.deserialize(i)
4105
+ @DataDisks << datadisk_tmp
4106
+ end
4107
+ end
4108
+ unless params['SystemDisk'].nil?
4109
+ @SystemDisk = SystemDisk.new
4110
+ @SystemDisk.deserialize(params['SystemDisk'])
4111
+ end
4112
+ end
4113
+ end
4114
+
4115
+ # ModifyInstanceDiskType返回参数结构体
4116
+ class ModifyInstanceDiskTypeResponse < TencentCloud::Common::AbstractModel
4117
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4118
+ # @type RequestId: String
4119
+
4120
+ attr_accessor :RequestId
4121
+
4122
+ def initialize(requestid=nil)
4123
+ @RequestId = requestid
4124
+ end
4125
+
4126
+ def deserialize(params)
4127
+ @RequestId = params['RequestId']
4128
+ end
4129
+ end
4130
+
4081
4131
  # ModifyInstancesAttribute请求参数结构体
4082
4132
  class ModifyInstancesAttributeRequest < TencentCloud::Common::AbstractModel
4083
4133
  # @param InstanceIds: 一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。每次请求允许操作的实例数量上限是100。
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: 1.0.221
4
+ version: 1.0.222
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common