tencentcloud-sdk-tcm 3.0.431 → 3.0.432
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/v20210413/client.rb +48 -0
- data/lib/v20210413/models.rb +79 -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: ee93205f908c1867281d0eea6bf45527fddc324b
|
4
|
+
data.tar.gz: 25c715ea6eb22b23b03347f5cd4f3e490592d413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24be6dc4e448623a8367045c784c7e7be0a26cbb96c2f176c1369cac679583154a66b9f9270a4a112eac9d7c9a174b009286cd914b011251823ea11fab43906d
|
7
|
+
data.tar.gz: 52a7d978d2d7dcf692db91e9d4b18d53eedd4afffe38c2c46adac5fa66dae501ff6e6b96067f8dc5c2b688982a55192e07b07a3f4ef7ef255b83b245c2cef2eb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.432
|
data/lib/v20210413/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 关联集群
|
129
|
+
|
130
|
+
# @param request: Request instance for LinkClusterList.
|
131
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::LinkClusterListRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::LinkClusterListResponse`
|
133
|
+
def LinkClusterList(request)
|
134
|
+
body = send_request('LinkClusterList', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = LinkClusterListResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 修改网格
|
129
153
|
|
130
154
|
# @param request: Request instance for ModifyMesh.
|
@@ -149,6 +173,30 @@ module TencentCloud
|
|
149
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
174
|
end
|
151
175
|
|
176
|
+
# 解关联集群
|
177
|
+
|
178
|
+
# @param request: Request instance for UnlinkCluster.
|
179
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::UnlinkClusterRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::UnlinkClusterResponse`
|
181
|
+
def UnlinkCluster(request)
|
182
|
+
body = send_request('UnlinkCluster', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = UnlinkClusterResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
152
200
|
|
153
201
|
end
|
154
202
|
end
|
data/lib/v20210413/models.rb
CHANGED
@@ -962,6 +962,49 @@ module TencentCloud
|
|
962
962
|
end
|
963
963
|
end
|
964
964
|
|
965
|
+
# LinkClusterList请求参数结构体
|
966
|
+
class LinkClusterListRequest < TencentCloud::Common::AbstractModel
|
967
|
+
# @param MeshId: 网格Id
|
968
|
+
# @type MeshId: String
|
969
|
+
# @param ClusterList: 关联集群
|
970
|
+
# @type ClusterList: Array
|
971
|
+
|
972
|
+
attr_accessor :MeshId, :ClusterList
|
973
|
+
|
974
|
+
def initialize(meshid=nil, clusterlist=nil)
|
975
|
+
@MeshId = meshid
|
976
|
+
@ClusterList = clusterlist
|
977
|
+
end
|
978
|
+
|
979
|
+
def deserialize(params)
|
980
|
+
@MeshId = params['MeshId']
|
981
|
+
unless params['ClusterList'].nil?
|
982
|
+
@ClusterList = []
|
983
|
+
params['ClusterList'].each do |i|
|
984
|
+
cluster_tmp = Cluster.new
|
985
|
+
cluster_tmp.deserialize(i)
|
986
|
+
@ClusterList << cluster_tmp
|
987
|
+
end
|
988
|
+
end
|
989
|
+
end
|
990
|
+
end
|
991
|
+
|
992
|
+
# LinkClusterList返回参数结构体
|
993
|
+
class LinkClusterListResponse < TencentCloud::Common::AbstractModel
|
994
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
995
|
+
# @type RequestId: String
|
996
|
+
|
997
|
+
attr_accessor :RequestId
|
998
|
+
|
999
|
+
def initialize(requestid=nil)
|
1000
|
+
@RequestId = requestid
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
def deserialize(params)
|
1004
|
+
@RequestId = params['RequestId']
|
1005
|
+
end
|
1006
|
+
end
|
1007
|
+
|
965
1008
|
# 负载均衡配置
|
966
1009
|
class LoadBalancer < TencentCloud::Common::AbstractModel
|
967
1010
|
# @param LoadBalancerType: 负载均衡实例的网络类型:
|
@@ -1705,6 +1748,42 @@ module TencentCloud
|
|
1705
1748
|
end
|
1706
1749
|
end
|
1707
1750
|
|
1751
|
+
# UnlinkCluster请求参数结构体
|
1752
|
+
class UnlinkClusterRequest < TencentCloud::Common::AbstractModel
|
1753
|
+
# @param MeshId: 网格Id
|
1754
|
+
# @type MeshId: String
|
1755
|
+
# @param ClusterId: 取消关联的集群Id
|
1756
|
+
# @type ClusterId: String
|
1757
|
+
|
1758
|
+
attr_accessor :MeshId, :ClusterId
|
1759
|
+
|
1760
|
+
def initialize(meshid=nil, clusterid=nil)
|
1761
|
+
@MeshId = meshid
|
1762
|
+
@ClusterId = clusterid
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
def deserialize(params)
|
1766
|
+
@MeshId = params['MeshId']
|
1767
|
+
@ClusterId = params['ClusterId']
|
1768
|
+
end
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# UnlinkCluster返回参数结构体
|
1772
|
+
class UnlinkClusterResponse < TencentCloud::Common::AbstractModel
|
1773
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1774
|
+
# @type RequestId: String
|
1775
|
+
|
1776
|
+
attr_accessor :RequestId
|
1777
|
+
|
1778
|
+
def initialize(requestid=nil)
|
1779
|
+
@RequestId = requestid
|
1780
|
+
end
|
1781
|
+
|
1782
|
+
def deserialize(params)
|
1783
|
+
@RequestId = params['RequestId']
|
1784
|
+
end
|
1785
|
+
end
|
1786
|
+
|
1708
1787
|
# 工作负载配置
|
1709
1788
|
class WorkloadConfig < TencentCloud::Common::AbstractModel
|
1710
1789
|
# @param Replicas: 工作副本数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.432
|
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-10-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|