tencentcloud-sdk-cvm 3.0.481 → 3.0.482
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +25 -0
- data/lib/v20170312/models.rb +69 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5349bf08985076ddf1193d83533e62e07f3d9e22
|
4
|
+
data.tar.gz: b79bc56a6ea0b7d8b50ff785d0eea3a39c534d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2617caca5d6a5a82099082c74a22156c7cbc2920cc5c39d847c1ad423b7331f657638f76236cc40e7a25b6ef4b4820ab228e11a0f03bedb418282edb0f93212
|
7
|
+
data.tar.gz: 7811bc6a7b9fbc361f776294b8b449f7580a9b20844de85aab5d8a97c4ac8d0ce7ec4fdf3c730542cb87ed7e3cc2a3bf9ccc66758ac8f68437e1ca774879e28c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.482
|
data/lib/v20170312/client.rb
CHANGED
@@ -1374,6 +1374,31 @@ module TencentCloud
|
|
1374
1374
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1375
1375
|
end
|
1376
1376
|
|
1377
|
+
# 本接口 (InquiryPriceRenewHosts) 用于续费包年包月`CDH`实例询价。
|
1378
|
+
# * 只支持查询包年包月`CDH`实例的续费价格。
|
1379
|
+
|
1380
|
+
# @param request: Request instance for InquiryPriceRenewHosts.
|
1381
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::InquiryPriceRenewHostsRequest`
|
1382
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::InquiryPriceRenewHostsResponse`
|
1383
|
+
def InquiryPriceRenewHosts(request)
|
1384
|
+
body = send_request('InquiryPriceRenewHosts', request.serialize)
|
1385
|
+
response = JSON.parse(body)
|
1386
|
+
if response['Response'].key?('Error') == false
|
1387
|
+
model = InquiryPriceRenewHostsResponse.new
|
1388
|
+
model.deserialize(response['Response'])
|
1389
|
+
model
|
1390
|
+
else
|
1391
|
+
code = response['Response']['Error']['Code']
|
1392
|
+
message = response['Response']['Error']['Message']
|
1393
|
+
reqid = response['Response']['RequestId']
|
1394
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1395
|
+
end
|
1396
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1397
|
+
raise e
|
1398
|
+
rescue StandardError => e
|
1399
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1400
|
+
end
|
1401
|
+
|
1377
1402
|
# 本接口 (InquiryPriceRenewInstances) 用于续费包年包月实例询价。
|
1378
1403
|
|
1379
1404
|
# * 只支持查询包年包月实例的续费价格。
|
data/lib/v20170312/models.rb
CHANGED
@@ -3531,6 +3531,25 @@ module TencentCloud
|
|
3531
3531
|
end
|
3532
3532
|
end
|
3533
3533
|
|
3534
|
+
# cdh相关价格信息
|
3535
|
+
class HostPriceInfo < TencentCloud::Common::AbstractModel
|
3536
|
+
# @param HostPrice: 描述了cdh实例相关的价格信息
|
3537
|
+
# @type HostPrice: :class:`Tencentcloud::Cvm.v20170312.models.ItemPrice`
|
3538
|
+
|
3539
|
+
attr_accessor :HostPrice
|
3540
|
+
|
3541
|
+
def initialize(hostprice=nil)
|
3542
|
+
@HostPrice = hostprice
|
3543
|
+
end
|
3544
|
+
|
3545
|
+
def deserialize(params)
|
3546
|
+
unless params['HostPrice'].nil?
|
3547
|
+
@HostPrice = ItemPrice.new
|
3548
|
+
@HostPrice.deserialize(params['HostPrice'])
|
3549
|
+
end
|
3550
|
+
end
|
3551
|
+
end
|
3552
|
+
|
3534
3553
|
# 专用宿主机实例的资源信息
|
3535
3554
|
class HostResource < TencentCloud::Common::AbstractModel
|
3536
3555
|
# @param CpuTotal: 专用宿主机实例总CPU核数
|
@@ -4018,6 +4037,56 @@ module TencentCloud
|
|
4018
4037
|
end
|
4019
4038
|
end
|
4020
4039
|
|
4040
|
+
# InquiryPriceRenewHosts请求参数结构体
|
4041
|
+
class InquiryPriceRenewHostsRequest < TencentCloud::Common::AbstractModel
|
4042
|
+
# @param HostIds: 一个或多个待操作的`CDH`实例`ID`。可通过[`DescribeHosts`](https://cloud.tencent.com/document/api/213/16474)接口返回值中的`HostId`获取。每次请求批量实例的上限为100。
|
4043
|
+
# @type HostIds: Array
|
4044
|
+
# @param HostChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
|
4045
|
+
# @type HostChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.ChargePrepaid`
|
4046
|
+
# @param DryRun: 试运行,测试使用,不执行具体逻辑。取值范围:<br><li>TRUE:跳过执行逻辑<br><li>FALSE:执行逻辑<br><br>默认取值:FALSE。
|
4047
|
+
# @type DryRun: Boolean
|
4048
|
+
|
4049
|
+
attr_accessor :HostIds, :HostChargePrepaid, :DryRun
|
4050
|
+
|
4051
|
+
def initialize(hostids=nil, hostchargeprepaid=nil, dryrun=nil)
|
4052
|
+
@HostIds = hostids
|
4053
|
+
@HostChargePrepaid = hostchargeprepaid
|
4054
|
+
@DryRun = dryrun
|
4055
|
+
end
|
4056
|
+
|
4057
|
+
def deserialize(params)
|
4058
|
+
@HostIds = params['HostIds']
|
4059
|
+
unless params['HostChargePrepaid'].nil?
|
4060
|
+
@HostChargePrepaid = ChargePrepaid.new
|
4061
|
+
@HostChargePrepaid.deserialize(params['HostChargePrepaid'])
|
4062
|
+
end
|
4063
|
+
@DryRun = params['DryRun']
|
4064
|
+
end
|
4065
|
+
end
|
4066
|
+
|
4067
|
+
# InquiryPriceRenewHosts返回参数结构体
|
4068
|
+
class InquiryPriceRenewHostsResponse < TencentCloud::Common::AbstractModel
|
4069
|
+
# @param Price: CDH实例续费价格信息
|
4070
|
+
# @type Price: :class:`Tencentcloud::Cvm.v20170312.models.HostPriceInfo`
|
4071
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4072
|
+
# @type RequestId: String
|
4073
|
+
|
4074
|
+
attr_accessor :Price, :RequestId
|
4075
|
+
|
4076
|
+
def initialize(price=nil, requestid=nil)
|
4077
|
+
@Price = price
|
4078
|
+
@RequestId = requestid
|
4079
|
+
end
|
4080
|
+
|
4081
|
+
def deserialize(params)
|
4082
|
+
unless params['Price'].nil?
|
4083
|
+
@Price = HostPriceInfo.new
|
4084
|
+
@Price.deserialize(params['Price'])
|
4085
|
+
end
|
4086
|
+
@RequestId = params['RequestId']
|
4087
|
+
end
|
4088
|
+
end
|
4089
|
+
|
4021
4090
|
# InquiryPriceRenewInstances请求参数结构体
|
4022
4091
|
class InquiryPriceRenewInstancesRequest < TencentCloud::Common::AbstractModel
|
4023
4092
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`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: 3.0.
|
4
|
+
version: 3.0.482
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|