tencentcloud-sdk-oceanus 1.0.353 → 1.0.354
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/v20190422/client.rb +72 -0
- data/lib/v20190422/models.rb +435 -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: 09909226c9b1f67b8ab5a7df5c7ab4f1f7addbd8
|
4
|
+
data.tar.gz: f69b278416c42c5b1c1637ef4c9f068d869f1793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e4677cab5436f9d6a296870d5fb391e403365a832a31b8331a68809ee0c8ccd52eed48d9768f7e667d176a6f4972d6040bd6ba6cb665ce4d3c1a1db2de5ba85
|
7
|
+
data.tar.gz: 345381dc2d3e59e4b266cf32b8963e95ae3c6cfc29c35ff7f92fff7b0d5389ed6808be0800df8a8efd20e89d63eeeb85731b92705448590211989244ccb6ca58
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.354
|
data/lib/v20190422/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 批量删除作业接口,批量操作数量上限20
|
153
|
+
|
154
|
+
# @param request: Request instance for DeleteJobs.
|
155
|
+
# @type request: :class:`Tencentcloud::oceanus::V20190422::DeleteJobsRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::oceanus::V20190422::DeleteJobsResponse`
|
157
|
+
def DeleteJobs(request)
|
158
|
+
body = send_request('DeleteJobs', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DeleteJobsResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 删除资源版本
|
153
177
|
|
154
178
|
# @param request: Request instance for DeleteResourceConfigs.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 查询集群
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribeClusters.
|
251
|
+
# @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeClustersRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeClustersResponse`
|
253
|
+
def DescribeClusters(request)
|
254
|
+
body = send_request('DescribeClusters', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribeClustersResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 查询作业配置列表,一次最多查询100个
|
225
273
|
|
226
274
|
# @param request: Request instance for DescribeJobConfigs.
|
@@ -389,6 +437,30 @@ module TencentCloud
|
|
389
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
438
|
end
|
391
439
|
|
440
|
+
# 生成树状作业显示结构
|
441
|
+
|
442
|
+
# @param request: Request instance for DescribeTreeJobs.
|
443
|
+
# @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeTreeJobsRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeTreeJobsResponse`
|
445
|
+
def DescribeTreeJobs(request)
|
446
|
+
body = send_request('DescribeTreeJobs', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DescribeTreeJobsResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
392
464
|
# 更新作业属性,仅允许以下3种操作,不支持组合操作:
|
393
465
|
# (1) 更新作业名称
|
394
466
|
# (2) 更新作业备注
|
data/lib/v20190422/models.rb
CHANGED
@@ -17,6 +17,30 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Oceanus
|
19
19
|
module V20190422
|
20
|
+
# 云联网描述信息
|
21
|
+
class CCN < TencentCloud::Common::AbstractModel
|
22
|
+
# @param VpcId: 私有网络 ID
|
23
|
+
# @type VpcId: String
|
24
|
+
# @param SubnetId: 子网 ID
|
25
|
+
# @type SubnetId: String
|
26
|
+
# @param CcnId: 云联网 ID,如 ccn-rahigzjd
|
27
|
+
# @type CcnId: String
|
28
|
+
|
29
|
+
attr_accessor :VpcId, :SubnetId, :CcnId
|
30
|
+
|
31
|
+
def initialize(vpcid=nil, subnetid=nil, ccnid=nil)
|
32
|
+
@VpcId = vpcid
|
33
|
+
@SubnetId = subnetid
|
34
|
+
@CcnId = ccnid
|
35
|
+
end
|
36
|
+
|
37
|
+
def deserialize(params)
|
38
|
+
@VpcId = params['VpcId']
|
39
|
+
@SubnetId = params['SubnetId']
|
40
|
+
@CcnId = params['CcnId']
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
20
44
|
# CheckSavepoint请求参数结构体
|
21
45
|
class CheckSavepointRequest < TencentCloud::Common::AbstractModel
|
22
46
|
# @param JobId: 作业 id
|
@@ -73,6 +97,217 @@ module TencentCloud
|
|
73
97
|
end
|
74
98
|
end
|
75
99
|
|
100
|
+
# 描述用户创建的集群信息
|
101
|
+
class Cluster < TencentCloud::Common::AbstractModel
|
102
|
+
# @param ClusterId: 集群 ID
|
103
|
+
# @type ClusterId: String
|
104
|
+
# @param Name: 集群名称
|
105
|
+
# @type Name: String
|
106
|
+
# @param Region: 地域
|
107
|
+
# @type Region: String
|
108
|
+
# @param AppId: 用户 AppID
|
109
|
+
# @type AppId: Integer
|
110
|
+
# @param OwnerUin: 主账号 UIN
|
111
|
+
# @type OwnerUin: String
|
112
|
+
# @param CreatorUin: 创建者 UIN
|
113
|
+
# @type CreatorUin: String
|
114
|
+
# @param Status: 集群状态, 1 未初始化,,3 初始化中,2 运行中
|
115
|
+
# @type Status: Integer
|
116
|
+
# @param Remark: 描述
|
117
|
+
# @type Remark: String
|
118
|
+
# @param CreateTime: 集群创建时间
|
119
|
+
# @type CreateTime: String
|
120
|
+
# @param UpdateTime: 最后一次操作集群的时间
|
121
|
+
# @type UpdateTime: String
|
122
|
+
# @param CuNum: CU 数量
|
123
|
+
# @type CuNum: Integer
|
124
|
+
# @param CuMem: CU 内存规格
|
125
|
+
# @type CuMem: Integer
|
126
|
+
# @param Zone: 可用区
|
127
|
+
# @type Zone: String
|
128
|
+
# @param StatusDesc: 状态描述
|
129
|
+
# @type StatusDesc: String
|
130
|
+
# @param CCNs: 网络
|
131
|
+
# @type CCNs: Array
|
132
|
+
# @param NetEnvironmentType: 网络
|
133
|
+
# @type NetEnvironmentType: Integer
|
134
|
+
# @param FreeCuNum: 空闲 CU
|
135
|
+
# @type FreeCuNum: Integer
|
136
|
+
# @param Tags: 集群绑定的标签
|
137
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
138
|
+
# @type Tags: Array
|
139
|
+
# @param IsolatedTime: 集群隔离时间; 没隔离时间,则为 -
|
140
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
141
|
+
# @type IsolatedTime: String
|
142
|
+
# @param ExpireTime: 集群过期时间; 没过期概念,则为 -
|
143
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
144
|
+
# @type ExpireTime: String
|
145
|
+
# @param SecondsUntilExpiry: 距离过期还有多少秒; 没过期概念,则为 -
|
146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
147
|
+
# @type SecondsUntilExpiry: String
|
148
|
+
# @param AutoRenewFlag: 自动续费标记,0 表示默认状态 (用户未设置,即初始状态,用户开通了预付费不停服特权会进行自动续费), 1 表示自动续费,2表示明确不自动续费(用户设置)
|
149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
150
|
+
# @type AutoRenewFlag: Integer
|
151
|
+
# @param DefaultCOSBucket: 集群的默认 COS 存储桶
|
152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
153
|
+
# @type DefaultCOSBucket: String
|
154
|
+
# @param CLSLogSet: 集群的CLS 日志集 LogSet
|
155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
156
|
+
# @type CLSLogSet: String
|
157
|
+
# @param CLSTopicId: 集群的CLS 日志主题 TopicId
|
158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
159
|
+
# @type CLSTopicId: String
|
160
|
+
# @param CLSLogName: 集群的CLS 日志集 名字
|
161
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
162
|
+
# @type CLSLogName: String
|
163
|
+
# @param CLSTopicName: 集群的CLS 日志主题 名字
|
164
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
165
|
+
# @type CLSTopicName: String
|
166
|
+
# @param Version: 集群的版本信息
|
167
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
168
|
+
# @type Version: :class:`Tencentcloud::Oceanus.v20190422.models.ClusterVersion`
|
169
|
+
# @param FreeCu: 细粒度资源下的空闲CU
|
170
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
171
|
+
# @type FreeCu: Float
|
172
|
+
# @param DefaultLogCollectConf: 集群的默认日志采集配置
|
173
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
174
|
+
# @type DefaultLogCollectConf: String
|
175
|
+
# @param CustomizedDNSEnabled: 取值:0-没有设置,1-已设置,2-不允许设置
|
176
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
177
|
+
# @type CustomizedDNSEnabled: Integer
|
178
|
+
# @param Correlations: 空间信息
|
179
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
180
|
+
# @type Correlations: Array
|
181
|
+
# @param RunningCu: 运行CU
|
182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
183
|
+
# @type RunningCu: Float
|
184
|
+
# @param PayMode: 0 后付费,1 预付费
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type PayMode: Integer
|
187
|
+
|
188
|
+
attr_accessor :ClusterId, :Name, :Region, :AppId, :OwnerUin, :CreatorUin, :Status, :Remark, :CreateTime, :UpdateTime, :CuNum, :CuMem, :Zone, :StatusDesc, :CCNs, :NetEnvironmentType, :FreeCuNum, :Tags, :IsolatedTime, :ExpireTime, :SecondsUntilExpiry, :AutoRenewFlag, :DefaultCOSBucket, :CLSLogSet, :CLSTopicId, :CLSLogName, :CLSTopicName, :Version, :FreeCu, :DefaultLogCollectConf, :CustomizedDNSEnabled, :Correlations, :RunningCu, :PayMode
|
189
|
+
|
190
|
+
def initialize(clusterid=nil, name=nil, region=nil, appid=nil, owneruin=nil, creatoruin=nil, status=nil, remark=nil, createtime=nil, updatetime=nil, cunum=nil, cumem=nil, zone=nil, statusdesc=nil, ccns=nil, netenvironmenttype=nil, freecunum=nil, tags=nil, isolatedtime=nil, expiretime=nil, secondsuntilexpiry=nil, autorenewflag=nil, defaultcosbucket=nil, clslogset=nil, clstopicid=nil, clslogname=nil, clstopicname=nil, version=nil, freecu=nil, defaultlogcollectconf=nil, customizeddnsenabled=nil, correlations=nil, runningcu=nil, paymode=nil)
|
191
|
+
@ClusterId = clusterid
|
192
|
+
@Name = name
|
193
|
+
@Region = region
|
194
|
+
@AppId = appid
|
195
|
+
@OwnerUin = owneruin
|
196
|
+
@CreatorUin = creatoruin
|
197
|
+
@Status = status
|
198
|
+
@Remark = remark
|
199
|
+
@CreateTime = createtime
|
200
|
+
@UpdateTime = updatetime
|
201
|
+
@CuNum = cunum
|
202
|
+
@CuMem = cumem
|
203
|
+
@Zone = zone
|
204
|
+
@StatusDesc = statusdesc
|
205
|
+
@CCNs = ccns
|
206
|
+
@NetEnvironmentType = netenvironmenttype
|
207
|
+
@FreeCuNum = freecunum
|
208
|
+
@Tags = tags
|
209
|
+
@IsolatedTime = isolatedtime
|
210
|
+
@ExpireTime = expiretime
|
211
|
+
@SecondsUntilExpiry = secondsuntilexpiry
|
212
|
+
@AutoRenewFlag = autorenewflag
|
213
|
+
@DefaultCOSBucket = defaultcosbucket
|
214
|
+
@CLSLogSet = clslogset
|
215
|
+
@CLSTopicId = clstopicid
|
216
|
+
@CLSLogName = clslogname
|
217
|
+
@CLSTopicName = clstopicname
|
218
|
+
@Version = version
|
219
|
+
@FreeCu = freecu
|
220
|
+
@DefaultLogCollectConf = defaultlogcollectconf
|
221
|
+
@CustomizedDNSEnabled = customizeddnsenabled
|
222
|
+
@Correlations = correlations
|
223
|
+
@RunningCu = runningcu
|
224
|
+
@PayMode = paymode
|
225
|
+
end
|
226
|
+
|
227
|
+
def deserialize(params)
|
228
|
+
@ClusterId = params['ClusterId']
|
229
|
+
@Name = params['Name']
|
230
|
+
@Region = params['Region']
|
231
|
+
@AppId = params['AppId']
|
232
|
+
@OwnerUin = params['OwnerUin']
|
233
|
+
@CreatorUin = params['CreatorUin']
|
234
|
+
@Status = params['Status']
|
235
|
+
@Remark = params['Remark']
|
236
|
+
@CreateTime = params['CreateTime']
|
237
|
+
@UpdateTime = params['UpdateTime']
|
238
|
+
@CuNum = params['CuNum']
|
239
|
+
@CuMem = params['CuMem']
|
240
|
+
@Zone = params['Zone']
|
241
|
+
@StatusDesc = params['StatusDesc']
|
242
|
+
unless params['CCNs'].nil?
|
243
|
+
@CCNs = []
|
244
|
+
params['CCNs'].each do |i|
|
245
|
+
ccn_tmp = CCN.new
|
246
|
+
ccn_tmp.deserialize(i)
|
247
|
+
@CCNs << ccn_tmp
|
248
|
+
end
|
249
|
+
end
|
250
|
+
@NetEnvironmentType = params['NetEnvironmentType']
|
251
|
+
@FreeCuNum = params['FreeCuNum']
|
252
|
+
unless params['Tags'].nil?
|
253
|
+
@Tags = []
|
254
|
+
params['Tags'].each do |i|
|
255
|
+
tag_tmp = Tag.new
|
256
|
+
tag_tmp.deserialize(i)
|
257
|
+
@Tags << tag_tmp
|
258
|
+
end
|
259
|
+
end
|
260
|
+
@IsolatedTime = params['IsolatedTime']
|
261
|
+
@ExpireTime = params['ExpireTime']
|
262
|
+
@SecondsUntilExpiry = params['SecondsUntilExpiry']
|
263
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
264
|
+
@DefaultCOSBucket = params['DefaultCOSBucket']
|
265
|
+
@CLSLogSet = params['CLSLogSet']
|
266
|
+
@CLSTopicId = params['CLSTopicId']
|
267
|
+
@CLSLogName = params['CLSLogName']
|
268
|
+
@CLSTopicName = params['CLSTopicName']
|
269
|
+
unless params['Version'].nil?
|
270
|
+
@Version = ClusterVersion.new
|
271
|
+
@Version.deserialize(params['Version'])
|
272
|
+
end
|
273
|
+
@FreeCu = params['FreeCu']
|
274
|
+
@DefaultLogCollectConf = params['DefaultLogCollectConf']
|
275
|
+
@CustomizedDNSEnabled = params['CustomizedDNSEnabled']
|
276
|
+
unless params['Correlations'].nil?
|
277
|
+
@Correlations = []
|
278
|
+
params['Correlations'].each do |i|
|
279
|
+
workspaceclusteritem_tmp = WorkSpaceClusterItem.new
|
280
|
+
workspaceclusteritem_tmp.deserialize(i)
|
281
|
+
@Correlations << workspaceclusteritem_tmp
|
282
|
+
end
|
283
|
+
end
|
284
|
+
@RunningCu = params['RunningCu']
|
285
|
+
@PayMode = params['PayMode']
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# 集群的版本相关信息
|
290
|
+
class ClusterVersion < TencentCloud::Common::AbstractModel
|
291
|
+
# @param Flink: 集群的Flink版本
|
292
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
293
|
+
# @type Flink: String
|
294
|
+
# @param SupportedFlink: 集群支持的Flink版本
|
295
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
296
|
+
# @type SupportedFlink: Array
|
297
|
+
|
298
|
+
attr_accessor :Flink, :SupportedFlink
|
299
|
+
|
300
|
+
def initialize(flink=nil, supportedflink=nil)
|
301
|
+
@Flink = flink
|
302
|
+
@SupportedFlink = supportedflink
|
303
|
+
end
|
304
|
+
|
305
|
+
def deserialize(params)
|
306
|
+
@Flink = params['Flink']
|
307
|
+
@SupportedFlink = params['SupportedFlink']
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
76
311
|
# CreateJobConfig请求参数结构体
|
77
312
|
class CreateJobConfigRequest < TencentCloud::Common::AbstractModel
|
78
313
|
# @param JobId: 作业Id
|
@@ -381,6 +616,42 @@ module TencentCloud
|
|
381
616
|
end
|
382
617
|
end
|
383
618
|
|
619
|
+
# DeleteJobs请求参数结构体
|
620
|
+
class DeleteJobsRequest < TencentCloud::Common::AbstractModel
|
621
|
+
# @param JobIds: 作业Id列表
|
622
|
+
# @type JobIds: Array
|
623
|
+
# @param WorkSpaceId: 工作空间Id
|
624
|
+
# @type WorkSpaceId: String
|
625
|
+
|
626
|
+
attr_accessor :JobIds, :WorkSpaceId
|
627
|
+
|
628
|
+
def initialize(jobids=nil, workspaceid=nil)
|
629
|
+
@JobIds = jobids
|
630
|
+
@WorkSpaceId = workspaceid
|
631
|
+
end
|
632
|
+
|
633
|
+
def deserialize(params)
|
634
|
+
@JobIds = params['JobIds']
|
635
|
+
@WorkSpaceId = params['WorkSpaceId']
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
# DeleteJobs返回参数结构体
|
640
|
+
class DeleteJobsResponse < TencentCloud::Common::AbstractModel
|
641
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
642
|
+
# @type RequestId: String
|
643
|
+
|
644
|
+
attr_accessor :RequestId
|
645
|
+
|
646
|
+
def initialize(requestid=nil)
|
647
|
+
@RequestId = requestid
|
648
|
+
end
|
649
|
+
|
650
|
+
def deserialize(params)
|
651
|
+
@RequestId = params['RequestId']
|
652
|
+
end
|
653
|
+
end
|
654
|
+
|
384
655
|
# DeleteResourceConfigs请求参数结构体
|
385
656
|
class DeleteResourceConfigsRequest < TencentCloud::Common::AbstractModel
|
386
657
|
# @param ResourceId: 资源ID
|
@@ -501,6 +772,80 @@ module TencentCloud
|
|
501
772
|
end
|
502
773
|
end
|
503
774
|
|
775
|
+
# DescribeClusters请求参数结构体
|
776
|
+
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
777
|
+
# @param ClusterIds: 按照一个或者多个集群 ID 查询,每次请求的集群上限为 100
|
778
|
+
# @type ClusterIds: Array
|
779
|
+
# @param Offset: 偏移量,默认 0
|
780
|
+
# @type Offset: Integer
|
781
|
+
# @param Limit: 请求的集群数量,默认 20,最大值 100
|
782
|
+
# @type Limit: Integer
|
783
|
+
# @param OrderType: 集群信息结果排序规则,1 按时间降序,2 按照时间升序,3 按照状态排序
|
784
|
+
# @type OrderType: Integer
|
785
|
+
# @param Filters: 过滤规则
|
786
|
+
# @type Filters: Array
|
787
|
+
# @param WorkSpaceId: 工作空间 SerialId
|
788
|
+
# @type WorkSpaceId: String
|
789
|
+
|
790
|
+
attr_accessor :ClusterIds, :Offset, :Limit, :OrderType, :Filters, :WorkSpaceId
|
791
|
+
|
792
|
+
def initialize(clusterids=nil, offset=nil, limit=nil, ordertype=nil, filters=nil, workspaceid=nil)
|
793
|
+
@ClusterIds = clusterids
|
794
|
+
@Offset = offset
|
795
|
+
@Limit = limit
|
796
|
+
@OrderType = ordertype
|
797
|
+
@Filters = filters
|
798
|
+
@WorkSpaceId = workspaceid
|
799
|
+
end
|
800
|
+
|
801
|
+
def deserialize(params)
|
802
|
+
@ClusterIds = params['ClusterIds']
|
803
|
+
@Offset = params['Offset']
|
804
|
+
@Limit = params['Limit']
|
805
|
+
@OrderType = params['OrderType']
|
806
|
+
unless params['Filters'].nil?
|
807
|
+
@Filters = []
|
808
|
+
params['Filters'].each do |i|
|
809
|
+
filter_tmp = Filter.new
|
810
|
+
filter_tmp.deserialize(i)
|
811
|
+
@Filters << filter_tmp
|
812
|
+
end
|
813
|
+
end
|
814
|
+
@WorkSpaceId = params['WorkSpaceId']
|
815
|
+
end
|
816
|
+
end
|
817
|
+
|
818
|
+
# DescribeClusters返回参数结构体
|
819
|
+
class DescribeClustersResponse < TencentCloud::Common::AbstractModel
|
820
|
+
# @param TotalCount: 集群总数
|
821
|
+
# @type TotalCount: Integer
|
822
|
+
# @param ClusterSet: 集群列表
|
823
|
+
# @type ClusterSet: Array
|
824
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
825
|
+
# @type RequestId: String
|
826
|
+
|
827
|
+
attr_accessor :TotalCount, :ClusterSet, :RequestId
|
828
|
+
|
829
|
+
def initialize(totalcount=nil, clusterset=nil, requestid=nil)
|
830
|
+
@TotalCount = totalcount
|
831
|
+
@ClusterSet = clusterset
|
832
|
+
@RequestId = requestid
|
833
|
+
end
|
834
|
+
|
835
|
+
def deserialize(params)
|
836
|
+
@TotalCount = params['TotalCount']
|
837
|
+
unless params['ClusterSet'].nil?
|
838
|
+
@ClusterSet = []
|
839
|
+
params['ClusterSet'].each do |i|
|
840
|
+
cluster_tmp = Cluster.new
|
841
|
+
cluster_tmp.deserialize(i)
|
842
|
+
@ClusterSet << cluster_tmp
|
843
|
+
end
|
844
|
+
end
|
845
|
+
@RequestId = params['RequestId']
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
504
849
|
# DescribeJobConfigs请求参数结构体
|
505
850
|
class DescribeJobConfigsRequest < TencentCloud::Common::AbstractModel
|
506
851
|
# @param JobId: 作业Id
|
@@ -1010,6 +1355,38 @@ module TencentCloud
|
|
1010
1355
|
end
|
1011
1356
|
end
|
1012
1357
|
|
1358
|
+
# DescribeTreeJobs请求参数结构体
|
1359
|
+
class DescribeTreeJobsRequest < TencentCloud::Common::AbstractModel
|
1360
|
+
# @param WorkSpaceId: 工作空间 Serialid
|
1361
|
+
# @type WorkSpaceId: String
|
1362
|
+
|
1363
|
+
attr_accessor :WorkSpaceId
|
1364
|
+
|
1365
|
+
def initialize(workspaceid=nil)
|
1366
|
+
@WorkSpaceId = workspaceid
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
def deserialize(params)
|
1370
|
+
@WorkSpaceId = params['WorkSpaceId']
|
1371
|
+
end
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
# DescribeTreeJobs返回参数结构体
|
1375
|
+
class DescribeTreeJobsResponse < TencentCloud::Common::AbstractModel
|
1376
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1377
|
+
# @type RequestId: String
|
1378
|
+
|
1379
|
+
attr_accessor :RequestId
|
1380
|
+
|
1381
|
+
def initialize(requestid=nil)
|
1382
|
+
@RequestId = requestid
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
def deserialize(params)
|
1386
|
+
@RequestId = params['RequestId']
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1013
1390
|
# 查询作业列表时的过滤器
|
1014
1391
|
class Filter < TencentCloud::Common::AbstractModel
|
1015
1392
|
# @param Name: 要过滤的字段
|
@@ -1900,6 +2277,28 @@ module TencentCloud
|
|
1900
2277
|
end
|
1901
2278
|
end
|
1902
2279
|
|
2280
|
+
# 标签
|
2281
|
+
class Tag < TencentCloud::Common::AbstractModel
|
2282
|
+
# @param TagKey: 标签键
|
2283
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2284
|
+
# @type TagKey: String
|
2285
|
+
# @param TagValue: 标签值
|
2286
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2287
|
+
# @type TagValue: String
|
2288
|
+
|
2289
|
+
attr_accessor :TagKey, :TagValue
|
2290
|
+
|
2291
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
2292
|
+
@TagKey = tagkey
|
2293
|
+
@TagValue = tagvalue
|
2294
|
+
end
|
2295
|
+
|
2296
|
+
def deserialize(params)
|
2297
|
+
@TagKey = params['TagKey']
|
2298
|
+
@TagValue = params['TagValue']
|
2299
|
+
end
|
2300
|
+
end
|
2301
|
+
|
1903
2302
|
# TriggerJobSavepoint请求参数结构体
|
1904
2303
|
class TriggerJobSavepointRequest < TencentCloud::Common::AbstractModel
|
1905
2304
|
# @param JobId: 作业 SerialId
|
@@ -1959,6 +2358,42 @@ module TencentCloud
|
|
1959
2358
|
end
|
1960
2359
|
end
|
1961
2360
|
|
2361
|
+
# 空间和集群绑定关系
|
2362
|
+
class WorkSpaceClusterItem < TencentCloud::Common::AbstractModel
|
2363
|
+
# @param ClusterGroupId: 集群 ID
|
2364
|
+
# @type ClusterGroupId: Integer
|
2365
|
+
# @param ClusterGroupSerialId: 集群 SerialId
|
2366
|
+
# @type ClusterGroupSerialId: String
|
2367
|
+
# @param ClusterName: 集群名称
|
2368
|
+
# @type ClusterName: String
|
2369
|
+
# @param WorkSpaceId: 工作空间 SerialId
|
2370
|
+
# @type WorkSpaceId: String
|
2371
|
+
# @param WorkSpaceName: 工作空间名称
|
2372
|
+
# @type WorkSpaceName: String
|
2373
|
+
# @param Status: 绑定状态 2 绑定 1 解除绑定
|
2374
|
+
# @type Status: Integer
|
2375
|
+
|
2376
|
+
attr_accessor :ClusterGroupId, :ClusterGroupSerialId, :ClusterName, :WorkSpaceId, :WorkSpaceName, :Status
|
2377
|
+
|
2378
|
+
def initialize(clustergroupid=nil, clustergroupserialid=nil, clustername=nil, workspaceid=nil, workspacename=nil, status=nil)
|
2379
|
+
@ClusterGroupId = clustergroupid
|
2380
|
+
@ClusterGroupSerialId = clustergroupserialid
|
2381
|
+
@ClusterName = clustername
|
2382
|
+
@WorkSpaceId = workspaceid
|
2383
|
+
@WorkSpaceName = workspacename
|
2384
|
+
@Status = status
|
2385
|
+
end
|
2386
|
+
|
2387
|
+
def deserialize(params)
|
2388
|
+
@ClusterGroupId = params['ClusterGroupId']
|
2389
|
+
@ClusterGroupSerialId = params['ClusterGroupSerialId']
|
2390
|
+
@ClusterName = params['ClusterName']
|
2391
|
+
@WorkSpaceId = params['WorkSpaceId']
|
2392
|
+
@WorkSpaceName = params['WorkSpaceName']
|
2393
|
+
@Status = params['Status']
|
2394
|
+
end
|
2395
|
+
end
|
2396
|
+
|
1962
2397
|
end
|
1963
2398
|
end
|
1964
2399
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-oceanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.354
|
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-07-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|