tencentcloud-sdk-ckafka 3.0.619 → 3.0.621
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/v20190819/client.rb +24 -0
- data/lib/v20190819/models.rb +74 -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: 5039a30213dc30932b31b932a09588a868ecedbf
|
4
|
+
data.tar.gz: 2755b256b2ff3b45d0124f6148e58b17437e8804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c07e7099a5a54a20cd1af47781bee612e0de677450684d31ac319d3481413fd5cb4606595b569264b1b27c8e5b471b3e475c8d5b36d43e790d44b8908176b091
|
7
|
+
data.tar.gz: 9736835f21362e22e3aadf02ba78c56c4faed82cc7bc5e07b913697bba24d7b1f0ca9e4bbd8f89041b9045842dae0c167493aee867339a88c95f64e72167cb63
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.621
|
data/lib/v20190819/client.rb
CHANGED
@@ -1662,6 +1662,30 @@ module TencentCloud
|
|
1662
1662
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1663
1663
|
end
|
1664
1664
|
|
1665
|
+
# 按量实例缩容
|
1666
|
+
|
1667
|
+
# @param request: Request instance for InstanceScalingDown.
|
1668
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::InstanceScalingDownRequest`
|
1669
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::InstanceScalingDownResponse`
|
1670
|
+
def InstanceScalingDown(request)
|
1671
|
+
body = send_request('InstanceScalingDown', request.serialize)
|
1672
|
+
response = JSON.parse(body)
|
1673
|
+
if response['Response'].key?('Error') == false
|
1674
|
+
model = InstanceScalingDownResponse.new
|
1675
|
+
model.deserialize(response['Response'])
|
1676
|
+
model
|
1677
|
+
else
|
1678
|
+
code = response['Response']['Error']['Code']
|
1679
|
+
message = response['Response']['Error']['Message']
|
1680
|
+
reqid = response['Response']['RequestId']
|
1681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1682
|
+
end
|
1683
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1684
|
+
raise e
|
1685
|
+
rescue StandardError => e
|
1686
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1687
|
+
end
|
1688
|
+
|
1665
1689
|
# 修改AC策略,目前只支持预设规则的是否应用到新增topic这一项的修改
|
1666
1690
|
|
1667
1691
|
# @param request: Request instance for ModifyAclRule.
|
data/lib/v20190819/models.rb
CHANGED
@@ -7949,6 +7949,63 @@ module TencentCloud
|
|
7949
7949
|
end
|
7950
7950
|
end
|
7951
7951
|
|
7952
|
+
# InstanceScalingDown请求参数结构体
|
7953
|
+
class InstanceScalingDownRequest < TencentCloud::Common::AbstractModel
|
7954
|
+
# @param InstanceId: 实例id
|
7955
|
+
# @type InstanceId: String
|
7956
|
+
# @param UpgradeStrategy: 缩容模式 1:稳定变配
|
7957
|
+
# 2.高速变配
|
7958
|
+
# @type UpgradeStrategy: Integer
|
7959
|
+
# @param DiskSize: 磁盘大小 单位 GB
|
7960
|
+
# @type DiskSize: Integer
|
7961
|
+
# @param BandWidth: 峰值带宽 单位 MB/s
|
7962
|
+
# @type BandWidth: Integer
|
7963
|
+
# @param Partition: 分区上限
|
7964
|
+
# @type Partition: Integer
|
7965
|
+
|
7966
|
+
attr_accessor :InstanceId, :UpgradeStrategy, :DiskSize, :BandWidth, :Partition
|
7967
|
+
|
7968
|
+
def initialize(instanceid=nil, upgradestrategy=nil, disksize=nil, bandwidth=nil, partition=nil)
|
7969
|
+
@InstanceId = instanceid
|
7970
|
+
@UpgradeStrategy = upgradestrategy
|
7971
|
+
@DiskSize = disksize
|
7972
|
+
@BandWidth = bandwidth
|
7973
|
+
@Partition = partition
|
7974
|
+
end
|
7975
|
+
|
7976
|
+
def deserialize(params)
|
7977
|
+
@InstanceId = params['InstanceId']
|
7978
|
+
@UpgradeStrategy = params['UpgradeStrategy']
|
7979
|
+
@DiskSize = params['DiskSize']
|
7980
|
+
@BandWidth = params['BandWidth']
|
7981
|
+
@Partition = params['Partition']
|
7982
|
+
end
|
7983
|
+
end
|
7984
|
+
|
7985
|
+
# InstanceScalingDown返回参数结构体
|
7986
|
+
class InstanceScalingDownResponse < TencentCloud::Common::AbstractModel
|
7987
|
+
# @param Result: 缩容应答
|
7988
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7989
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.ScalingDownResp`
|
7990
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7991
|
+
# @type RequestId: String
|
7992
|
+
|
7993
|
+
attr_accessor :Result, :RequestId
|
7994
|
+
|
7995
|
+
def initialize(result=nil, requestid=nil)
|
7996
|
+
@Result = result
|
7997
|
+
@RequestId = requestid
|
7998
|
+
end
|
7999
|
+
|
8000
|
+
def deserialize(params)
|
8001
|
+
unless params['Result'].nil?
|
8002
|
+
@Result = ScalingDownResp.new
|
8003
|
+
@Result.deserialize(params['Result'])
|
8004
|
+
end
|
8005
|
+
@RequestId = params['RequestId']
|
8006
|
+
end
|
8007
|
+
end
|
8008
|
+
|
7952
8009
|
# 操作型结果返回值
|
7953
8010
|
class JgwOperateResponse < TencentCloud::Common::AbstractModel
|
7954
8011
|
# @param ReturnCode: 返回的code,0为正常,非0为错误
|
@@ -10245,6 +10302,23 @@ module TencentCloud
|
|
10245
10302
|
end
|
10246
10303
|
end
|
10247
10304
|
|
10305
|
+
# 实例缩容应答
|
10306
|
+
class ScalingDownResp < TencentCloud::Common::AbstractModel
|
10307
|
+
# @param DealNames: 订单号
|
10308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10309
|
+
# @type DealNames: Array
|
10310
|
+
|
10311
|
+
attr_accessor :DealNames
|
10312
|
+
|
10313
|
+
def initialize(dealnames=nil)
|
10314
|
+
@DealNames = dealnames
|
10315
|
+
end
|
10316
|
+
|
10317
|
+
def deserialize(params)
|
10318
|
+
@DealNames = params['DealNames']
|
10319
|
+
end
|
10320
|
+
end
|
10321
|
+
|
10248
10322
|
# Scf类型入参
|
10249
10323
|
class ScfParam < TencentCloud::Common::AbstractModel
|
10250
10324
|
# @param FunctionName: SCF云函数函数名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ckafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.621
|
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-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|