tencentcloud-sdk-tse 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-tse.rb +11 -0
- data/lib/v20201207/client.rb +84 -0
- data/lib/v20201207/models.rb +484 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c02393104c3431edb3e465d9beb0fef0ff61618e
|
4
|
+
data.tar.gz: f74ec52115735292669c6fd1deae0cb56da1557b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ce109abab784d5a25773e6c6bd6b57be005a017fa87b9a87886a53e50cb537c1ab446c3abe7a674f70dc12e2093420c80417fe5098f7fbec48d511741636984
|
7
|
+
data.tar.gz: 1277ef1ffdc8fb698273e6e440f74fd33b604b83e1549367b627da55affe6895bcf8cc87873aa3907f2db174c5ae3639f4a5e4dd2d7f0d88a5069357213d463b
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Tse
|
21
|
+
module V20201207
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-12-07'
|
26
|
+
api_endpoint = 'tse.tencentcloudapi.com'
|
27
|
+
sdk_version = 'TSE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 查询引擎实例访问地址
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeSREInstanceAccessAddress.
|
35
|
+
# @type request: :class:`Tencentcloud::tse::V20201207::DescribeSREInstanceAccessAddressRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::tse::V20201207::DescribeSREInstanceAccessAddressResponse`
|
37
|
+
def DescribeSREInstanceAccessAddress(request)
|
38
|
+
body = send_request('DescribeSREInstanceAccessAddress', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeSREInstanceAccessAddressResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 用于查询引擎实例列表
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeSREInstances.
|
59
|
+
# @type request: :class:`Tencentcloud::tse::V20201207::DescribeSREInstancesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::tse::V20201207::DescribeSREInstancesResponse`
|
61
|
+
def DescribeSREInstances(request)
|
62
|
+
body = send_request('DescribeSREInstances', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeSREInstancesResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,484 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Tse
|
19
|
+
module V20201207
|
20
|
+
# 服务治理引擎绑定的kubernetes信息
|
21
|
+
class BoundK8SInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param BoundClusterId: 绑定的kubernetes集群ID
|
23
|
+
# @type BoundClusterId: String
|
24
|
+
# @param BoundClusterType: 绑定的kubernetes的集群类型,分tke和eks两种
|
25
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
26
|
+
# @type BoundClusterType: String
|
27
|
+
|
28
|
+
attr_accessor :BoundClusterId, :BoundClusterType
|
29
|
+
|
30
|
+
def initialize(boundclusterid=nil, boundclustertype=nil)
|
31
|
+
@BoundClusterId = boundclusterid
|
32
|
+
@BoundClusterType = boundclustertype
|
33
|
+
end
|
34
|
+
|
35
|
+
def deserialize(params)
|
36
|
+
@BoundClusterId = params['BoundClusterId']
|
37
|
+
@BoundClusterType = params['BoundClusterType']
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# DescribeSREInstanceAccessAddress请求参数结构体
|
42
|
+
class DescribeSREInstanceAccessAddressRequest < TencentCloud::Common::AbstractModel
|
43
|
+
# @param InstanceId: 注册引擎实例Id
|
44
|
+
# @type InstanceId: String
|
45
|
+
# @param VpcId: VPC ID
|
46
|
+
# @type VpcId: String
|
47
|
+
# @param SubnetId: 子网ID
|
48
|
+
# @type SubnetId: String
|
49
|
+
|
50
|
+
attr_accessor :InstanceId, :VpcId, :SubnetId
|
51
|
+
|
52
|
+
def initialize(instanceid=nil, vpcid=nil, subnetid=nil)
|
53
|
+
@InstanceId = instanceid
|
54
|
+
@VpcId = vpcid
|
55
|
+
@SubnetId = subnetid
|
56
|
+
end
|
57
|
+
|
58
|
+
def deserialize(params)
|
59
|
+
@InstanceId = params['InstanceId']
|
60
|
+
@VpcId = params['VpcId']
|
61
|
+
@SubnetId = params['SubnetId']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# DescribeSREInstanceAccessAddress返回参数结构体
|
66
|
+
class DescribeSREInstanceAccessAddressResponse < TencentCloud::Common::AbstractModel
|
67
|
+
# @param IntranetAddress: 内网访问地址
|
68
|
+
# @type IntranetAddress: String
|
69
|
+
# @param InternetAddress: 公网访问地址
|
70
|
+
# @type InternetAddress: String
|
71
|
+
# @param EnvAddressInfos: apollo多环境公网ip
|
72
|
+
# @type EnvAddressInfos: Array
|
73
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
74
|
+
# @type RequestId: String
|
75
|
+
|
76
|
+
attr_accessor :IntranetAddress, :InternetAddress, :EnvAddressInfos, :RequestId
|
77
|
+
|
78
|
+
def initialize(intranetaddress=nil, internetaddress=nil, envaddressinfos=nil, requestid=nil)
|
79
|
+
@IntranetAddress = intranetaddress
|
80
|
+
@InternetAddress = internetaddress
|
81
|
+
@EnvAddressInfos = envaddressinfos
|
82
|
+
@RequestId = requestid
|
83
|
+
end
|
84
|
+
|
85
|
+
def deserialize(params)
|
86
|
+
@IntranetAddress = params['IntranetAddress']
|
87
|
+
@InternetAddress = params['InternetAddress']
|
88
|
+
unless params['EnvAddressInfos'].nil?
|
89
|
+
@EnvAddressInfos = []
|
90
|
+
params['EnvAddressInfos'].each do |i|
|
91
|
+
envaddressinfo_tmp = EnvAddressInfo.new
|
92
|
+
envaddressinfo_tmp.deserialize(i)
|
93
|
+
@EnvAddressInfos << envaddressinfo_tmp
|
94
|
+
end
|
95
|
+
end
|
96
|
+
@RequestId = params['RequestId']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# DescribeSREInstances请求参数结构体
|
101
|
+
class DescribeSREInstancesRequest < TencentCloud::Common::AbstractModel
|
102
|
+
# @param Filters: 请求过滤参数
|
103
|
+
# @type Filters: Array
|
104
|
+
# @param Limit: 翻页单页查询限制数量[0,1000], 默认值0
|
105
|
+
# @type Limit: Integer
|
106
|
+
# @param Offset: 翻页单页偏移量,默认值0
|
107
|
+
# @type Offset: Integer
|
108
|
+
# @param QueryType: 查询类型
|
109
|
+
# @type QueryType: String
|
110
|
+
|
111
|
+
attr_accessor :Filters, :Limit, :Offset, :QueryType
|
112
|
+
|
113
|
+
def initialize(filters=nil, limit=nil, offset=nil, querytype=nil)
|
114
|
+
@Filters = filters
|
115
|
+
@Limit = limit
|
116
|
+
@Offset = offset
|
117
|
+
@QueryType = querytype
|
118
|
+
end
|
119
|
+
|
120
|
+
def deserialize(params)
|
121
|
+
unless params['Filters'].nil?
|
122
|
+
@Filters = []
|
123
|
+
params['Filters'].each do |i|
|
124
|
+
filter_tmp = Filter.new
|
125
|
+
filter_tmp.deserialize(i)
|
126
|
+
@Filters << filter_tmp
|
127
|
+
end
|
128
|
+
end
|
129
|
+
@Limit = params['Limit']
|
130
|
+
@Offset = params['Offset']
|
131
|
+
@QueryType = params['QueryType']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# DescribeSREInstances返回参数结构体
|
136
|
+
class DescribeSREInstancesResponse < TencentCloud::Common::AbstractModel
|
137
|
+
# @param TotalCount: 总数量
|
138
|
+
# @type TotalCount: Integer
|
139
|
+
# @param Content: 实例记录
|
140
|
+
# @type Content: Array
|
141
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
142
|
+
# @type RequestId: String
|
143
|
+
|
144
|
+
attr_accessor :TotalCount, :Content, :RequestId
|
145
|
+
|
146
|
+
def initialize(totalcount=nil, content=nil, requestid=nil)
|
147
|
+
@TotalCount = totalcount
|
148
|
+
@Content = content
|
149
|
+
@RequestId = requestid
|
150
|
+
end
|
151
|
+
|
152
|
+
def deserialize(params)
|
153
|
+
@TotalCount = params['TotalCount']
|
154
|
+
unless params['Content'].nil?
|
155
|
+
@Content = []
|
156
|
+
params['Content'].each do |i|
|
157
|
+
sreinstance_tmp = SREInstance.new
|
158
|
+
sreinstance_tmp.deserialize(i)
|
159
|
+
@Content << sreinstance_tmp
|
160
|
+
end
|
161
|
+
end
|
162
|
+
@RequestId = params['RequestId']
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# 多环境网络信息
|
167
|
+
class EnvAddressInfo < TencentCloud::Common::AbstractModel
|
168
|
+
# @param EnvName: 环境名
|
169
|
+
# @type EnvName: String
|
170
|
+
# @param EnableConfigInternet: 是否开启config公网
|
171
|
+
# @type EnableConfigInternet: Boolean
|
172
|
+
# @param ConfigInternetServiceIp: config公网ip
|
173
|
+
# @type ConfigInternetServiceIp: String
|
174
|
+
|
175
|
+
attr_accessor :EnvName, :EnableConfigInternet, :ConfigInternetServiceIp
|
176
|
+
|
177
|
+
def initialize(envname=nil, enableconfiginternet=nil, configinternetserviceip=nil)
|
178
|
+
@EnvName = envname
|
179
|
+
@EnableConfigInternet = enableconfiginternet
|
180
|
+
@ConfigInternetServiceIp = configinternetserviceip
|
181
|
+
end
|
182
|
+
|
183
|
+
def deserialize(params)
|
184
|
+
@EnvName = params['EnvName']
|
185
|
+
@EnableConfigInternet = params['EnableConfigInternet']
|
186
|
+
@ConfigInternetServiceIp = params['ConfigInternetServiceIp']
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# 环境具体信息
|
191
|
+
class EnvInfo < TencentCloud::Common::AbstractModel
|
192
|
+
# @param EnvName: 环境名称
|
193
|
+
# @type EnvName: String
|
194
|
+
# @param VpcInfos: 环境对应的网络信息
|
195
|
+
# @type VpcInfos: Array
|
196
|
+
# @param StorageCapacity: 云硬盘容量
|
197
|
+
# @type StorageCapacity: Integer
|
198
|
+
# @param Status: 运行状态
|
199
|
+
# @type Status: String
|
200
|
+
# @param AdminServiceIp: Admin service 访问地址
|
201
|
+
# @type AdminServiceIp: String
|
202
|
+
# @param ConfigServiceIp: Config service访问地址
|
203
|
+
# @type ConfigServiceIp: String
|
204
|
+
# @param EnableConfigInternet: 是否开启config-server公网
|
205
|
+
# @type EnableConfigInternet: Boolean
|
206
|
+
# @param ConfigInternetServiceIp: config-server公网访问地址
|
207
|
+
# @type ConfigInternetServiceIp: String
|
208
|
+
|
209
|
+
attr_accessor :EnvName, :VpcInfos, :StorageCapacity, :Status, :AdminServiceIp, :ConfigServiceIp, :EnableConfigInternet, :ConfigInternetServiceIp
|
210
|
+
|
211
|
+
def initialize(envname=nil, vpcinfos=nil, storagecapacity=nil, status=nil, adminserviceip=nil, configserviceip=nil, enableconfiginternet=nil, configinternetserviceip=nil)
|
212
|
+
@EnvName = envname
|
213
|
+
@VpcInfos = vpcinfos
|
214
|
+
@StorageCapacity = storagecapacity
|
215
|
+
@Status = status
|
216
|
+
@AdminServiceIp = adminserviceip
|
217
|
+
@ConfigServiceIp = configserviceip
|
218
|
+
@EnableConfigInternet = enableconfiginternet
|
219
|
+
@ConfigInternetServiceIp = configinternetserviceip
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@EnvName = params['EnvName']
|
224
|
+
unless params['VpcInfos'].nil?
|
225
|
+
@VpcInfos = []
|
226
|
+
params['VpcInfos'].each do |i|
|
227
|
+
vpcinfo_tmp = VpcInfo.new
|
228
|
+
vpcinfo_tmp.deserialize(i)
|
229
|
+
@VpcInfos << vpcinfo_tmp
|
230
|
+
end
|
231
|
+
end
|
232
|
+
@StorageCapacity = params['StorageCapacity']
|
233
|
+
@Status = params['Status']
|
234
|
+
@AdminServiceIp = params['AdminServiceIp']
|
235
|
+
@ConfigServiceIp = params['ConfigServiceIp']
|
236
|
+
@EnableConfigInternet = params['EnableConfigInternet']
|
237
|
+
@ConfigInternetServiceIp = params['ConfigInternetServiceIp']
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# 查询过滤通用对象
|
242
|
+
class Filter < TencentCloud::Common::AbstractModel
|
243
|
+
# @param Name: 过滤参数名
|
244
|
+
# @type Name: String
|
245
|
+
# @param Values: 过滤参数值
|
246
|
+
# @type Values: Array
|
247
|
+
|
248
|
+
attr_accessor :Name, :Values
|
249
|
+
|
250
|
+
def initialize(name=nil, values=nil)
|
251
|
+
@Name = name
|
252
|
+
@Values = values
|
253
|
+
end
|
254
|
+
|
255
|
+
def deserialize(params)
|
256
|
+
@Name = params['Name']
|
257
|
+
@Values = params['Values']
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# 键值对
|
262
|
+
class KVPair < TencentCloud::Common::AbstractModel
|
263
|
+
# @param Key: 键
|
264
|
+
# @type Key: String
|
265
|
+
# @param Value: 值
|
266
|
+
# @type Value: String
|
267
|
+
|
268
|
+
attr_accessor :Key, :Value
|
269
|
+
|
270
|
+
def initialize(key=nil, value=nil)
|
271
|
+
@Key = key
|
272
|
+
@Value = value
|
273
|
+
end
|
274
|
+
|
275
|
+
def deserialize(params)
|
276
|
+
@Key = params['Key']
|
277
|
+
@Value = params['Value']
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# 微服务注册引擎实例
|
282
|
+
class SREInstance < TencentCloud::Common::AbstractModel
|
283
|
+
# @param InstanceId: 实例ID
|
284
|
+
# @type InstanceId: String
|
285
|
+
# @param Name: 名称
|
286
|
+
# @type Name: String
|
287
|
+
# @param Edition: 版本号
|
288
|
+
# @type Edition: String
|
289
|
+
# @param Status: 状态, 枚举值:creating/create_fail/running/updating/update_fail/restarting/restart_fail/destroying/destroy_fail
|
290
|
+
# @type Status: String
|
291
|
+
# @param SpecId: 规格ID
|
292
|
+
# @type SpecId: String
|
293
|
+
# @param Replica: 副本数
|
294
|
+
# @type Replica: Integer
|
295
|
+
# @param Type: 类型
|
296
|
+
# @type Type: String
|
297
|
+
# @param VpcId: Vpc iD
|
298
|
+
# @type VpcId: String
|
299
|
+
# @param SubnetIds: 子网ID
|
300
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
301
|
+
# @type SubnetIds: Array
|
302
|
+
# @param EnableStorage: 是否开启持久化存储
|
303
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
304
|
+
# @type EnableStorage: Boolean
|
305
|
+
# @param StorageType: 数据存储方式
|
306
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
307
|
+
# @type StorageType: String
|
308
|
+
# @param StorageCapacity: 云硬盘容量
|
309
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
310
|
+
# @type StorageCapacity: Integer
|
311
|
+
# @param Paymode: 计费方式
|
312
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
313
|
+
# @type Paymode: String
|
314
|
+
# @param EKSClusterID: EKS集群的ID
|
315
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
316
|
+
# @type EKSClusterID: String
|
317
|
+
# @param CreateTime: 集群创建时间
|
318
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
319
|
+
# @type CreateTime: String
|
320
|
+
# @param EnvInfos: 环境配置信息列表
|
321
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
322
|
+
# @type EnvInfos: Array
|
323
|
+
# @param EngineRegion: 引擎所在的区域
|
324
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
325
|
+
# @type EngineRegion: String
|
326
|
+
# @param EnableInternet: 注册引擎是否开启公网
|
327
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
328
|
+
# @type EnableInternet: Boolean
|
329
|
+
# @param VpcInfos: 私有网络列表信息
|
330
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
331
|
+
# @type VpcInfos: Array
|
332
|
+
# @param ServiceGovernanceInfos: 服务治理相关信息列表
|
333
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
334
|
+
# @type ServiceGovernanceInfos: Array
|
335
|
+
# @param Tags: 实例的标签信息
|
336
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
337
|
+
# @type Tags: Array
|
338
|
+
|
339
|
+
attr_accessor :InstanceId, :Name, :Edition, :Status, :SpecId, :Replica, :Type, :VpcId, :SubnetIds, :EnableStorage, :StorageType, :StorageCapacity, :Paymode, :EKSClusterID, :CreateTime, :EnvInfos, :EngineRegion, :EnableInternet, :VpcInfos, :ServiceGovernanceInfos, :Tags
|
340
|
+
|
341
|
+
def initialize(instanceid=nil, name=nil, edition=nil, status=nil, specid=nil, replica=nil, type=nil, vpcid=nil, subnetids=nil, enablestorage=nil, storagetype=nil, storagecapacity=nil, paymode=nil, eksclusterid=nil, createtime=nil, envinfos=nil, engineregion=nil, enableinternet=nil, vpcinfos=nil, servicegovernanceinfos=nil, tags=nil)
|
342
|
+
@InstanceId = instanceid
|
343
|
+
@Name = name
|
344
|
+
@Edition = edition
|
345
|
+
@Status = status
|
346
|
+
@SpecId = specid
|
347
|
+
@Replica = replica
|
348
|
+
@Type = type
|
349
|
+
@VpcId = vpcid
|
350
|
+
@SubnetIds = subnetids
|
351
|
+
@EnableStorage = enablestorage
|
352
|
+
@StorageType = storagetype
|
353
|
+
@StorageCapacity = storagecapacity
|
354
|
+
@Paymode = paymode
|
355
|
+
@EKSClusterID = eksclusterid
|
356
|
+
@CreateTime = createtime
|
357
|
+
@EnvInfos = envinfos
|
358
|
+
@EngineRegion = engineregion
|
359
|
+
@EnableInternet = enableinternet
|
360
|
+
@VpcInfos = vpcinfos
|
361
|
+
@ServiceGovernanceInfos = servicegovernanceinfos
|
362
|
+
@Tags = tags
|
363
|
+
end
|
364
|
+
|
365
|
+
def deserialize(params)
|
366
|
+
@InstanceId = params['InstanceId']
|
367
|
+
@Name = params['Name']
|
368
|
+
@Edition = params['Edition']
|
369
|
+
@Status = params['Status']
|
370
|
+
@SpecId = params['SpecId']
|
371
|
+
@Replica = params['Replica']
|
372
|
+
@Type = params['Type']
|
373
|
+
@VpcId = params['VpcId']
|
374
|
+
@SubnetIds = params['SubnetIds']
|
375
|
+
@EnableStorage = params['EnableStorage']
|
376
|
+
@StorageType = params['StorageType']
|
377
|
+
@StorageCapacity = params['StorageCapacity']
|
378
|
+
@Paymode = params['Paymode']
|
379
|
+
@EKSClusterID = params['EKSClusterID']
|
380
|
+
@CreateTime = params['CreateTime']
|
381
|
+
unless params['EnvInfos'].nil?
|
382
|
+
@EnvInfos = []
|
383
|
+
params['EnvInfos'].each do |i|
|
384
|
+
envinfo_tmp = EnvInfo.new
|
385
|
+
envinfo_tmp.deserialize(i)
|
386
|
+
@EnvInfos << envinfo_tmp
|
387
|
+
end
|
388
|
+
end
|
389
|
+
@EngineRegion = params['EngineRegion']
|
390
|
+
@EnableInternet = params['EnableInternet']
|
391
|
+
unless params['VpcInfos'].nil?
|
392
|
+
@VpcInfos = []
|
393
|
+
params['VpcInfos'].each do |i|
|
394
|
+
vpcinfo_tmp = VpcInfo.new
|
395
|
+
vpcinfo_tmp.deserialize(i)
|
396
|
+
@VpcInfos << vpcinfo_tmp
|
397
|
+
end
|
398
|
+
end
|
399
|
+
unless params['ServiceGovernanceInfos'].nil?
|
400
|
+
@ServiceGovernanceInfos = []
|
401
|
+
params['ServiceGovernanceInfos'].each do |i|
|
402
|
+
servicegovernanceinfo_tmp = ServiceGovernanceInfo.new
|
403
|
+
servicegovernanceinfo_tmp.deserialize(i)
|
404
|
+
@ServiceGovernanceInfos << servicegovernanceinfo_tmp
|
405
|
+
end
|
406
|
+
end
|
407
|
+
unless params['Tags'].nil?
|
408
|
+
@Tags = []
|
409
|
+
params['Tags'].each do |i|
|
410
|
+
kvpair_tmp = KVPair.new
|
411
|
+
kvpair_tmp.deserialize(i)
|
412
|
+
@Tags << kvpair_tmp
|
413
|
+
end
|
414
|
+
end
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# 服务治理相关的信息
|
419
|
+
class ServiceGovernanceInfo < TencentCloud::Common::AbstractModel
|
420
|
+
# @param EngineRegion: 引擎所在的地域
|
421
|
+
# @type EngineRegion: String
|
422
|
+
# @param BoundK8SInfos: 服务治理引擎绑定的kubernetes集群信息
|
423
|
+
# @type BoundK8SInfos: Array
|
424
|
+
# @param VpcInfos: 服务治理引擎绑定的网络信息
|
425
|
+
# @type VpcInfos: Array
|
426
|
+
|
427
|
+
attr_accessor :EngineRegion, :BoundK8SInfos, :VpcInfos
|
428
|
+
|
429
|
+
def initialize(engineregion=nil, boundk8sinfos=nil, vpcinfos=nil)
|
430
|
+
@EngineRegion = engineregion
|
431
|
+
@BoundK8SInfos = boundk8sinfos
|
432
|
+
@VpcInfos = vpcinfos
|
433
|
+
end
|
434
|
+
|
435
|
+
def deserialize(params)
|
436
|
+
@EngineRegion = params['EngineRegion']
|
437
|
+
unless params['BoundK8SInfos'].nil?
|
438
|
+
@BoundK8SInfos = []
|
439
|
+
params['BoundK8SInfos'].each do |i|
|
440
|
+
boundk8sinfo_tmp = BoundK8SInfo.new
|
441
|
+
boundk8sinfo_tmp.deserialize(i)
|
442
|
+
@BoundK8SInfos << boundk8sinfo_tmp
|
443
|
+
end
|
444
|
+
end
|
445
|
+
unless params['VpcInfos'].nil?
|
446
|
+
@VpcInfos = []
|
447
|
+
params['VpcInfos'].each do |i|
|
448
|
+
vpcinfo_tmp = VpcInfo.new
|
449
|
+
vpcinfo_tmp.deserialize(i)
|
450
|
+
@VpcInfos << vpcinfo_tmp
|
451
|
+
end
|
452
|
+
end
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
# 私有网络信息
|
457
|
+
class VpcInfo < TencentCloud::Common::AbstractModel
|
458
|
+
# @param VpcId: Vpc Id
|
459
|
+
# @type VpcId: String
|
460
|
+
# @param SubnetId: 子网ID
|
461
|
+
# @type SubnetId: String
|
462
|
+
# @param IntranetAddress: 内网访问地址
|
463
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
464
|
+
# @type IntranetAddress: String
|
465
|
+
|
466
|
+
attr_accessor :VpcId, :SubnetId, :IntranetAddress
|
467
|
+
|
468
|
+
def initialize(vpcid=nil, subnetid=nil, intranetaddress=nil)
|
469
|
+
@VpcId = vpcid
|
470
|
+
@SubnetId = subnetid
|
471
|
+
@IntranetAddress = intranetaddress
|
472
|
+
end
|
473
|
+
|
474
|
+
def deserialize(params)
|
475
|
+
@VpcId = params['VpcId']
|
476
|
+
@SubnetId = params['SubnetId']
|
477
|
+
@IntranetAddress = params['IntranetAddress']
|
478
|
+
end
|
479
|
+
end
|
480
|
+
|
481
|
+
end
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-tse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
TSE.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-tse.rb
|
38
|
+
- lib/v20201207/client.rb
|
39
|
+
- lib/v20201207/models.rb
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-tse
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.6.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - TSE
|
66
|
+
test_files: []
|