tencentcloud-sdk-es 3.0.719 → 3.0.720
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/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +50 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33eb772bfdda42b437718bcd7f5439f7d8b2bfb4
|
4
|
+
data.tar.gz: 7500fdc5fdac55d55934334cae780b5f4138410c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa9e5c9831d69e5bce2593bd92d3f3a131d0b4e9f6473f74668876ef8be45b6f08ae2d4e24da13369d7034036c27966e2a1a022cbbf57a0eadc6c88ffe8fb511
|
7
|
+
data.tar.gz: 9e30c506d13d730982be00f7ac8f58b79e6f796f91ab8f4fcc9ef56f8c145c081d3b1dcb8aa0d5a9a85334dc5d91fca7bf4dfb9e69327e600ac4b589ca35c076
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.720
|
data/lib/v20180416/client.rb
CHANGED
@@ -557,6 +557,30 @@ module TencentCloud
|
|
557
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
558
|
end
|
559
559
|
|
560
|
+
# 集群续费询价接口,续费前通过调用该接口,可获取集群续费的价格。
|
561
|
+
|
562
|
+
# @param request: Request instance for InquirePriceRenewInstance.
|
563
|
+
# @type request: :class:`Tencentcloud::es::V20180416::InquirePriceRenewInstanceRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::es::V20180416::InquirePriceRenewInstanceResponse`
|
565
|
+
def InquirePriceRenewInstance(request)
|
566
|
+
body = send_request('InquirePriceRenewInstance', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = InquirePriceRenewInstanceResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
560
584
|
# 修改绑定VIP的安全组,传安全组id列表
|
561
585
|
|
562
586
|
# @param request: Request instance for ModifyEsVipSecurityGroup.
|
data/lib/v20180416/models.rb
CHANGED
@@ -255,7 +255,7 @@ module TencentCloud
|
|
255
255
|
# 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
|
256
256
|
# @type NodeType: String
|
257
257
|
# @param DiskType: 已废弃请使用NodeInfoList
|
258
|
-
# 节点磁盘类型<li>CLOUD_SSD:SSD云硬盘</li><li>CLOUD_PREMIUM:高性能云硬盘</li>默认值CLOUD_SSD
|
258
|
+
# 节点磁盘类型<li>CLOUD_SSD:SSD云硬盘</li><li>CLOUD_PREMIUM:高性能云硬盘</li><li> CLOUD_HSSD:增强型SSD云硬盘</li><li> CLOUD_BSSD:通用型SSD云硬盘</li>默认值CLOUD_SSD
|
259
259
|
# @type DiskType: String
|
260
260
|
# @param DiskSize: 已废弃请使用NodeInfoList
|
261
261
|
# 节点磁盘容量(单位GB)
|
@@ -280,7 +280,7 @@ module TencentCloud
|
|
280
280
|
# @type MasterNodeDiskSize: Integer
|
281
281
|
# @param ClusterNameInConf: 集群配置文件中的ClusterName(系统默认配置为实例ID,暂不支持自定义)
|
282
282
|
# @type ClusterNameInConf: String
|
283
|
-
# @param DeployMode: 集群部署方式<li>0:单可用区部署</li><li>1
|
283
|
+
# @param DeployMode: 集群部署方式<li>0:单可用区部署</li><li>1:多可用区部署,北京、上海、上海金融、广州、南京、香港、新加坡、法兰克福(白名单控制)</li>默认为0
|
284
284
|
# @type DeployMode: Integer
|
285
285
|
# @param MultiZoneInfo: 多可用区部署时可用区的详细信息(DeployMode为1时必传)
|
286
286
|
# @type MultiZoneInfo: Array
|
@@ -2264,6 +2264,54 @@ module TencentCloud
|
|
2264
2264
|
end
|
2265
2265
|
end
|
2266
2266
|
|
2267
|
+
# InquirePriceRenewInstance请求参数结构体
|
2268
|
+
class InquirePriceRenewInstanceRequest < TencentCloud::Common::AbstractModel
|
2269
|
+
# @param InstanceId: 集群实例Id
|
2270
|
+
# @type InstanceId: String
|
2271
|
+
|
2272
|
+
attr_accessor :InstanceId
|
2273
|
+
|
2274
|
+
def initialize(instanceid=nil)
|
2275
|
+
@InstanceId = instanceid
|
2276
|
+
end
|
2277
|
+
|
2278
|
+
def deserialize(params)
|
2279
|
+
@InstanceId = params['InstanceId']
|
2280
|
+
end
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# InquirePriceRenewInstance返回参数结构体
|
2284
|
+
class InquirePriceRenewInstanceResponse < TencentCloud::Common::AbstractModel
|
2285
|
+
# @param OriginalPrice: 刊例价,即集群原始价格
|
2286
|
+
# @type OriginalPrice: Float
|
2287
|
+
# @param DiscountPrice: 折后价
|
2288
|
+
# @type DiscountPrice: Float
|
2289
|
+
# @param Discount: 折扣,如65折
|
2290
|
+
# @type Discount: Float
|
2291
|
+
# @param Currency: 货币,如CNY代表人民币
|
2292
|
+
# @type Currency: String
|
2293
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2294
|
+
# @type RequestId: String
|
2295
|
+
|
2296
|
+
attr_accessor :OriginalPrice, :DiscountPrice, :Discount, :Currency, :RequestId
|
2297
|
+
|
2298
|
+
def initialize(originalprice=nil, discountprice=nil, discount=nil, currency=nil, requestid=nil)
|
2299
|
+
@OriginalPrice = originalprice
|
2300
|
+
@DiscountPrice = discountprice
|
2301
|
+
@Discount = discount
|
2302
|
+
@Currency = currency
|
2303
|
+
@RequestId = requestid
|
2304
|
+
end
|
2305
|
+
|
2306
|
+
def deserialize(params)
|
2307
|
+
@OriginalPrice = params['OriginalPrice']
|
2308
|
+
@DiscountPrice = params['DiscountPrice']
|
2309
|
+
@Discount = params['Discount']
|
2310
|
+
@Currency = params['Currency']
|
2311
|
+
@RequestId = params['RequestId']
|
2312
|
+
end
|
2313
|
+
end
|
2314
|
+
|
2267
2315
|
# 实例详细信息
|
2268
2316
|
class InstanceInfo < TencentCloud::Common::AbstractModel
|
2269
2317
|
# @param InstanceId: 实例ID
|