tencentcloud-sdk-ckafka 3.0.619 → 3.0.620
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: cf9d37e2308970e08ef3713b84b3d7c5e77cde8a
|
4
|
+
data.tar.gz: 52e230e665b4d73941dc3e22e27e619adfcccb93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6baf32349188aae4018600e3174e37a981ff9cc8a39a8a6557a02f848c9e0e7c5ec19094cdb291c4f74d1f4ee2f11222dda8f8e74dc9413281183808dc1d315
|
7
|
+
data.tar.gz: 7da386566d4fcdfd74d50ae8c84f9573fea6b881e446bb6c12c9b69af65207346d310f42d612f8bae35afdef466ca6d12c353ec8bbb85185cc5e1bbc74ad456b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.620
|
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.620
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|