tencentcloud-sdk-eis 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-eis.rb +14 -0
- data/lib/v20200715/client.rb +108 -0
- data/lib/v20200715/models.rb +399 -0
- data/lib/v20210601/client.rb +156 -0
- data/lib/v20210601/models.rb +442 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9756adf034d2576e63af349a073d008e3f8f7ed3
|
4
|
+
data.tar.gz: 39fbe095bca8a3914cfc3f0610ddb5ad84a0e651
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7619ccf3e55baca1e52ad8870f3786910123f343d27cff503205b508d686b7760768bad0614a2ce71f79dab92101870662b75b4c0db2d28d8365dc2544d82cd9
|
7
|
+
data.tar.gz: 9f5516f15dead6785bb52c901e280df8b786f02078f68af5c0ef5982bdb5a9a2ac35d7bd9b88393a5abe1ba82de8871c68df6b9b6f9453baddbd437a28c2ea79
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'tencentcloud-sdk-common'
|
4
|
+
|
5
|
+
require_relative 'v20210601/client'
|
6
|
+
require_relative 'v20210601/models'
|
7
|
+
|
8
|
+
require_relative 'v20200715/client'
|
9
|
+
require_relative 'v20200715/models'
|
10
|
+
|
11
|
+
module TencentCloud
|
12
|
+
module Eis
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,108 @@
|
|
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 Eis
|
21
|
+
module V20200715
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-07-15'
|
26
|
+
api_endpoint = 'eis.tencentcloudapi.com'
|
27
|
+
sdk_version = 'EIS_' + 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 DescribeEisConnectorConfig.
|
35
|
+
# @type request: :class:`Tencentcloud::eis::V20200715::DescribeEisConnectorConfigRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::eis::V20200715::DescribeEisConnectorConfigResponse`
|
37
|
+
def DescribeEisConnectorConfig(request)
|
38
|
+
body = send_request('DescribeEisConnectorConfig', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeEisConnectorConfigResponse.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 ListEisConnectorOperations.
|
59
|
+
# @type request: :class:`Tencentcloud::eis::V20200715::ListEisConnectorOperationsRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::eis::V20200715::ListEisConnectorOperationsResponse`
|
61
|
+
def ListEisConnectorOperations(request)
|
62
|
+
body = send_request('ListEisConnectorOperations', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = ListEisConnectorOperationsResponse.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
|
+
|
82
|
+
# @param request: Request instance for ListEisConnectors.
|
83
|
+
# @type request: :class:`Tencentcloud::eis::V20200715::ListEisConnectorsRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::eis::V20200715::ListEisConnectorsResponse`
|
85
|
+
def ListEisConnectors(request)
|
86
|
+
body = send_request('ListEisConnectors', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = ListEisConnectorsResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,399 @@
|
|
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 Eis
|
19
|
+
module V20200715
|
20
|
+
# DescribeEisConnectorConfig请求参数结构体
|
21
|
+
class DescribeEisConnectorConfigRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ConnectorName: 连接器名称
|
23
|
+
# @type ConnectorName: String
|
24
|
+
# @param ConnectorVersion: 连接器版本
|
25
|
+
# @type ConnectorVersion: String
|
26
|
+
|
27
|
+
attr_accessor :ConnectorName, :ConnectorVersion
|
28
|
+
|
29
|
+
def initialize(connectorname=nil, connectorversion=nil)
|
30
|
+
@ConnectorName = connectorname
|
31
|
+
@ConnectorVersion = connectorversion
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@ConnectorName = params['ConnectorName']
|
36
|
+
@ConnectorVersion = params['ConnectorVersion']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# DescribeEisConnectorConfig返回参数结构体
|
41
|
+
class DescribeEisConnectorConfigResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param ConnectorParameter: 连接器配置参数描述(json结构),示例如下:
|
43
|
+
# {
|
44
|
+
# "attributes":{
|
45
|
+
# "description":"测试", // 连接器的描述
|
46
|
+
# "displayName":"测试", // 连接器的展示名
|
47
|
+
# "name":"test", // 连接器的名称
|
48
|
+
# "version":"1.0.0" // 连接器的版本号
|
49
|
+
# },
|
50
|
+
# "properties":[
|
51
|
+
# {
|
52
|
+
# "attributes":{
|
53
|
+
# "displayName":"企业ID", // 参数的展示名
|
54
|
+
# "name":"para1", // 参数名
|
55
|
+
# "required":"true", // 是否必填
|
56
|
+
# "type":"int" // 参数的类型
|
57
|
+
# }
|
58
|
+
# },
|
59
|
+
# {
|
60
|
+
# "attributes":{
|
61
|
+
# "displayName":"成员管理密钥",
|
62
|
+
# "name":"para2",
|
63
|
+
# "required":"true",
|
64
|
+
# "type":"float"
|
65
|
+
# }
|
66
|
+
# },
|
67
|
+
# {
|
68
|
+
# "attributes":{
|
69
|
+
# "displayName":"应用管理密钥",
|
70
|
+
# "name":"para3",
|
71
|
+
# "required":"true",
|
72
|
+
# "type":"string"
|
73
|
+
# }
|
74
|
+
# },
|
75
|
+
# {
|
76
|
+
# "attributes":{
|
77
|
+
# "displayName":"企业ID",
|
78
|
+
# "name":"para4",
|
79
|
+
# "required":"true",
|
80
|
+
# "type":"decimal"
|
81
|
+
# }
|
82
|
+
# },
|
83
|
+
# {
|
84
|
+
# "attributes":{
|
85
|
+
# "displayName":"成员管理密钥",
|
86
|
+
# "name":"para5",
|
87
|
+
# "required":"true",
|
88
|
+
# "type":"bool"
|
89
|
+
# }
|
90
|
+
# },
|
91
|
+
# {
|
92
|
+
# "attributes":{
|
93
|
+
# "displayName":"应用管理密钥",
|
94
|
+
# "name":"para6",
|
95
|
+
# "required":"true",
|
96
|
+
# "type":"date"
|
97
|
+
# }
|
98
|
+
# },
|
99
|
+
# {
|
100
|
+
# "attributes":{
|
101
|
+
# "displayName":"企业ID",
|
102
|
+
# "name":"para7",
|
103
|
+
# "required":"true",
|
104
|
+
# "type":"time"
|
105
|
+
# }
|
106
|
+
# },
|
107
|
+
# {
|
108
|
+
# "attributes":{
|
109
|
+
# "displayName":"成员管理密钥",
|
110
|
+
# "name":"para8",
|
111
|
+
# "required":"true",
|
112
|
+
# "type":"datetime"
|
113
|
+
# }
|
114
|
+
# },
|
115
|
+
# {
|
116
|
+
# "attributes":{
|
117
|
+
# "displayName":"应用管理密钥",
|
118
|
+
# "name":"para9",
|
119
|
+
# "required":"true",
|
120
|
+
# "type":"map"
|
121
|
+
# },
|
122
|
+
# "children":[
|
123
|
+
# {
|
124
|
+
# "attributes":{
|
125
|
+
# "displayName":"key",
|
126
|
+
# "name":"key",
|
127
|
+
# "required":"true",
|
128
|
+
# "type":"string"
|
129
|
+
# }
|
130
|
+
# },
|
131
|
+
# {
|
132
|
+
# "attributes":{
|
133
|
+
# "displayName":"value",
|
134
|
+
# "name":"value",
|
135
|
+
# "required":"true",
|
136
|
+
# "type":"any"
|
137
|
+
# }
|
138
|
+
# }
|
139
|
+
# ]
|
140
|
+
# },
|
141
|
+
# {
|
142
|
+
# "attributes":{
|
143
|
+
# "displayName":"企业ID",
|
144
|
+
# "name":"para10",
|
145
|
+
# "required":"true",
|
146
|
+
# "type":"list" // list,list里元素的类型是结构体,children里是结构体的描述
|
147
|
+
# },
|
148
|
+
# "children":[
|
149
|
+
# {
|
150
|
+
# "attributes":{
|
151
|
+
# "displayName":"field1",
|
152
|
+
# "name":"field1",
|
153
|
+
# "required":"true",
|
154
|
+
# "type":"string"
|
155
|
+
# }
|
156
|
+
# },
|
157
|
+
# {
|
158
|
+
# "attributes":{
|
159
|
+
# "displayName":"field2",
|
160
|
+
# "name":"field2",
|
161
|
+
# "required":"true",
|
162
|
+
# "type":"any"
|
163
|
+
# }
|
164
|
+
# }
|
165
|
+
# ]
|
166
|
+
# },
|
167
|
+
# {
|
168
|
+
# "attributes":{
|
169
|
+
# "displayName":"成员管理密钥",
|
170
|
+
# "name":"para11",
|
171
|
+
# "required":"true",
|
172
|
+
# "type":"struct"
|
173
|
+
# },
|
174
|
+
# "children":[
|
175
|
+
# {
|
176
|
+
# "attributes":{
|
177
|
+
# "displayName":"field1", // 结构体属性的展示名
|
178
|
+
# "name":"field1", // 结构体属性的名称
|
179
|
+
# "required":"true", // 是否必填
|
180
|
+
# "type":"string" // 属性的类型
|
181
|
+
# }
|
182
|
+
# },
|
183
|
+
# {
|
184
|
+
# "attributes":{
|
185
|
+
# "displayName":"field2",
|
186
|
+
# "name":"field2",
|
187
|
+
# "required":"true",
|
188
|
+
# "type":"any"
|
189
|
+
# }
|
190
|
+
# }
|
191
|
+
# ]
|
192
|
+
# },
|
193
|
+
# {
|
194
|
+
# "attributes":{
|
195
|
+
# "displayName":"应用管理密钥",
|
196
|
+
# "name":"para12",
|
197
|
+
# "required":"true",
|
198
|
+
# "type":"enum"
|
199
|
+
# },
|
200
|
+
# "children":[
|
201
|
+
# {
|
202
|
+
# "attributes":{
|
203
|
+
# "displayName":"PC", // 枚举值的展示名
|
204
|
+
# "name":"PC" // 枚举值的名称
|
205
|
+
# }
|
206
|
+
# },
|
207
|
+
# {
|
208
|
+
# "attributes":{
|
209
|
+
# "displayName":"MAC",
|
210
|
+
# "name":"MAC"
|
211
|
+
# }
|
212
|
+
# }
|
213
|
+
# ]
|
214
|
+
# }
|
215
|
+
# ]
|
216
|
+
# }
|
217
|
+
# @type ConnectorParameter: String
|
218
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
219
|
+
# @type RequestId: String
|
220
|
+
|
221
|
+
attr_accessor :ConnectorParameter, :RequestId
|
222
|
+
|
223
|
+
def initialize(connectorparameter=nil, requestid=nil)
|
224
|
+
@ConnectorParameter = connectorparameter
|
225
|
+
@RequestId = requestid
|
226
|
+
end
|
227
|
+
|
228
|
+
def deserialize(params)
|
229
|
+
@ConnectorParameter = params['ConnectorParameter']
|
230
|
+
@RequestId = params['RequestId']
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# 连接器操作
|
235
|
+
class EisConnectionOperation < TencentCloud::Common::AbstractModel
|
236
|
+
# @param OperationName: 连接器操作名称
|
237
|
+
# @type OperationName: String
|
238
|
+
# @param DisplayName: 连接器展示名称
|
239
|
+
# @type DisplayName: String
|
240
|
+
# @param IsTrigger: 操作是否为触发器
|
241
|
+
# @type IsTrigger: Boolean
|
242
|
+
|
243
|
+
attr_accessor :OperationName, :DisplayName, :IsTrigger
|
244
|
+
|
245
|
+
def initialize(operationname=nil, displayname=nil, istrigger=nil)
|
246
|
+
@OperationName = operationname
|
247
|
+
@DisplayName = displayname
|
248
|
+
@IsTrigger = istrigger
|
249
|
+
end
|
250
|
+
|
251
|
+
def deserialize(params)
|
252
|
+
@OperationName = params['OperationName']
|
253
|
+
@DisplayName = params['DisplayName']
|
254
|
+
@IsTrigger = params['IsTrigger']
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# 连接器概要信息
|
259
|
+
class EisConnectorSummary < TencentCloud::Common::AbstractModel
|
260
|
+
# @param ConnectorName: 连接器名称
|
261
|
+
# @type ConnectorName: String
|
262
|
+
# @param DisplayName: 连接器展示名称
|
263
|
+
# @type DisplayName: String
|
264
|
+
# @param Company: 连接器对应企业
|
265
|
+
# @type Company: String
|
266
|
+
# @param Product: 连接器对应产品
|
267
|
+
# @type Product: String
|
268
|
+
# @param ConnectorVersion: 连接器版本
|
269
|
+
# @type ConnectorVersion: String
|
270
|
+
# @param CreateTime: 连接器创建时间
|
271
|
+
# @type CreateTime: Integer
|
272
|
+
|
273
|
+
attr_accessor :ConnectorName, :DisplayName, :Company, :Product, :ConnectorVersion, :CreateTime
|
274
|
+
|
275
|
+
def initialize(connectorname=nil, displayname=nil, company=nil, product=nil, connectorversion=nil, createtime=nil)
|
276
|
+
@ConnectorName = connectorname
|
277
|
+
@DisplayName = displayname
|
278
|
+
@Company = company
|
279
|
+
@Product = product
|
280
|
+
@ConnectorVersion = connectorversion
|
281
|
+
@CreateTime = createtime
|
282
|
+
end
|
283
|
+
|
284
|
+
def deserialize(params)
|
285
|
+
@ConnectorName = params['ConnectorName']
|
286
|
+
@DisplayName = params['DisplayName']
|
287
|
+
@Company = params['Company']
|
288
|
+
@Product = params['Product']
|
289
|
+
@ConnectorVersion = params['ConnectorVersion']
|
290
|
+
@CreateTime = params['CreateTime']
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# ListEisConnectorOperations请求参数结构体
|
295
|
+
class ListEisConnectorOperationsRequest < TencentCloud::Common::AbstractModel
|
296
|
+
# @param ConnectorName: 连接器名称
|
297
|
+
# @type ConnectorName: String
|
298
|
+
# @param ConnectorVersion: 连接器版本
|
299
|
+
# @type ConnectorVersion: String
|
300
|
+
|
301
|
+
attr_accessor :ConnectorName, :ConnectorVersion
|
302
|
+
|
303
|
+
def initialize(connectorname=nil, connectorversion=nil)
|
304
|
+
@ConnectorName = connectorname
|
305
|
+
@ConnectorVersion = connectorversion
|
306
|
+
end
|
307
|
+
|
308
|
+
def deserialize(params)
|
309
|
+
@ConnectorName = params['ConnectorName']
|
310
|
+
@ConnectorVersion = params['ConnectorVersion']
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# ListEisConnectorOperations返回参数结构体
|
315
|
+
class ListEisConnectorOperationsResponse < TencentCloud::Common::AbstractModel
|
316
|
+
# @param Operations: 连接器列表
|
317
|
+
# @type Operations: Array
|
318
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
319
|
+
# @type RequestId: String
|
320
|
+
|
321
|
+
attr_accessor :Operations, :RequestId
|
322
|
+
|
323
|
+
def initialize(operations=nil, requestid=nil)
|
324
|
+
@Operations = operations
|
325
|
+
@RequestId = requestid
|
326
|
+
end
|
327
|
+
|
328
|
+
def deserialize(params)
|
329
|
+
unless params['Operations'].nil?
|
330
|
+
@Operations = []
|
331
|
+
params['Operations'].each do |i|
|
332
|
+
eisconnectionoperation_tmp = EisConnectionOperation.new
|
333
|
+
eisconnectionoperation_tmp.deserialize(i)
|
334
|
+
@Operations << eisconnectionoperation_tmp
|
335
|
+
end
|
336
|
+
end
|
337
|
+
@RequestId = params['RequestId']
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# ListEisConnectors请求参数结构体
|
342
|
+
class ListEisConnectorsRequest < TencentCloud::Common::AbstractModel
|
343
|
+
# @param ConnectorName: 连接器名称,非必输,如输入则按照输入值模糊匹配
|
344
|
+
# @type ConnectorName: String
|
345
|
+
# @param Offset: 分页参数,数据偏移量
|
346
|
+
# @type Offset: Integer
|
347
|
+
# @param Limit: 分页参数,每页显示的条数
|
348
|
+
# @type Limit: Integer
|
349
|
+
|
350
|
+
attr_accessor :ConnectorName, :Offset, :Limit
|
351
|
+
|
352
|
+
def initialize(connectorname=nil, offset=nil, limit=nil)
|
353
|
+
@ConnectorName = connectorname
|
354
|
+
@Offset = offset
|
355
|
+
@Limit = limit
|
356
|
+
end
|
357
|
+
|
358
|
+
def deserialize(params)
|
359
|
+
@ConnectorName = params['ConnectorName']
|
360
|
+
@Offset = params['Offset']
|
361
|
+
@Limit = params['Limit']
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# ListEisConnectors返回参数结构体
|
366
|
+
class ListEisConnectorsResponse < TencentCloud::Common::AbstractModel
|
367
|
+
# @param TotalCount: 连接器总数
|
368
|
+
# @type TotalCount: Integer
|
369
|
+
# @param Connectors: 连接器列表
|
370
|
+
# @type Connectors: Array
|
371
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
372
|
+
# @type RequestId: String
|
373
|
+
|
374
|
+
attr_accessor :TotalCount, :Connectors, :RequestId
|
375
|
+
|
376
|
+
def initialize(totalcount=nil, connectors=nil, requestid=nil)
|
377
|
+
@TotalCount = totalcount
|
378
|
+
@Connectors = connectors
|
379
|
+
@RequestId = requestid
|
380
|
+
end
|
381
|
+
|
382
|
+
def deserialize(params)
|
383
|
+
@TotalCount = params['TotalCount']
|
384
|
+
unless params['Connectors'].nil?
|
385
|
+
@Connectors = []
|
386
|
+
params['Connectors'].each do |i|
|
387
|
+
eisconnectorsummary_tmp = EisConnectorSummary.new
|
388
|
+
eisconnectorsummary_tmp.deserialize(i)
|
389
|
+
@Connectors << eisconnectorsummary_tmp
|
390
|
+
end
|
391
|
+
end
|
392
|
+
@RequestId = params['RequestId']
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
end
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
@@ -0,0 +1,156 @@
|
|
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 Eis
|
21
|
+
module V20210601
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2021-06-01'
|
26
|
+
api_endpoint = 'eis.tencentcloudapi.com'
|
27
|
+
sdk_version = 'EIS_' + 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 GetRuntimeMC.
|
35
|
+
# @type request: :class:`Tencentcloud::eis::V20210601::GetRuntimeMCRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::eis::V20210601::GetRuntimeMCResponse`
|
37
|
+
def GetRuntimeMC(request)
|
38
|
+
body = send_request('GetRuntimeMC', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = GetRuntimeMCResponse.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
|
+
# 获取运行时资源监控详情,cpu,memory,bandwidth
|
57
|
+
|
58
|
+
# @param request: Request instance for GetRuntimeResourceMonitorMetricMC.
|
59
|
+
# @type request: :class:`Tencentcloud::eis::V20210601::GetRuntimeResourceMonitorMetricMCRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::eis::V20210601::GetRuntimeResourceMonitorMetricMCResponse`
|
61
|
+
def GetRuntimeResourceMonitorMetricMC(request)
|
62
|
+
body = send_request('GetRuntimeResourceMonitorMetricMC', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = GetRuntimeResourceMonitorMetricMCResponse.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
|
+
# 返回用户可用的运行时列表,发布应用时返回的运行时环境,仅shared和private运行时,无sandbox运行时,并且只有running/scaling状态的
|
81
|
+
|
82
|
+
# @param request: Request instance for ListDeployableRuntimesMC.
|
83
|
+
# @type request: :class:`Tencentcloud::eis::V20210601::ListDeployableRuntimesMCRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::eis::V20210601::ListDeployableRuntimesMCResponse`
|
85
|
+
def ListDeployableRuntimesMC(request)
|
86
|
+
body = send_request('ListDeployableRuntimesMC', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = ListDeployableRuntimesMCResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 获取运行时部署的应用实例列表
|
105
|
+
|
106
|
+
# @param request: Request instance for ListRuntimeDeployedInstancesMC.
|
107
|
+
# @type request: :class:`Tencentcloud::eis::V20210601::ListRuntimeDeployedInstancesMCRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::eis::V20210601::ListRuntimeDeployedInstancesMCResponse`
|
109
|
+
def ListRuntimeDeployedInstancesMC(request)
|
110
|
+
body = send_request('ListRuntimeDeployedInstancesMC', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = ListRuntimeDeployedInstancesMCResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 返回用户的运行时列表,运行时管理主页使用,包含沙箱、共享运行时及独立运行时环境,不包含已经删除的运行时
|
129
|
+
|
130
|
+
# @param request: Request instance for ListRuntimesMC.
|
131
|
+
# @type request: :class:`Tencentcloud::eis::V20210601::ListRuntimesMCRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::eis::V20210601::ListRuntimesMCResponse`
|
133
|
+
def ListRuntimesMC(request)
|
134
|
+
body = send_request('ListRuntimesMC', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = ListRuntimesMCResponse.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
|
+
|
152
|
+
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,442 @@
|
|
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 Eis
|
19
|
+
module V20210601
|
20
|
+
# 运行时精简信息
|
21
|
+
class AbstractRuntimeMC < TencentCloud::Common::AbstractModel
|
22
|
+
# @param RuntimeId: 运行时id
|
23
|
+
# @type RuntimeId: Integer
|
24
|
+
# @param DisplayName: 运行时名称,用户输入,同一uin内唯一
|
25
|
+
# @type DisplayName: String
|
26
|
+
# @param Type: 运行时类型:0: sandbox, 1:shared, 2:private
|
27
|
+
# @type Type: Integer
|
28
|
+
# @param Zone: 运行时所在地域,tianjin,beijiing,guangzhou等
|
29
|
+
# @type Zone: String
|
30
|
+
# @param Area: 运行时所在地域,tianjin,beijiing,guangzhou等(同Zone)
|
31
|
+
# @type Area: String
|
32
|
+
# @param Addr: 运行时应用listener地址后缀
|
33
|
+
# @type Addr: String
|
34
|
+
|
35
|
+
attr_accessor :RuntimeId, :DisplayName, :Type, :Zone, :Area, :Addr
|
36
|
+
|
37
|
+
def initialize(runtimeid=nil, displayname=nil, type=nil, zone=nil, area=nil, addr=nil)
|
38
|
+
@RuntimeId = runtimeid
|
39
|
+
@DisplayName = displayname
|
40
|
+
@Type = type
|
41
|
+
@Zone = zone
|
42
|
+
@Area = area
|
43
|
+
@Addr = addr
|
44
|
+
end
|
45
|
+
|
46
|
+
def deserialize(params)
|
47
|
+
@RuntimeId = params['RuntimeId']
|
48
|
+
@DisplayName = params['DisplayName']
|
49
|
+
@Type = params['Type']
|
50
|
+
@Zone = params['Zone']
|
51
|
+
@Area = params['Area']
|
52
|
+
@Addr = params['Addr']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# GetRuntimeMC请求参数结构体
|
57
|
+
class GetRuntimeMCRequest < TencentCloud::Common::AbstractModel
|
58
|
+
# @param RuntimeId: 运行时id
|
59
|
+
# @type RuntimeId: Integer
|
60
|
+
# @param Zone: 运行时地域
|
61
|
+
# @type Zone: String
|
62
|
+
|
63
|
+
attr_accessor :RuntimeId, :Zone
|
64
|
+
|
65
|
+
def initialize(runtimeid=nil, zone=nil)
|
66
|
+
@RuntimeId = runtimeid
|
67
|
+
@Zone = zone
|
68
|
+
end
|
69
|
+
|
70
|
+
def deserialize(params)
|
71
|
+
@RuntimeId = params['RuntimeId']
|
72
|
+
@Zone = params['Zone']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# GetRuntimeMC返回参数结构体
|
77
|
+
class GetRuntimeMCResponse < TencentCloud::Common::AbstractModel
|
78
|
+
# @param Runtime: 运行时详情
|
79
|
+
# @type Runtime: :class:`Tencentcloud::Eis.v20210601.models.RuntimeMC`
|
80
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
81
|
+
# @type RequestId: String
|
82
|
+
|
83
|
+
attr_accessor :Runtime, :RequestId
|
84
|
+
|
85
|
+
def initialize(runtime=nil, requestid=nil)
|
86
|
+
@Runtime = runtime
|
87
|
+
@RequestId = requestid
|
88
|
+
end
|
89
|
+
|
90
|
+
def deserialize(params)
|
91
|
+
unless params['Runtime'].nil?
|
92
|
+
@Runtime = RuntimeMC.new
|
93
|
+
@Runtime.deserialize(params['Runtime'])
|
94
|
+
end
|
95
|
+
@RequestId = params['RequestId']
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# GetRuntimeResourceMonitorMetricMC请求参数结构体
|
100
|
+
class GetRuntimeResourceMonitorMetricMCRequest < TencentCloud::Common::AbstractModel
|
101
|
+
# @param RuntimeId: 运行时id
|
102
|
+
# @type RuntimeId: Integer
|
103
|
+
# @param StartTime: 起始时间
|
104
|
+
# @type StartTime: Integer
|
105
|
+
# @param EndTime: 结束时间
|
106
|
+
# @type EndTime: Integer
|
107
|
+
# @param MetricType: 指标类型:0:CPU, 1:MemUsageBytes, 2:K8sWorkloadNetworkReceiveBytesBw, 3:K8sWorkloadNetworkTransmitBytesBw
|
108
|
+
# @type MetricType: Integer
|
109
|
+
# @param RateType: 是否返回百分比数值,仅支持CPU,Memory
|
110
|
+
# @type RateType: Boolean
|
111
|
+
# @param Interval: 采样粒度:60(s), 300(s), 3600(s), 86400(s)
|
112
|
+
# @type Interval: Integer
|
113
|
+
|
114
|
+
attr_accessor :RuntimeId, :StartTime, :EndTime, :MetricType, :RateType, :Interval
|
115
|
+
|
116
|
+
def initialize(runtimeid=nil, starttime=nil, endtime=nil, metrictype=nil, ratetype=nil, interval=nil)
|
117
|
+
@RuntimeId = runtimeid
|
118
|
+
@StartTime = starttime
|
119
|
+
@EndTime = endtime
|
120
|
+
@MetricType = metrictype
|
121
|
+
@RateType = ratetype
|
122
|
+
@Interval = interval
|
123
|
+
end
|
124
|
+
|
125
|
+
def deserialize(params)
|
126
|
+
@RuntimeId = params['RuntimeId']
|
127
|
+
@StartTime = params['StartTime']
|
128
|
+
@EndTime = params['EndTime']
|
129
|
+
@MetricType = params['MetricType']
|
130
|
+
@RateType = params['RateType']
|
131
|
+
@Interval = params['Interval']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# GetRuntimeResourceMonitorMetricMC返回参数结构体
|
136
|
+
class GetRuntimeResourceMonitorMetricMCResponse < TencentCloud::Common::AbstractModel
|
137
|
+
# @param MetricType: 指标名称,K8sWorkloadCpuCoreUsed,K8sWorkloadMemUsageBytes,K8sWorkloadNetworkReceiveBytesBw,K8sWorkloadNetworkTransmitBytesBw
|
138
|
+
# @type MetricType: String
|
139
|
+
# @param Values: metric数值列表
|
140
|
+
# @type Values: Array
|
141
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
142
|
+
# @type RequestId: String
|
143
|
+
|
144
|
+
attr_accessor :MetricType, :Values, :RequestId
|
145
|
+
|
146
|
+
def initialize(metrictype=nil, values=nil, requestid=nil)
|
147
|
+
@MetricType = metrictype
|
148
|
+
@Values = values
|
149
|
+
@RequestId = requestid
|
150
|
+
end
|
151
|
+
|
152
|
+
def deserialize(params)
|
153
|
+
@MetricType = params['MetricType']
|
154
|
+
unless params['Values'].nil?
|
155
|
+
@Values = []
|
156
|
+
params['Values'].each do |i|
|
157
|
+
metricvaluemc_tmp = MetricValueMC.new
|
158
|
+
metricvaluemc_tmp.deserialize(i)
|
159
|
+
@Values << metricvaluemc_tmp
|
160
|
+
end
|
161
|
+
end
|
162
|
+
@RequestId = params['RequestId']
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# ListDeployableRuntimesMC请求参数结构体
|
167
|
+
class ListDeployableRuntimesMCRequest < TencentCloud::Common::AbstractModel
|
168
|
+
|
169
|
+
|
170
|
+
def initialize()
|
171
|
+
end
|
172
|
+
|
173
|
+
def deserialize(params)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# ListDeployableRuntimesMC返回参数结构体
|
178
|
+
class ListDeployableRuntimesMCResponse < TencentCloud::Common::AbstractModel
|
179
|
+
# @param Runtimes: 运行时列表
|
180
|
+
# @type Runtimes: Array
|
181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
182
|
+
# @type RequestId: String
|
183
|
+
|
184
|
+
attr_accessor :Runtimes, :RequestId
|
185
|
+
|
186
|
+
def initialize(runtimes=nil, requestid=nil)
|
187
|
+
@Runtimes = runtimes
|
188
|
+
@RequestId = requestid
|
189
|
+
end
|
190
|
+
|
191
|
+
def deserialize(params)
|
192
|
+
unless params['Runtimes'].nil?
|
193
|
+
@Runtimes = []
|
194
|
+
params['Runtimes'].each do |i|
|
195
|
+
abstractruntimemc_tmp = AbstractRuntimeMC.new
|
196
|
+
abstractruntimemc_tmp.deserialize(i)
|
197
|
+
@Runtimes << abstractruntimemc_tmp
|
198
|
+
end
|
199
|
+
end
|
200
|
+
@RequestId = params['RequestId']
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# ListRuntimeDeployedInstancesMC请求参数结构体
|
205
|
+
class ListRuntimeDeployedInstancesMCRequest < TencentCloud::Common::AbstractModel
|
206
|
+
# @param RuntimeId: 运行时id
|
207
|
+
# @type RuntimeId: Integer
|
208
|
+
# @param Limit: 最大请求数量
|
209
|
+
# @type Limit: Integer
|
210
|
+
# @param Offset: 请求偏移量
|
211
|
+
# @type Offset: Integer
|
212
|
+
# @param SortType: 排序类型:1:创建时间排序, 2:更新时间排序(默认)
|
213
|
+
# @type SortType: Integer
|
214
|
+
# @param Sort: 排序方式:asc,desc(默认)
|
215
|
+
# @type Sort: String
|
216
|
+
# @param Zone: 运行时地域
|
217
|
+
# @type Zone: String
|
218
|
+
|
219
|
+
attr_accessor :RuntimeId, :Limit, :Offset, :SortType, :Sort, :Zone
|
220
|
+
|
221
|
+
def initialize(runtimeid=nil, limit=nil, offset=nil, sorttype=nil, sort=nil, zone=nil)
|
222
|
+
@RuntimeId = runtimeid
|
223
|
+
@Limit = limit
|
224
|
+
@Offset = offset
|
225
|
+
@SortType = sorttype
|
226
|
+
@Sort = sort
|
227
|
+
@Zone = zone
|
228
|
+
end
|
229
|
+
|
230
|
+
def deserialize(params)
|
231
|
+
@RuntimeId = params['RuntimeId']
|
232
|
+
@Limit = params['Limit']
|
233
|
+
@Offset = params['Offset']
|
234
|
+
@SortType = params['SortType']
|
235
|
+
@Sort = params['Sort']
|
236
|
+
@Zone = params['Zone']
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# ListRuntimeDeployedInstancesMC返回参数结构体
|
241
|
+
class ListRuntimeDeployedInstancesMCResponse < TencentCloud::Common::AbstractModel
|
242
|
+
# @param Instances: 运行时所部属的应用实例列表
|
243
|
+
# @type Instances: Array
|
244
|
+
# @param TotalCount: 满足条件的记录总数,用于分页器
|
245
|
+
# @type TotalCount: Integer
|
246
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
247
|
+
# @type RequestId: String
|
248
|
+
|
249
|
+
attr_accessor :Instances, :TotalCount, :RequestId
|
250
|
+
|
251
|
+
def initialize(instances=nil, totalcount=nil, requestid=nil)
|
252
|
+
@Instances = instances
|
253
|
+
@TotalCount = totalcount
|
254
|
+
@RequestId = requestid
|
255
|
+
end
|
256
|
+
|
257
|
+
def deserialize(params)
|
258
|
+
unless params['Instances'].nil?
|
259
|
+
@Instances = []
|
260
|
+
params['Instances'].each do |i|
|
261
|
+
runtimedeployedinstancemc_tmp = RuntimeDeployedInstanceMC.new
|
262
|
+
runtimedeployedinstancemc_tmp.deserialize(i)
|
263
|
+
@Instances << runtimedeployedinstancemc_tmp
|
264
|
+
end
|
265
|
+
end
|
266
|
+
@TotalCount = params['TotalCount']
|
267
|
+
@RequestId = params['RequestId']
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# ListRuntimesMC请求参数结构体
|
272
|
+
class ListRuntimesMCRequest < TencentCloud::Common::AbstractModel
|
273
|
+
|
274
|
+
|
275
|
+
def initialize()
|
276
|
+
end
|
277
|
+
|
278
|
+
def deserialize(params)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# ListRuntimesMC返回参数结构体
|
283
|
+
class ListRuntimesMCResponse < TencentCloud::Common::AbstractModel
|
284
|
+
# @param Runtimes: 运行时列表
|
285
|
+
# @type Runtimes: Array
|
286
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
287
|
+
# @type RequestId: String
|
288
|
+
|
289
|
+
attr_accessor :Runtimes, :RequestId
|
290
|
+
|
291
|
+
def initialize(runtimes=nil, requestid=nil)
|
292
|
+
@Runtimes = runtimes
|
293
|
+
@RequestId = requestid
|
294
|
+
end
|
295
|
+
|
296
|
+
def deserialize(params)
|
297
|
+
unless params['Runtimes'].nil?
|
298
|
+
@Runtimes = []
|
299
|
+
params['Runtimes'].each do |i|
|
300
|
+
runtimemc_tmp = RuntimeMC.new
|
301
|
+
runtimemc_tmp.deserialize(i)
|
302
|
+
@Runtimes << runtimemc_tmp
|
303
|
+
end
|
304
|
+
end
|
305
|
+
@RequestId = params['RequestId']
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# GetMonitorMetricResponse
|
310
|
+
class MetricValueMC < TencentCloud::Common::AbstractModel
|
311
|
+
# @param Time: 时间
|
312
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
313
|
+
# @type Time: Integer
|
314
|
+
# @param Val: 对应的value值
|
315
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
316
|
+
# @type Val: String
|
317
|
+
|
318
|
+
attr_accessor :Time, :Val
|
319
|
+
|
320
|
+
def initialize(time=nil, val=nil)
|
321
|
+
@Time = time
|
322
|
+
@Val = val
|
323
|
+
end
|
324
|
+
|
325
|
+
def deserialize(params)
|
326
|
+
@Time = params['Time']
|
327
|
+
@Val = params['Val']
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# 运行时部署的应用实例详情
|
332
|
+
class RuntimeDeployedInstanceMC < TencentCloud::Common::AbstractModel
|
333
|
+
# @param GroupId: 项目id
|
334
|
+
# @type GroupId: Integer
|
335
|
+
# @param GroupName: 项目名称
|
336
|
+
# @type GroupName: String
|
337
|
+
# @param ProjectId: 应用id
|
338
|
+
# @type ProjectId: Integer
|
339
|
+
# @param ProjectName: 应用名称
|
340
|
+
# @type ProjectName: String
|
341
|
+
# @param InstanceId: 应用实例id
|
342
|
+
# @type InstanceId: Integer
|
343
|
+
# @param InstanceVersion: 应用实例版本
|
344
|
+
# @type InstanceVersion: Integer
|
345
|
+
# @param InstanceCreatedAt: 应用实例创建时间
|
346
|
+
# @type InstanceCreatedAt: Integer
|
347
|
+
# @param Status: 应用实例部署状态. 0:running, 1:deleting
|
348
|
+
# @type Status: Integer
|
349
|
+
# @param CreatedAt: 应用实例部署创建时间
|
350
|
+
# @type CreatedAt: Integer
|
351
|
+
# @param UpdatedAt: 应用实例部署更新时间
|
352
|
+
# @type UpdatedAt: Integer
|
353
|
+
|
354
|
+
attr_accessor :GroupId, :GroupName, :ProjectId, :ProjectName, :InstanceId, :InstanceVersion, :InstanceCreatedAt, :Status, :CreatedAt, :UpdatedAt
|
355
|
+
|
356
|
+
def initialize(groupid=nil, groupname=nil, projectid=nil, projectname=nil, instanceid=nil, instanceversion=nil, instancecreatedat=nil, status=nil, createdat=nil, updatedat=nil)
|
357
|
+
@GroupId = groupid
|
358
|
+
@GroupName = groupname
|
359
|
+
@ProjectId = projectid
|
360
|
+
@ProjectName = projectname
|
361
|
+
@InstanceId = instanceid
|
362
|
+
@InstanceVersion = instanceversion
|
363
|
+
@InstanceCreatedAt = instancecreatedat
|
364
|
+
@Status = status
|
365
|
+
@CreatedAt = createdat
|
366
|
+
@UpdatedAt = updatedat
|
367
|
+
end
|
368
|
+
|
369
|
+
def deserialize(params)
|
370
|
+
@GroupId = params['GroupId']
|
371
|
+
@GroupName = params['GroupName']
|
372
|
+
@ProjectId = params['ProjectId']
|
373
|
+
@ProjectName = params['ProjectName']
|
374
|
+
@InstanceId = params['InstanceId']
|
375
|
+
@InstanceVersion = params['InstanceVersion']
|
376
|
+
@InstanceCreatedAt = params['InstanceCreatedAt']
|
377
|
+
@Status = params['Status']
|
378
|
+
@CreatedAt = params['CreatedAt']
|
379
|
+
@UpdatedAt = params['UpdatedAt']
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
# 运行时详细信息
|
384
|
+
class RuntimeMC < TencentCloud::Common::AbstractModel
|
385
|
+
# @param RuntimeId: 运行时id
|
386
|
+
# @type RuntimeId: Integer
|
387
|
+
# @param Uin: 主账号uin
|
388
|
+
# @type Uin: String
|
389
|
+
# @param DisplayName: 运行时名称,用户输入,同一uin内唯一
|
390
|
+
# @type DisplayName: String
|
391
|
+
# @param Zone: 运行时所在地域,tianjin,beijiing,guangzhou等
|
392
|
+
# @type Zone: String
|
393
|
+
# @param Type: 运行时类型:0: sandbox, 1:shared, 2:private
|
394
|
+
# @type Type: Integer
|
395
|
+
# @param Status: 运行时状态:1:running, 2:deleting, 3:creating, 4:scaling, 5:unavailable, 6:deleted, 7:errored
|
396
|
+
# @type Status: Integer
|
397
|
+
# @param CreatedAt: 运行时创建时间
|
398
|
+
# @type CreatedAt: Integer
|
399
|
+
# @param UpdatedAt: 运行时更新时间
|
400
|
+
# @type UpdatedAt: Integer
|
401
|
+
# @param WorkerSize: 运行时资源配置,worker总配额,0:0vCore0G, 1:1vCore2G, 2:2vCore4G, 4:4vCore8G, 8:8vCore16G, 12:12vCore24G, 16:16vCore32G, 100:unlimited
|
402
|
+
# @type WorkerSize: Integer
|
403
|
+
# @param WorkerReplica: 运行时资源配置,worker副本数
|
404
|
+
# @type WorkerReplica: Integer
|
405
|
+
# @param RunningInstanceCount: 正在运行的应用实例数量
|
406
|
+
# @type RunningInstanceCount: Integer
|
407
|
+
|
408
|
+
attr_accessor :RuntimeId, :Uin, :DisplayName, :Zone, :Type, :Status, :CreatedAt, :UpdatedAt, :WorkerSize, :WorkerReplica, :RunningInstanceCount
|
409
|
+
|
410
|
+
def initialize(runtimeid=nil, uin=nil, displayname=nil, zone=nil, type=nil, status=nil, createdat=nil, updatedat=nil, workersize=nil, workerreplica=nil, runninginstancecount=nil)
|
411
|
+
@RuntimeId = runtimeid
|
412
|
+
@Uin = uin
|
413
|
+
@DisplayName = displayname
|
414
|
+
@Zone = zone
|
415
|
+
@Type = type
|
416
|
+
@Status = status
|
417
|
+
@CreatedAt = createdat
|
418
|
+
@UpdatedAt = updatedat
|
419
|
+
@WorkerSize = workersize
|
420
|
+
@WorkerReplica = workerreplica
|
421
|
+
@RunningInstanceCount = runninginstancecount
|
422
|
+
end
|
423
|
+
|
424
|
+
def deserialize(params)
|
425
|
+
@RuntimeId = params['RuntimeId']
|
426
|
+
@Uin = params['Uin']
|
427
|
+
@DisplayName = params['DisplayName']
|
428
|
+
@Zone = params['Zone']
|
429
|
+
@Type = params['Type']
|
430
|
+
@Status = params['Status']
|
431
|
+
@CreatedAt = params['CreatedAt']
|
432
|
+
@UpdatedAt = params['UpdatedAt']
|
433
|
+
@WorkerSize = params['WorkerSize']
|
434
|
+
@WorkerReplica = params['WorkerReplica']
|
435
|
+
@RunningInstanceCount = params['RunningInstanceCount']
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
end
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-eis
|
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
|
+
EIS.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-eis.rb
|
38
|
+
- lib/v20200715/client.rb
|
39
|
+
- lib/v20200715/models.rb
|
40
|
+
- lib/v20210601/client.rb
|
41
|
+
- lib/v20210601/models.rb
|
42
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
|
+
licenses:
|
44
|
+
- Apache-2.0
|
45
|
+
metadata:
|
46
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-eis
|
47
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.6.14
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: Tencent Cloud SDK for Ruby - EIS
|
68
|
+
test_files: []
|