tencentcloud-sdk-tcm 3.0.431 → 3.0.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210413/client.rb +48 -0
- data/lib/v20210413/models.rb +139 -6
- 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: 2a2f47d4a9836b3e2a15e8b6e05944e767d34825
|
4
|
+
data.tar.gz: 87870edffb375f30b63b462ed85ffaee1fc10607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3ebf67bfce36565afd117934ff009bbd69cd8681c1a399ca7bb47a6843f1d7618b03f684ef9aa3e352219036e38f6bdfd10125a506232c2e5b487215cd45aaf
|
7
|
+
data.tar.gz: eefd8ef04b755c8f46a7845f469517a3fdab4c71e99cfa958ccfa3b4726569e4e77e669ec16db1276b7015597e102cc229d79b1ff1571d168a218b9d18d03ecb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.433
|
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
@@ -631,13 +631,16 @@ module TencentCloud
|
|
631
631
|
# @type Namespace: String
|
632
632
|
# @param Workload: 工作负载配置
|
633
633
|
# @type Workload: :class:`Tencentcloud::Tcm.v20210413.models.WorkloadConfig`
|
634
|
+
# @param Status: 工作负载的状态
|
635
|
+
# @type Status: :class:`Tencentcloud::Tcm.v20210413.models.EgressGatewayStatus`
|
634
636
|
|
635
|
-
attr_accessor :Name, :Namespace, :Workload
|
637
|
+
attr_accessor :Name, :Namespace, :Workload, :Status
|
636
638
|
|
637
|
-
def initialize(name=nil, namespace=nil, workload=nil)
|
639
|
+
def initialize(name=nil, namespace=nil, workload=nil, status=nil)
|
638
640
|
@Name = name
|
639
641
|
@Namespace = namespace
|
640
642
|
@Workload = workload
|
643
|
+
@Status = status
|
641
644
|
end
|
642
645
|
|
643
646
|
def deserialize(params)
|
@@ -647,6 +650,34 @@ module TencentCloud
|
|
647
650
|
@Workload = WorkloadConfig.new
|
648
651
|
@Workload.deserialize(params['Workload'])
|
649
652
|
end
|
653
|
+
unless params['Status'].nil?
|
654
|
+
@Status = EgressGatewayStatus.new
|
655
|
+
@Status.deserialize(params['Status'])
|
656
|
+
end
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
# egress gateway 的状态
|
661
|
+
class EgressGatewayStatus < TencentCloud::Common::AbstractModel
|
662
|
+
# @param CurrentVersion: egress gateway的当前版本
|
663
|
+
# @type CurrentVersion: String
|
664
|
+
# @param DesiredVersion: egress gateway的目标版本
|
665
|
+
# @type DesiredVersion: String
|
666
|
+
# @param State: egress gateway的状态,取值:running,upgrading,rollbacking
|
667
|
+
# @type State: String
|
668
|
+
|
669
|
+
attr_accessor :CurrentVersion, :DesiredVersion, :State
|
670
|
+
|
671
|
+
def initialize(currentversion=nil, desiredversion=nil, state=nil)
|
672
|
+
@CurrentVersion = currentversion
|
673
|
+
@DesiredVersion = desiredversion
|
674
|
+
@State = state
|
675
|
+
end
|
676
|
+
|
677
|
+
def deserialize(params)
|
678
|
+
@CurrentVersion = params['CurrentVersion']
|
679
|
+
@DesiredVersion = params['DesiredVersion']
|
680
|
+
@State = params['State']
|
650
681
|
end
|
651
682
|
end
|
652
683
|
|
@@ -855,11 +886,20 @@ module TencentCloud
|
|
855
886
|
class IngressGatewayStatus < TencentCloud::Common::AbstractModel
|
856
887
|
# @param LoadBalancer: 负载均衡实例状态
|
857
888
|
# @type LoadBalancer: :class:`Tencentcloud::Tcm.v20210413.models.LoadBalancerStatus`
|
889
|
+
# @param CurrentVersion: ingress gateway 当前的版本
|
890
|
+
# @type CurrentVersion: String
|
891
|
+
# @param DesiredVersion: ingress gateway 目标的版本
|
892
|
+
# @type DesiredVersion: String
|
893
|
+
# @param State: ingress gateway的状态,取值running, upgrading, rollbacking
|
894
|
+
# @type State: String
|
858
895
|
|
859
|
-
attr_accessor :LoadBalancer
|
896
|
+
attr_accessor :LoadBalancer, :CurrentVersion, :DesiredVersion, :State
|
860
897
|
|
861
|
-
def initialize(loadbalancer=nil)
|
898
|
+
def initialize(loadbalancer=nil, currentversion=nil, desiredversion=nil, state=nil)
|
862
899
|
@LoadBalancer = loadbalancer
|
900
|
+
@CurrentVersion = currentversion
|
901
|
+
@DesiredVersion = desiredversion
|
902
|
+
@State = state
|
863
903
|
end
|
864
904
|
|
865
905
|
def deserialize(params)
|
@@ -867,6 +907,9 @@ module TencentCloud
|
|
867
907
|
@LoadBalancer = LoadBalancerStatus.new
|
868
908
|
@LoadBalancer.deserialize(params['LoadBalancer'])
|
869
909
|
end
|
910
|
+
@CurrentVersion = params['CurrentVersion']
|
911
|
+
@DesiredVersion = params['DesiredVersion']
|
912
|
+
@State = params['State']
|
870
913
|
end
|
871
914
|
end
|
872
915
|
|
@@ -962,6 +1005,49 @@ module TencentCloud
|
|
962
1005
|
end
|
963
1006
|
end
|
964
1007
|
|
1008
|
+
# LinkClusterList请求参数结构体
|
1009
|
+
class LinkClusterListRequest < TencentCloud::Common::AbstractModel
|
1010
|
+
# @param MeshId: 网格Id
|
1011
|
+
# @type MeshId: String
|
1012
|
+
# @param ClusterList: 关联集群
|
1013
|
+
# @type ClusterList: Array
|
1014
|
+
|
1015
|
+
attr_accessor :MeshId, :ClusterList
|
1016
|
+
|
1017
|
+
def initialize(meshid=nil, clusterlist=nil)
|
1018
|
+
@MeshId = meshid
|
1019
|
+
@ClusterList = clusterlist
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
def deserialize(params)
|
1023
|
+
@MeshId = params['MeshId']
|
1024
|
+
unless params['ClusterList'].nil?
|
1025
|
+
@ClusterList = []
|
1026
|
+
params['ClusterList'].each do |i|
|
1027
|
+
cluster_tmp = Cluster.new
|
1028
|
+
cluster_tmp.deserialize(i)
|
1029
|
+
@ClusterList << cluster_tmp
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
end
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
# LinkClusterList返回参数结构体
|
1036
|
+
class LinkClusterListResponse < TencentCloud::Common::AbstractModel
|
1037
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1038
|
+
# @type RequestId: String
|
1039
|
+
|
1040
|
+
attr_accessor :RequestId
|
1041
|
+
|
1042
|
+
def initialize(requestid=nil)
|
1043
|
+
@RequestId = requestid
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
def deserialize(params)
|
1047
|
+
@RequestId = params['RequestId']
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
|
965
1051
|
# 负载均衡配置
|
966
1052
|
class LoadBalancer < TencentCloud::Common::AbstractModel
|
967
1053
|
# @param LoadBalancerType: 负载均衡实例的网络类型:
|
@@ -1103,10 +1189,12 @@ module TencentCloud
|
|
1103
1189
|
# @type Config: :class:`Tencentcloud::Tcm.v20210413.models.MeshConfig`
|
1104
1190
|
# @param Status: Mesh详细状态
|
1105
1191
|
# @type Status: :class:`Tencentcloud::Tcm.v20210413.models.MeshStatus`
|
1192
|
+
# @param TagList: 标签列表
|
1193
|
+
# @type TagList: Array
|
1106
1194
|
|
1107
|
-
attr_accessor :MeshId, :DisplayName, :Type, :Region, :Version, :State, :CreatedTime, :UpdatedTime, :ClusterList, :Config, :Status
|
1195
|
+
attr_accessor :MeshId, :DisplayName, :Type, :Region, :Version, :State, :CreatedTime, :UpdatedTime, :ClusterList, :Config, :Status, :TagList
|
1108
1196
|
|
1109
|
-
def initialize(meshid=nil, displayname=nil, type=nil, region=nil, version=nil, state=nil, createdtime=nil, updatedtime=nil, clusterlist=nil, config=nil, status=nil)
|
1197
|
+
def initialize(meshid=nil, displayname=nil, type=nil, region=nil, version=nil, state=nil, createdtime=nil, updatedtime=nil, clusterlist=nil, config=nil, status=nil, taglist=nil)
|
1110
1198
|
@MeshId = meshid
|
1111
1199
|
@DisplayName = displayname
|
1112
1200
|
@Type = type
|
@@ -1118,6 +1206,7 @@ module TencentCloud
|
|
1118
1206
|
@ClusterList = clusterlist
|
1119
1207
|
@Config = config
|
1120
1208
|
@Status = status
|
1209
|
+
@TagList = taglist
|
1121
1210
|
end
|
1122
1211
|
|
1123
1212
|
def deserialize(params)
|
@@ -1145,6 +1234,14 @@ module TencentCloud
|
|
1145
1234
|
@Status = MeshStatus.new
|
1146
1235
|
@Status.deserialize(params['Status'])
|
1147
1236
|
end
|
1237
|
+
unless params['TagList'].nil?
|
1238
|
+
@TagList = []
|
1239
|
+
params['TagList'].each do |i|
|
1240
|
+
tag_tmp = Tag.new
|
1241
|
+
tag_tmp.deserialize(i)
|
1242
|
+
@TagList << tag_tmp
|
1243
|
+
end
|
1244
|
+
end
|
1148
1245
|
end
|
1149
1246
|
end
|
1150
1247
|
|
@@ -1705,6 +1802,42 @@ module TencentCloud
|
|
1705
1802
|
end
|
1706
1803
|
end
|
1707
1804
|
|
1805
|
+
# UnlinkCluster请求参数结构体
|
1806
|
+
class UnlinkClusterRequest < TencentCloud::Common::AbstractModel
|
1807
|
+
# @param MeshId: 网格Id
|
1808
|
+
# @type MeshId: String
|
1809
|
+
# @param ClusterId: 取消关联的集群Id
|
1810
|
+
# @type ClusterId: String
|
1811
|
+
|
1812
|
+
attr_accessor :MeshId, :ClusterId
|
1813
|
+
|
1814
|
+
def initialize(meshid=nil, clusterid=nil)
|
1815
|
+
@MeshId = meshid
|
1816
|
+
@ClusterId = clusterid
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
def deserialize(params)
|
1820
|
+
@MeshId = params['MeshId']
|
1821
|
+
@ClusterId = params['ClusterId']
|
1822
|
+
end
|
1823
|
+
end
|
1824
|
+
|
1825
|
+
# UnlinkCluster返回参数结构体
|
1826
|
+
class UnlinkClusterResponse < TencentCloud::Common::AbstractModel
|
1827
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1828
|
+
# @type RequestId: String
|
1829
|
+
|
1830
|
+
attr_accessor :RequestId
|
1831
|
+
|
1832
|
+
def initialize(requestid=nil)
|
1833
|
+
@RequestId = requestid
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
def deserialize(params)
|
1837
|
+
@RequestId = params['RequestId']
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
|
1708
1841
|
# 工作负载配置
|
1709
1842
|
class WorkloadConfig < TencentCloud::Common::AbstractModel
|
1710
1843
|
# @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.433
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|