tencentcloud-sdk-oceanus 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-oceanus.rb +11 -0
- data/lib/v20190422/client.rb +396 -0
- data/lib/v20190422/models.rb +1535 -0
- metadata +66 -0
@@ -0,0 +1,1535 @@
|
|
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 Oceanus
|
19
|
+
module V20190422
|
20
|
+
# CreateJobConfig请求参数结构体
|
21
|
+
class CreateJobConfigRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param JobId: 作业Id
|
23
|
+
# @type JobId: String
|
24
|
+
# @param EntrypointClass: 主类
|
25
|
+
# @type EntrypointClass: String
|
26
|
+
# @param ProgramArgs: 主类入参
|
27
|
+
# @type ProgramArgs: String
|
28
|
+
# @param Remark: 备注
|
29
|
+
# @type Remark: String
|
30
|
+
# @param ResourceRefs: 资源引用数组
|
31
|
+
# @type ResourceRefs: Array
|
32
|
+
# @param DefaultParallelism: 作业默认并行度
|
33
|
+
# @type DefaultParallelism: Integer
|
34
|
+
# @param Properties: 系统参数
|
35
|
+
# @type Properties: Array
|
36
|
+
# @param AutoDelete: 1: 作业配置达到上限之后,自动删除可删除的最早版本
|
37
|
+
# @type AutoDelete: Integer
|
38
|
+
# @param COSBucket: 作业使用的 COS 存储桶名
|
39
|
+
# @type COSBucket: String
|
40
|
+
# @param LogCollect: 是否采集作业日志
|
41
|
+
# @type LogCollect: Boolean
|
42
|
+
# @param JobManagerSpec: JobManager规格
|
43
|
+
# @type JobManagerSpec: Float
|
44
|
+
# @param TaskManagerSpec: TaskManager规格
|
45
|
+
# @type TaskManagerSpec: Float
|
46
|
+
|
47
|
+
attr_accessor :JobId, :EntrypointClass, :ProgramArgs, :Remark, :ResourceRefs, :DefaultParallelism, :Properties, :AutoDelete, :COSBucket, :LogCollect, :JobManagerSpec, :TaskManagerSpec
|
48
|
+
|
49
|
+
def initialize(jobid=nil, entrypointclass=nil, programargs=nil, remark=nil, resourcerefs=nil, defaultparallelism=nil, properties=nil, autodelete=nil, cosbucket=nil, logcollect=nil, jobmanagerspec=nil, taskmanagerspec=nil)
|
50
|
+
@JobId = jobid
|
51
|
+
@EntrypointClass = entrypointclass
|
52
|
+
@ProgramArgs = programargs
|
53
|
+
@Remark = remark
|
54
|
+
@ResourceRefs = resourcerefs
|
55
|
+
@DefaultParallelism = defaultparallelism
|
56
|
+
@Properties = properties
|
57
|
+
@AutoDelete = autodelete
|
58
|
+
@COSBucket = cosbucket
|
59
|
+
@LogCollect = logcollect
|
60
|
+
@JobManagerSpec = jobmanagerspec
|
61
|
+
@TaskManagerSpec = taskmanagerspec
|
62
|
+
end
|
63
|
+
|
64
|
+
def deserialize(params)
|
65
|
+
@JobId = params['JobId']
|
66
|
+
@EntrypointClass = params['EntrypointClass']
|
67
|
+
@ProgramArgs = params['ProgramArgs']
|
68
|
+
@Remark = params['Remark']
|
69
|
+
unless params['ResourceRefs'].nil?
|
70
|
+
@ResourceRefs = []
|
71
|
+
params['ResourceRefs'].each do |i|
|
72
|
+
resourceref_tmp = ResourceRef.new
|
73
|
+
resourceref_tmp.deserialize(i)
|
74
|
+
@ResourceRefs << resourceref_tmp
|
75
|
+
end
|
76
|
+
end
|
77
|
+
@DefaultParallelism = params['DefaultParallelism']
|
78
|
+
unless params['Properties'].nil?
|
79
|
+
@Properties = []
|
80
|
+
params['Properties'].each do |i|
|
81
|
+
property_tmp = Property.new
|
82
|
+
property_tmp.deserialize(i)
|
83
|
+
@Properties << property_tmp
|
84
|
+
end
|
85
|
+
end
|
86
|
+
@AutoDelete = params['AutoDelete']
|
87
|
+
@COSBucket = params['COSBucket']
|
88
|
+
@LogCollect = params['LogCollect']
|
89
|
+
@JobManagerSpec = params['JobManagerSpec']
|
90
|
+
@TaskManagerSpec = params['TaskManagerSpec']
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# CreateJobConfig返回参数结构体
|
95
|
+
class CreateJobConfigResponse < TencentCloud::Common::AbstractModel
|
96
|
+
# @param Version: 作业配置版本号
|
97
|
+
# @type Version: Integer
|
98
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
99
|
+
# @type RequestId: String
|
100
|
+
|
101
|
+
attr_accessor :Version, :RequestId
|
102
|
+
|
103
|
+
def initialize(version=nil, requestid=nil)
|
104
|
+
@Version = version
|
105
|
+
@RequestId = requestid
|
106
|
+
end
|
107
|
+
|
108
|
+
def deserialize(params)
|
109
|
+
@Version = params['Version']
|
110
|
+
@RequestId = params['RequestId']
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# CreateJob请求参数结构体
|
115
|
+
class CreateJobRequest < TencentCloud::Common::AbstractModel
|
116
|
+
# @param Name: 作业名称,允许输入长度小于等于50个字符的中文、英文、数字、-(横线)、_(下划线)、.(点),且符号必须半角字符。注意作业名不能和现有作业同名
|
117
|
+
# @type Name: String
|
118
|
+
# @param JobType: 作业的类型,1 表示 SQL 作业,2 表示 JAR 作业
|
119
|
+
# @type JobType: Integer
|
120
|
+
# @param ClusterType: 集群的类型,1 表示共享集群,2 表示独享集群
|
121
|
+
# @type ClusterType: Integer
|
122
|
+
# @param ClusterId: 当 ClusterType=2 时,必选,用来指定该作业提交的独享集群 ID
|
123
|
+
# @type ClusterId: String
|
124
|
+
# @param CuMem: 设置每 CU 的内存规格,单位为 GB,支持 2、4、8、16(需申请开通白名单后使用)。默认为 4,即 1 CU 对应 4 GB 的运行内存
|
125
|
+
# @type CuMem: Integer
|
126
|
+
# @param Remark: 作业的备注信息,可以随意设置
|
127
|
+
# @type Remark: String
|
128
|
+
# @param FolderId: 作业名所属文件夹ID,根目录为"root"
|
129
|
+
# @type FolderId: String
|
130
|
+
# @param FlinkVersion: 作业运行的Flink版本
|
131
|
+
# @type FlinkVersion: String
|
132
|
+
|
133
|
+
attr_accessor :Name, :JobType, :ClusterType, :ClusterId, :CuMem, :Remark, :FolderId, :FlinkVersion
|
134
|
+
|
135
|
+
def initialize(name=nil, jobtype=nil, clustertype=nil, clusterid=nil, cumem=nil, remark=nil, folderid=nil, flinkversion=nil)
|
136
|
+
@Name = name
|
137
|
+
@JobType = jobtype
|
138
|
+
@ClusterType = clustertype
|
139
|
+
@ClusterId = clusterid
|
140
|
+
@CuMem = cumem
|
141
|
+
@Remark = remark
|
142
|
+
@FolderId = folderid
|
143
|
+
@FlinkVersion = flinkversion
|
144
|
+
end
|
145
|
+
|
146
|
+
def deserialize(params)
|
147
|
+
@Name = params['Name']
|
148
|
+
@JobType = params['JobType']
|
149
|
+
@ClusterType = params['ClusterType']
|
150
|
+
@ClusterId = params['ClusterId']
|
151
|
+
@CuMem = params['CuMem']
|
152
|
+
@Remark = params['Remark']
|
153
|
+
@FolderId = params['FolderId']
|
154
|
+
@FlinkVersion = params['FlinkVersion']
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# CreateJob返回参数结构体
|
159
|
+
class CreateJobResponse < TencentCloud::Common::AbstractModel
|
160
|
+
# @param JobId: 作业Id
|
161
|
+
# @type JobId: String
|
162
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
163
|
+
# @type RequestId: String
|
164
|
+
|
165
|
+
attr_accessor :JobId, :RequestId
|
166
|
+
|
167
|
+
def initialize(jobid=nil, requestid=nil)
|
168
|
+
@JobId = jobid
|
169
|
+
@RequestId = requestid
|
170
|
+
end
|
171
|
+
|
172
|
+
def deserialize(params)
|
173
|
+
@JobId = params['JobId']
|
174
|
+
@RequestId = params['RequestId']
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# CreateResourceConfig请求参数结构体
|
179
|
+
class CreateResourceConfigRequest < TencentCloud::Common::AbstractModel
|
180
|
+
# @param ResourceId: 资源ID
|
181
|
+
# @type ResourceId: String
|
182
|
+
# @param ResourceLoc: 位置信息
|
183
|
+
# @type ResourceLoc: :class:`Tencentcloud::Oceanus.v20190422.models.ResourceLoc`
|
184
|
+
# @param Remark: 资源描述信息
|
185
|
+
# @type Remark: String
|
186
|
+
# @param AutoDelete: 1: 资源版本达到上限,自动删除最早可删除的版本
|
187
|
+
# @type AutoDelete: Integer
|
188
|
+
|
189
|
+
attr_accessor :ResourceId, :ResourceLoc, :Remark, :AutoDelete
|
190
|
+
|
191
|
+
def initialize(resourceid=nil, resourceloc=nil, remark=nil, autodelete=nil)
|
192
|
+
@ResourceId = resourceid
|
193
|
+
@ResourceLoc = resourceloc
|
194
|
+
@Remark = remark
|
195
|
+
@AutoDelete = autodelete
|
196
|
+
end
|
197
|
+
|
198
|
+
def deserialize(params)
|
199
|
+
@ResourceId = params['ResourceId']
|
200
|
+
unless params['ResourceLoc'].nil?
|
201
|
+
@ResourceLoc = ResourceLoc.new
|
202
|
+
@ResourceLoc.deserialize(params['ResourceLoc'])
|
203
|
+
end
|
204
|
+
@Remark = params['Remark']
|
205
|
+
@AutoDelete = params['AutoDelete']
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# CreateResourceConfig返回参数结构体
|
210
|
+
class CreateResourceConfigResponse < TencentCloud::Common::AbstractModel
|
211
|
+
# @param Version: 资源版本ID
|
212
|
+
# @type Version: Integer
|
213
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
214
|
+
# @type RequestId: String
|
215
|
+
|
216
|
+
attr_accessor :Version, :RequestId
|
217
|
+
|
218
|
+
def initialize(version=nil, requestid=nil)
|
219
|
+
@Version = version
|
220
|
+
@RequestId = requestid
|
221
|
+
end
|
222
|
+
|
223
|
+
def deserialize(params)
|
224
|
+
@Version = params['Version']
|
225
|
+
@RequestId = params['RequestId']
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# CreateResource请求参数结构体
|
230
|
+
class CreateResourceRequest < TencentCloud::Common::AbstractModel
|
231
|
+
# @param ResourceLoc: 资源位置
|
232
|
+
# @type ResourceLoc: :class:`Tencentcloud::Oceanus.v20190422.models.ResourceLoc`
|
233
|
+
# @param Name: 资源名称
|
234
|
+
# @type Name: String
|
235
|
+
# @param ResourceType: 资源类型。目前只支持 JAR,取值为 1
|
236
|
+
# @type ResourceType: Integer
|
237
|
+
# @param Remark: 资源描述
|
238
|
+
# @type Remark: String
|
239
|
+
# @param ResourceConfigRemark: 资源版本描述
|
240
|
+
# @type ResourceConfigRemark: String
|
241
|
+
|
242
|
+
attr_accessor :ResourceLoc, :Name, :ResourceType, :Remark, :ResourceConfigRemark
|
243
|
+
|
244
|
+
def initialize(resourceloc=nil, name=nil, resourcetype=nil, remark=nil, resourceconfigremark=nil)
|
245
|
+
@ResourceLoc = resourceloc
|
246
|
+
@Name = name
|
247
|
+
@ResourceType = resourcetype
|
248
|
+
@Remark = remark
|
249
|
+
@ResourceConfigRemark = resourceconfigremark
|
250
|
+
end
|
251
|
+
|
252
|
+
def deserialize(params)
|
253
|
+
unless params['ResourceLoc'].nil?
|
254
|
+
@ResourceLoc = ResourceLoc.new
|
255
|
+
@ResourceLoc.deserialize(params['ResourceLoc'])
|
256
|
+
end
|
257
|
+
@Name = params['Name']
|
258
|
+
@ResourceType = params['ResourceType']
|
259
|
+
@Remark = params['Remark']
|
260
|
+
@ResourceConfigRemark = params['ResourceConfigRemark']
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
# CreateResource返回参数结构体
|
265
|
+
class CreateResourceResponse < TencentCloud::Common::AbstractModel
|
266
|
+
# @param ResourceId: 资源ID
|
267
|
+
# @type ResourceId: String
|
268
|
+
# @param Version: 资源版本
|
269
|
+
# @type Version: Integer
|
270
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
271
|
+
# @type RequestId: String
|
272
|
+
|
273
|
+
attr_accessor :ResourceId, :Version, :RequestId
|
274
|
+
|
275
|
+
def initialize(resourceid=nil, version=nil, requestid=nil)
|
276
|
+
@ResourceId = resourceid
|
277
|
+
@Version = version
|
278
|
+
@RequestId = requestid
|
279
|
+
end
|
280
|
+
|
281
|
+
def deserialize(params)
|
282
|
+
@ResourceId = params['ResourceId']
|
283
|
+
@Version = params['Version']
|
284
|
+
@RequestId = params['RequestId']
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# DeleteResourceConfigs请求参数结构体
|
289
|
+
class DeleteResourceConfigsRequest < TencentCloud::Common::AbstractModel
|
290
|
+
# @param ResourceId: 资源ID
|
291
|
+
# @type ResourceId: String
|
292
|
+
# @param ResourceConfigVersions: 资源版本数组
|
293
|
+
# @type ResourceConfigVersions: Array
|
294
|
+
|
295
|
+
attr_accessor :ResourceId, :ResourceConfigVersions
|
296
|
+
|
297
|
+
def initialize(resourceid=nil, resourceconfigversions=nil)
|
298
|
+
@ResourceId = resourceid
|
299
|
+
@ResourceConfigVersions = resourceconfigversions
|
300
|
+
end
|
301
|
+
|
302
|
+
def deserialize(params)
|
303
|
+
@ResourceId = params['ResourceId']
|
304
|
+
@ResourceConfigVersions = params['ResourceConfigVersions']
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# DeleteResourceConfigs返回参数结构体
|
309
|
+
class DeleteResourceConfigsResponse < TencentCloud::Common::AbstractModel
|
310
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
311
|
+
# @type RequestId: String
|
312
|
+
|
313
|
+
attr_accessor :RequestId
|
314
|
+
|
315
|
+
def initialize(requestid=nil)
|
316
|
+
@RequestId = requestid
|
317
|
+
end
|
318
|
+
|
319
|
+
def deserialize(params)
|
320
|
+
@RequestId = params['RequestId']
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# DeleteResources请求参数结构体
|
325
|
+
class DeleteResourcesRequest < TencentCloud::Common::AbstractModel
|
326
|
+
# @param ResourceIds: 待删除资源ID列表
|
327
|
+
# @type ResourceIds: Array
|
328
|
+
|
329
|
+
attr_accessor :ResourceIds
|
330
|
+
|
331
|
+
def initialize(resourceids=nil)
|
332
|
+
@ResourceIds = resourceids
|
333
|
+
end
|
334
|
+
|
335
|
+
def deserialize(params)
|
336
|
+
@ResourceIds = params['ResourceIds']
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
# DeleteResources返回参数结构体
|
341
|
+
class DeleteResourcesResponse < TencentCloud::Common::AbstractModel
|
342
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
343
|
+
# @type RequestId: String
|
344
|
+
|
345
|
+
attr_accessor :RequestId
|
346
|
+
|
347
|
+
def initialize(requestid=nil)
|
348
|
+
@RequestId = requestid
|
349
|
+
end
|
350
|
+
|
351
|
+
def deserialize(params)
|
352
|
+
@RequestId = params['RequestId']
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
# DeleteTableConfig请求参数结构体
|
357
|
+
class DeleteTableConfigRequest < TencentCloud::Common::AbstractModel
|
358
|
+
# @param JobId: 作业ID
|
359
|
+
# @type JobId: String
|
360
|
+
# @param DebugId: 调试作业ID
|
361
|
+
# @type DebugId: Integer
|
362
|
+
# @param TableName: 表名
|
363
|
+
# @type TableName: String
|
364
|
+
|
365
|
+
attr_accessor :JobId, :DebugId, :TableName
|
366
|
+
|
367
|
+
def initialize(jobid=nil, debugid=nil, tablename=nil)
|
368
|
+
@JobId = jobid
|
369
|
+
@DebugId = debugid
|
370
|
+
@TableName = tablename
|
371
|
+
end
|
372
|
+
|
373
|
+
def deserialize(params)
|
374
|
+
@JobId = params['JobId']
|
375
|
+
@DebugId = params['DebugId']
|
376
|
+
@TableName = params['TableName']
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
380
|
+
# DeleteTableConfig返回参数结构体
|
381
|
+
class DeleteTableConfigResponse < TencentCloud::Common::AbstractModel
|
382
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
383
|
+
# @type RequestId: String
|
384
|
+
|
385
|
+
attr_accessor :RequestId
|
386
|
+
|
387
|
+
def initialize(requestid=nil)
|
388
|
+
@RequestId = requestid
|
389
|
+
end
|
390
|
+
|
391
|
+
def deserialize(params)
|
392
|
+
@RequestId = params['RequestId']
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
# DescribeJobConfigs请求参数结构体
|
397
|
+
class DescribeJobConfigsRequest < TencentCloud::Common::AbstractModel
|
398
|
+
# @param JobId: 作业Id
|
399
|
+
# @type JobId: String
|
400
|
+
# @param JobConfigVersions: 作业配置版本
|
401
|
+
# @type JobConfigVersions: Array
|
402
|
+
# @param Offset: 偏移量,默认0
|
403
|
+
# @type Offset: Integer
|
404
|
+
# @param Limit: 分页大小,默认20,最大100
|
405
|
+
# @type Limit: Integer
|
406
|
+
# @param Filters: 过滤条件
|
407
|
+
# @type Filters: Array
|
408
|
+
# @param OnlyDraft: true 表示只展示草稿
|
409
|
+
# @type OnlyDraft: Boolean
|
410
|
+
|
411
|
+
attr_accessor :JobId, :JobConfigVersions, :Offset, :Limit, :Filters, :OnlyDraft
|
412
|
+
|
413
|
+
def initialize(jobid=nil, jobconfigversions=nil, offset=nil, limit=nil, filters=nil, onlydraft=nil)
|
414
|
+
@JobId = jobid
|
415
|
+
@JobConfigVersions = jobconfigversions
|
416
|
+
@Offset = offset
|
417
|
+
@Limit = limit
|
418
|
+
@Filters = filters
|
419
|
+
@OnlyDraft = onlydraft
|
420
|
+
end
|
421
|
+
|
422
|
+
def deserialize(params)
|
423
|
+
@JobId = params['JobId']
|
424
|
+
@JobConfigVersions = params['JobConfigVersions']
|
425
|
+
@Offset = params['Offset']
|
426
|
+
@Limit = params['Limit']
|
427
|
+
unless params['Filters'].nil?
|
428
|
+
@Filters = []
|
429
|
+
params['Filters'].each do |i|
|
430
|
+
filter_tmp = Filter.new
|
431
|
+
filter_tmp.deserialize(i)
|
432
|
+
@Filters << filter_tmp
|
433
|
+
end
|
434
|
+
end
|
435
|
+
@OnlyDraft = params['OnlyDraft']
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
# DescribeJobConfigs返回参数结构体
|
440
|
+
class DescribeJobConfigsResponse < TencentCloud::Common::AbstractModel
|
441
|
+
# @param TotalCount: 总的配置版本数量
|
442
|
+
# @type TotalCount: Integer
|
443
|
+
# @param JobConfigSet: 作业配置列表
|
444
|
+
# @type JobConfigSet: Array
|
445
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
446
|
+
# @type RequestId: String
|
447
|
+
|
448
|
+
attr_accessor :TotalCount, :JobConfigSet, :RequestId
|
449
|
+
|
450
|
+
def initialize(totalcount=nil, jobconfigset=nil, requestid=nil)
|
451
|
+
@TotalCount = totalcount
|
452
|
+
@JobConfigSet = jobconfigset
|
453
|
+
@RequestId = requestid
|
454
|
+
end
|
455
|
+
|
456
|
+
def deserialize(params)
|
457
|
+
@TotalCount = params['TotalCount']
|
458
|
+
unless params['JobConfigSet'].nil?
|
459
|
+
@JobConfigSet = []
|
460
|
+
params['JobConfigSet'].each do |i|
|
461
|
+
jobconfig_tmp = JobConfig.new
|
462
|
+
jobconfig_tmp.deserialize(i)
|
463
|
+
@JobConfigSet << jobconfig_tmp
|
464
|
+
end
|
465
|
+
end
|
466
|
+
@RequestId = params['RequestId']
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
# DescribeJobs请求参数结构体
|
471
|
+
class DescribeJobsRequest < TencentCloud::Common::AbstractModel
|
472
|
+
# @param JobIds: 按照一个或者多个作业ID查询。作业ID形如:cql-11112222,每次请求的作业上限为100。参数不支持同时指定JobIds和Filters。
|
473
|
+
# @type JobIds: Array
|
474
|
+
# @param Filters: 过滤条件,支持的 Filter.Name 为:作业名 Name、作业状态 Status、所属集群 ClusterId。每次请求的 Filters 个数的上限为 3,Filter.Values 的个数上限为 5。参数不支持同时指定 JobIds 和 Filters。
|
475
|
+
# @type Filters: Array
|
476
|
+
# @param Offset: 偏移量,默认为0
|
477
|
+
# @type Offset: Integer
|
478
|
+
# @param Limit: 分页大小,默认为20,最大值为100
|
479
|
+
# @type Limit: Integer
|
480
|
+
|
481
|
+
attr_accessor :JobIds, :Filters, :Offset, :Limit
|
482
|
+
|
483
|
+
def initialize(jobids=nil, filters=nil, offset=nil, limit=nil)
|
484
|
+
@JobIds = jobids
|
485
|
+
@Filters = filters
|
486
|
+
@Offset = offset
|
487
|
+
@Limit = limit
|
488
|
+
end
|
489
|
+
|
490
|
+
def deserialize(params)
|
491
|
+
@JobIds = params['JobIds']
|
492
|
+
unless params['Filters'].nil?
|
493
|
+
@Filters = []
|
494
|
+
params['Filters'].each do |i|
|
495
|
+
filter_tmp = Filter.new
|
496
|
+
filter_tmp.deserialize(i)
|
497
|
+
@Filters << filter_tmp
|
498
|
+
end
|
499
|
+
end
|
500
|
+
@Offset = params['Offset']
|
501
|
+
@Limit = params['Limit']
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
# DescribeJobs返回参数结构体
|
506
|
+
class DescribeJobsResponse < TencentCloud::Common::AbstractModel
|
507
|
+
# @param TotalCount: 作业总数
|
508
|
+
# @type TotalCount: Integer
|
509
|
+
# @param JobSet: 作业列表
|
510
|
+
# @type JobSet: Array
|
511
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
512
|
+
# @type RequestId: String
|
513
|
+
|
514
|
+
attr_accessor :TotalCount, :JobSet, :RequestId
|
515
|
+
|
516
|
+
def initialize(totalcount=nil, jobset=nil, requestid=nil)
|
517
|
+
@TotalCount = totalcount
|
518
|
+
@JobSet = jobset
|
519
|
+
@RequestId = requestid
|
520
|
+
end
|
521
|
+
|
522
|
+
def deserialize(params)
|
523
|
+
@TotalCount = params['TotalCount']
|
524
|
+
unless params['JobSet'].nil?
|
525
|
+
@JobSet = []
|
526
|
+
params['JobSet'].each do |i|
|
527
|
+
jobv1_tmp = JobV1.new
|
528
|
+
jobv1_tmp.deserialize(i)
|
529
|
+
@JobSet << jobv1_tmp
|
530
|
+
end
|
531
|
+
end
|
532
|
+
@RequestId = params['RequestId']
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# DescribeResourceConfigs请求参数结构体
|
537
|
+
class DescribeResourceConfigsRequest < TencentCloud::Common::AbstractModel
|
538
|
+
# @param ResourceId: 资源ID
|
539
|
+
# @type ResourceId: String
|
540
|
+
# @param Offset: 偏移量,仅当设置 Limit 时该参数有效
|
541
|
+
# @type Offset: Integer
|
542
|
+
# @param Limit: 返回值大小,不填则返回全量数据
|
543
|
+
# @type Limit: Integer
|
544
|
+
# @param ResourceConfigVersions: 资源配置Versions集合
|
545
|
+
# @type ResourceConfigVersions: Array
|
546
|
+
# @param JobConfigVersion: 作业配置版本
|
547
|
+
# @type JobConfigVersion: Integer
|
548
|
+
# @param JobId: 作业ID
|
549
|
+
# @type JobId: String
|
550
|
+
|
551
|
+
attr_accessor :ResourceId, :Offset, :Limit, :ResourceConfigVersions, :JobConfigVersion, :JobId
|
552
|
+
|
553
|
+
def initialize(resourceid=nil, offset=nil, limit=nil, resourceconfigversions=nil, jobconfigversion=nil, jobid=nil)
|
554
|
+
@ResourceId = resourceid
|
555
|
+
@Offset = offset
|
556
|
+
@Limit = limit
|
557
|
+
@ResourceConfigVersions = resourceconfigversions
|
558
|
+
@JobConfigVersion = jobconfigversion
|
559
|
+
@JobId = jobid
|
560
|
+
end
|
561
|
+
|
562
|
+
def deserialize(params)
|
563
|
+
@ResourceId = params['ResourceId']
|
564
|
+
@Offset = params['Offset']
|
565
|
+
@Limit = params['Limit']
|
566
|
+
@ResourceConfigVersions = params['ResourceConfigVersions']
|
567
|
+
@JobConfigVersion = params['JobConfigVersion']
|
568
|
+
@JobId = params['JobId']
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# DescribeResourceConfigs返回参数结构体
|
573
|
+
class DescribeResourceConfigsResponse < TencentCloud::Common::AbstractModel
|
574
|
+
# @param ResourceConfigSet: 资源配置描述数组
|
575
|
+
# @type ResourceConfigSet: Array
|
576
|
+
# @param TotalCount: 资源配置数量
|
577
|
+
# @type TotalCount: Integer
|
578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
579
|
+
# @type RequestId: String
|
580
|
+
|
581
|
+
attr_accessor :ResourceConfigSet, :TotalCount, :RequestId
|
582
|
+
|
583
|
+
def initialize(resourceconfigset=nil, totalcount=nil, requestid=nil)
|
584
|
+
@ResourceConfigSet = resourceconfigset
|
585
|
+
@TotalCount = totalcount
|
586
|
+
@RequestId = requestid
|
587
|
+
end
|
588
|
+
|
589
|
+
def deserialize(params)
|
590
|
+
unless params['ResourceConfigSet'].nil?
|
591
|
+
@ResourceConfigSet = []
|
592
|
+
params['ResourceConfigSet'].each do |i|
|
593
|
+
resourceconfigitem_tmp = ResourceConfigItem.new
|
594
|
+
resourceconfigitem_tmp.deserialize(i)
|
595
|
+
@ResourceConfigSet << resourceconfigitem_tmp
|
596
|
+
end
|
597
|
+
end
|
598
|
+
@TotalCount = params['TotalCount']
|
599
|
+
@RequestId = params['RequestId']
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# DescribeResourceRelatedJobs请求参数结构体
|
604
|
+
class DescribeResourceRelatedJobsRequest < TencentCloud::Common::AbstractModel
|
605
|
+
# @param ResourceId: 资源ID
|
606
|
+
# @type ResourceId: String
|
607
|
+
# @param DESCByJobConfigCreateTime: 默认0; 1: 按照作业版本创建时间降序
|
608
|
+
# @type DESCByJobConfigCreateTime: Integer
|
609
|
+
# @param Offset: 偏移量,默认为0
|
610
|
+
# @type Offset: Integer
|
611
|
+
# @param Limit: 分页大小,默认为20,最大值为100
|
612
|
+
# @type Limit: Integer
|
613
|
+
|
614
|
+
attr_accessor :ResourceId, :DESCByJobConfigCreateTime, :Offset, :Limit
|
615
|
+
|
616
|
+
def initialize(resourceid=nil, descbyjobconfigcreatetime=nil, offset=nil, limit=nil)
|
617
|
+
@ResourceId = resourceid
|
618
|
+
@DESCByJobConfigCreateTime = descbyjobconfigcreatetime
|
619
|
+
@Offset = offset
|
620
|
+
@Limit = limit
|
621
|
+
end
|
622
|
+
|
623
|
+
def deserialize(params)
|
624
|
+
@ResourceId = params['ResourceId']
|
625
|
+
@DESCByJobConfigCreateTime = params['DESCByJobConfigCreateTime']
|
626
|
+
@Offset = params['Offset']
|
627
|
+
@Limit = params['Limit']
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
# DescribeResourceRelatedJobs返回参数结构体
|
632
|
+
class DescribeResourceRelatedJobsResponse < TencentCloud::Common::AbstractModel
|
633
|
+
# @param TotalCount: 总数
|
634
|
+
# @type TotalCount: Integer
|
635
|
+
# @param RefJobInfos: 关联作业信息
|
636
|
+
# @type RefJobInfos: Array
|
637
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
638
|
+
# @type RequestId: String
|
639
|
+
|
640
|
+
attr_accessor :TotalCount, :RefJobInfos, :RequestId
|
641
|
+
|
642
|
+
def initialize(totalcount=nil, refjobinfos=nil, requestid=nil)
|
643
|
+
@TotalCount = totalcount
|
644
|
+
@RefJobInfos = refjobinfos
|
645
|
+
@RequestId = requestid
|
646
|
+
end
|
647
|
+
|
648
|
+
def deserialize(params)
|
649
|
+
@TotalCount = params['TotalCount']
|
650
|
+
unless params['RefJobInfos'].nil?
|
651
|
+
@RefJobInfos = []
|
652
|
+
params['RefJobInfos'].each do |i|
|
653
|
+
resourcerefjobinfo_tmp = ResourceRefJobInfo.new
|
654
|
+
resourcerefjobinfo_tmp.deserialize(i)
|
655
|
+
@RefJobInfos << resourcerefjobinfo_tmp
|
656
|
+
end
|
657
|
+
end
|
658
|
+
@RequestId = params['RequestId']
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
662
|
+
# DescribeResources请求参数结构体
|
663
|
+
class DescribeResourcesRequest < TencentCloud::Common::AbstractModel
|
664
|
+
# @param ResourceIds: 需要查询的资源ID数组,数量不超过100个。如果填写了该参数则忽略Filters参数。
|
665
|
+
# @type ResourceIds: Array
|
666
|
+
# @param Offset: 偏移量,仅当设置 Limit 参数时有效
|
667
|
+
# @type Offset: Integer
|
668
|
+
# @param Limit: 条数限制。如果不填,默认返回 20 条
|
669
|
+
# @type Limit: Integer
|
670
|
+
# @param Filters: <li><strong>ResourceName</strong></li>
|
671
|
+
# <p style="padding-left: 30px;">按照资源名字过滤,支持模糊过滤。传入的过滤名字不超过5个</p><p style="padding-left: 30px;">类型: String</p><p style="padding-left: 30px;">必选: 否</p>
|
672
|
+
# @type Filters: Array
|
673
|
+
|
674
|
+
attr_accessor :ResourceIds, :Offset, :Limit, :Filters
|
675
|
+
|
676
|
+
def initialize(resourceids=nil, offset=nil, limit=nil, filters=nil)
|
677
|
+
@ResourceIds = resourceids
|
678
|
+
@Offset = offset
|
679
|
+
@Limit = limit
|
680
|
+
@Filters = filters
|
681
|
+
end
|
682
|
+
|
683
|
+
def deserialize(params)
|
684
|
+
@ResourceIds = params['ResourceIds']
|
685
|
+
@Offset = params['Offset']
|
686
|
+
@Limit = params['Limit']
|
687
|
+
unless params['Filters'].nil?
|
688
|
+
@Filters = []
|
689
|
+
params['Filters'].each do |i|
|
690
|
+
filter_tmp = Filter.new
|
691
|
+
filter_tmp.deserialize(i)
|
692
|
+
@Filters << filter_tmp
|
693
|
+
end
|
694
|
+
end
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
698
|
+
# DescribeResources返回参数结构体
|
699
|
+
class DescribeResourcesResponse < TencentCloud::Common::AbstractModel
|
700
|
+
# @param ResourceSet: 资源详细信息集合
|
701
|
+
# @type ResourceSet: Array
|
702
|
+
# @param TotalCount: 总数量
|
703
|
+
# @type TotalCount: Integer
|
704
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
705
|
+
# @type RequestId: String
|
706
|
+
|
707
|
+
attr_accessor :ResourceSet, :TotalCount, :RequestId
|
708
|
+
|
709
|
+
def initialize(resourceset=nil, totalcount=nil, requestid=nil)
|
710
|
+
@ResourceSet = resourceset
|
711
|
+
@TotalCount = totalcount
|
712
|
+
@RequestId = requestid
|
713
|
+
end
|
714
|
+
|
715
|
+
def deserialize(params)
|
716
|
+
unless params['ResourceSet'].nil?
|
717
|
+
@ResourceSet = []
|
718
|
+
params['ResourceSet'].each do |i|
|
719
|
+
resourceitem_tmp = ResourceItem.new
|
720
|
+
resourceitem_tmp.deserialize(i)
|
721
|
+
@ResourceSet << resourceitem_tmp
|
722
|
+
end
|
723
|
+
end
|
724
|
+
@TotalCount = params['TotalCount']
|
725
|
+
@RequestId = params['RequestId']
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
# DescribeSystemResources请求参数结构体
|
730
|
+
class DescribeSystemResourcesRequest < TencentCloud::Common::AbstractModel
|
731
|
+
# @param ResourceIds: 需要查询的资源ID数组
|
732
|
+
# @type ResourceIds: Array
|
733
|
+
# @param Offset: 偏移量,仅当设置 Limit 参数时有效
|
734
|
+
# @type Offset: Integer
|
735
|
+
# @param Limit: 条数限制,默认返回 20 条
|
736
|
+
# @type Limit: Integer
|
737
|
+
# @param Filters: 查询资源配置列表, 如果不填写,返回该 ResourceIds.N 下所有作业配置列表
|
738
|
+
# @type Filters: Array
|
739
|
+
# @param ClusterId: 集群ID
|
740
|
+
# @type ClusterId: String
|
741
|
+
# @param FlinkVersion: 查询对应Flink版本的内置connector
|
742
|
+
# @type FlinkVersion: String
|
743
|
+
|
744
|
+
attr_accessor :ResourceIds, :Offset, :Limit, :Filters, :ClusterId, :FlinkVersion
|
745
|
+
|
746
|
+
def initialize(resourceids=nil, offset=nil, limit=nil, filters=nil, clusterid=nil, flinkversion=nil)
|
747
|
+
@ResourceIds = resourceids
|
748
|
+
@Offset = offset
|
749
|
+
@Limit = limit
|
750
|
+
@Filters = filters
|
751
|
+
@ClusterId = clusterid
|
752
|
+
@FlinkVersion = flinkversion
|
753
|
+
end
|
754
|
+
|
755
|
+
def deserialize(params)
|
756
|
+
@ResourceIds = params['ResourceIds']
|
757
|
+
@Offset = params['Offset']
|
758
|
+
@Limit = params['Limit']
|
759
|
+
unless params['Filters'].nil?
|
760
|
+
@Filters = []
|
761
|
+
params['Filters'].each do |i|
|
762
|
+
filter_tmp = Filter.new
|
763
|
+
filter_tmp.deserialize(i)
|
764
|
+
@Filters << filter_tmp
|
765
|
+
end
|
766
|
+
end
|
767
|
+
@ClusterId = params['ClusterId']
|
768
|
+
@FlinkVersion = params['FlinkVersion']
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
772
|
+
# DescribeSystemResources返回参数结构体
|
773
|
+
class DescribeSystemResourcesResponse < TencentCloud::Common::AbstractModel
|
774
|
+
# @param ResourceSet: 资源详细信息集合
|
775
|
+
# @type ResourceSet: Array
|
776
|
+
# @param TotalCount: 总数量
|
777
|
+
# @type TotalCount: Integer
|
778
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
779
|
+
# @type RequestId: String
|
780
|
+
|
781
|
+
attr_accessor :ResourceSet, :TotalCount, :RequestId
|
782
|
+
|
783
|
+
def initialize(resourceset=nil, totalcount=nil, requestid=nil)
|
784
|
+
@ResourceSet = resourceset
|
785
|
+
@TotalCount = totalcount
|
786
|
+
@RequestId = requestid
|
787
|
+
end
|
788
|
+
|
789
|
+
def deserialize(params)
|
790
|
+
unless params['ResourceSet'].nil?
|
791
|
+
@ResourceSet = []
|
792
|
+
params['ResourceSet'].each do |i|
|
793
|
+
systemresourceitem_tmp = SystemResourceItem.new
|
794
|
+
systemresourceitem_tmp.deserialize(i)
|
795
|
+
@ResourceSet << systemresourceitem_tmp
|
796
|
+
end
|
797
|
+
end
|
798
|
+
@TotalCount = params['TotalCount']
|
799
|
+
@RequestId = params['RequestId']
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
# 查询作业列表时的过滤器
|
804
|
+
class Filter < TencentCloud::Common::AbstractModel
|
805
|
+
# @param Name: 要过滤的字段
|
806
|
+
# @type Name: String
|
807
|
+
# @param Values: 字段的过滤值
|
808
|
+
# @type Values: Array
|
809
|
+
|
810
|
+
attr_accessor :Name, :Values
|
811
|
+
|
812
|
+
def initialize(name=nil, values=nil)
|
813
|
+
@Name = name
|
814
|
+
@Values = values
|
815
|
+
end
|
816
|
+
|
817
|
+
def deserialize(params)
|
818
|
+
@Name = params['Name']
|
819
|
+
@Values = params['Values']
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
# 作业配置详情
|
824
|
+
class JobConfig < TencentCloud::Common::AbstractModel
|
825
|
+
# @param JobId: 作业Id
|
826
|
+
# @type JobId: String
|
827
|
+
# @param EntrypointClass: 主类
|
828
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
829
|
+
# @type EntrypointClass: String
|
830
|
+
# @param ProgramArgs: 主类入参
|
831
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
832
|
+
# @type ProgramArgs: String
|
833
|
+
# @param Remark: 备注
|
834
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
835
|
+
# @type Remark: String
|
836
|
+
# @param CreateTime: 作业配置创建时间
|
837
|
+
# @type CreateTime: String
|
838
|
+
# @param Version: 作业配置的版本号
|
839
|
+
# @type Version: Integer
|
840
|
+
# @param DefaultParallelism: 作业默认并行度
|
841
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
842
|
+
# @type DefaultParallelism: Integer
|
843
|
+
# @param Properties: 系统参数
|
844
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
845
|
+
# @type Properties: Array
|
846
|
+
# @param ResourceRefDetails: 引用资源
|
847
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
848
|
+
# @type ResourceRefDetails: Array
|
849
|
+
# @param CreatorUin: 创建者uin
|
850
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
851
|
+
# @type CreatorUin: String
|
852
|
+
# @param UpdateTime: 作业配置上次启动时间
|
853
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
854
|
+
# @type UpdateTime: String
|
855
|
+
# @param COSBucket: 作业绑定的存储桶
|
856
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
857
|
+
# @type COSBucket: String
|
858
|
+
# @param LogCollect: 是否启用日志收集,0-未启用,1-已启用,2-历史集群未设置日志集,3-历史集群已开启
|
859
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
860
|
+
# @type LogCollect: Integer
|
861
|
+
# @param MaxParallelism: 作业的最大并行度
|
862
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
863
|
+
# @type MaxParallelism: Integer
|
864
|
+
# @param JobManagerSpec: JobManager规格
|
865
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
866
|
+
# @type JobManagerSpec: Float
|
867
|
+
# @param TaskManagerSpec: TaskManager规格
|
868
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
869
|
+
# @type TaskManagerSpec: Float
|
870
|
+
|
871
|
+
attr_accessor :JobId, :EntrypointClass, :ProgramArgs, :Remark, :CreateTime, :Version, :DefaultParallelism, :Properties, :ResourceRefDetails, :CreatorUin, :UpdateTime, :COSBucket, :LogCollect, :MaxParallelism, :JobManagerSpec, :TaskManagerSpec
|
872
|
+
|
873
|
+
def initialize(jobid=nil, entrypointclass=nil, programargs=nil, remark=nil, createtime=nil, version=nil, defaultparallelism=nil, properties=nil, resourcerefdetails=nil, creatoruin=nil, updatetime=nil, cosbucket=nil, logcollect=nil, maxparallelism=nil, jobmanagerspec=nil, taskmanagerspec=nil)
|
874
|
+
@JobId = jobid
|
875
|
+
@EntrypointClass = entrypointclass
|
876
|
+
@ProgramArgs = programargs
|
877
|
+
@Remark = remark
|
878
|
+
@CreateTime = createtime
|
879
|
+
@Version = version
|
880
|
+
@DefaultParallelism = defaultparallelism
|
881
|
+
@Properties = properties
|
882
|
+
@ResourceRefDetails = resourcerefdetails
|
883
|
+
@CreatorUin = creatoruin
|
884
|
+
@UpdateTime = updatetime
|
885
|
+
@COSBucket = cosbucket
|
886
|
+
@LogCollect = logcollect
|
887
|
+
@MaxParallelism = maxparallelism
|
888
|
+
@JobManagerSpec = jobmanagerspec
|
889
|
+
@TaskManagerSpec = taskmanagerspec
|
890
|
+
end
|
891
|
+
|
892
|
+
def deserialize(params)
|
893
|
+
@JobId = params['JobId']
|
894
|
+
@EntrypointClass = params['EntrypointClass']
|
895
|
+
@ProgramArgs = params['ProgramArgs']
|
896
|
+
@Remark = params['Remark']
|
897
|
+
@CreateTime = params['CreateTime']
|
898
|
+
@Version = params['Version']
|
899
|
+
@DefaultParallelism = params['DefaultParallelism']
|
900
|
+
unless params['Properties'].nil?
|
901
|
+
@Properties = []
|
902
|
+
params['Properties'].each do |i|
|
903
|
+
property_tmp = Property.new
|
904
|
+
property_tmp.deserialize(i)
|
905
|
+
@Properties << property_tmp
|
906
|
+
end
|
907
|
+
end
|
908
|
+
unless params['ResourceRefDetails'].nil?
|
909
|
+
@ResourceRefDetails = []
|
910
|
+
params['ResourceRefDetails'].each do |i|
|
911
|
+
resourcerefdetail_tmp = ResourceRefDetail.new
|
912
|
+
resourcerefdetail_tmp.deserialize(i)
|
913
|
+
@ResourceRefDetails << resourcerefdetail_tmp
|
914
|
+
end
|
915
|
+
end
|
916
|
+
@CreatorUin = params['CreatorUin']
|
917
|
+
@UpdateTime = params['UpdateTime']
|
918
|
+
@COSBucket = params['COSBucket']
|
919
|
+
@LogCollect = params['LogCollect']
|
920
|
+
@MaxParallelism = params['MaxParallelism']
|
921
|
+
@JobManagerSpec = params['JobManagerSpec']
|
922
|
+
@TaskManagerSpec = params['TaskManagerSpec']
|
923
|
+
end
|
924
|
+
end
|
925
|
+
|
926
|
+
# Job详细信息
|
927
|
+
class JobV1 < TencentCloud::Common::AbstractModel
|
928
|
+
# @param JobId: 作业ID
|
929
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
930
|
+
# @type JobId: String
|
931
|
+
# @param Region: 地域
|
932
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
933
|
+
# @type Region: String
|
934
|
+
# @param Zone: 可用区
|
935
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
936
|
+
# @type Zone: String
|
937
|
+
# @param AppId: 用户AppId
|
938
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
939
|
+
# @type AppId: Integer
|
940
|
+
# @param OwnerUin: 用户UIN
|
941
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
942
|
+
# @type OwnerUin: String
|
943
|
+
# @param CreatorUin: 创建者UIN
|
944
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
945
|
+
# @type CreatorUin: String
|
946
|
+
# @param Name: 作业名字
|
947
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
948
|
+
# @type Name: String
|
949
|
+
# @param JobType: 作业类型,1:sql作业,2:Jar作业
|
950
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
951
|
+
# @type JobType: Integer
|
952
|
+
# @param Status: 作业状态,1:未初始化,2:未发布,3:操作中,4:运行中,5:停止,6:暂停,-1:故障
|
953
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
954
|
+
# @type Status: Integer
|
955
|
+
# @param CreateTime: 作业创建时间
|
956
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
957
|
+
# @type CreateTime: String
|
958
|
+
# @param StartTime: 作业启动时间
|
959
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
960
|
+
# @type StartTime: String
|
961
|
+
# @param StopTime: 作业停止时间
|
962
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
963
|
+
# @type StopTime: String
|
964
|
+
# @param UpdateTime: 作业更新时间
|
965
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
966
|
+
# @type UpdateTime: String
|
967
|
+
# @param TotalRunMillis: 作业累计运行时间
|
968
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
969
|
+
# @type TotalRunMillis: Integer
|
970
|
+
# @param Remark: 备注信息
|
971
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
972
|
+
# @type Remark: String
|
973
|
+
# @param LastOpResult: 操作错误提示信息
|
974
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
975
|
+
# @type LastOpResult: String
|
976
|
+
# @param ClusterName: 集群名字
|
977
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
978
|
+
# @type ClusterName: String
|
979
|
+
# @param LatestJobConfigVersion: 最新配置版本号
|
980
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
981
|
+
# @type LatestJobConfigVersion: Integer
|
982
|
+
# @param PublishedJobConfigVersion: 已发布的配置版本
|
983
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
984
|
+
# @type PublishedJobConfigVersion: Integer
|
985
|
+
# @param RunningCuNum: 运行的CU数量
|
986
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
987
|
+
# @type RunningCuNum: Integer
|
988
|
+
# @param CuMem: 作业内存规格
|
989
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
990
|
+
# @type CuMem: Integer
|
991
|
+
# @param StatusDesc: 作业状态描述
|
992
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
993
|
+
# @type StatusDesc: String
|
994
|
+
# @param CurrentRunMillis: 运行状态时表示单次运行时间
|
995
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
996
|
+
# @type CurrentRunMillis: Integer
|
997
|
+
# @param ClusterId: 作业所在的集群ID
|
998
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
999
|
+
# @type ClusterId: String
|
1000
|
+
# @param WebUIUrl: 作业管理WEB UI 入口
|
1001
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1002
|
+
# @type WebUIUrl: String
|
1003
|
+
# @param SchedulerType: 作业所在集群类型
|
1004
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1005
|
+
# @type SchedulerType: Integer
|
1006
|
+
# @param ClusterStatus: 作业所在集群状态
|
1007
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1008
|
+
# @type ClusterStatus: Integer
|
1009
|
+
# @param RunningCu: 细粒度下的运行的CU数量
|
1010
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1011
|
+
# @type RunningCu: Float
|
1012
|
+
# @param FlinkVersion: 作业运行的 Flink 版本
|
1013
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1014
|
+
# @type FlinkVersion: String
|
1015
|
+
|
1016
|
+
attr_accessor :JobId, :Region, :Zone, :AppId, :OwnerUin, :CreatorUin, :Name, :JobType, :Status, :CreateTime, :StartTime, :StopTime, :UpdateTime, :TotalRunMillis, :Remark, :LastOpResult, :ClusterName, :LatestJobConfigVersion, :PublishedJobConfigVersion, :RunningCuNum, :CuMem, :StatusDesc, :CurrentRunMillis, :ClusterId, :WebUIUrl, :SchedulerType, :ClusterStatus, :RunningCu, :FlinkVersion
|
1017
|
+
|
1018
|
+
def initialize(jobid=nil, region=nil, zone=nil, appid=nil, owneruin=nil, creatoruin=nil, name=nil, jobtype=nil, status=nil, createtime=nil, starttime=nil, stoptime=nil, updatetime=nil, totalrunmillis=nil, remark=nil, lastopresult=nil, clustername=nil, latestjobconfigversion=nil, publishedjobconfigversion=nil, runningcunum=nil, cumem=nil, statusdesc=nil, currentrunmillis=nil, clusterid=nil, webuiurl=nil, schedulertype=nil, clusterstatus=nil, runningcu=nil, flinkversion=nil)
|
1019
|
+
@JobId = jobid
|
1020
|
+
@Region = region
|
1021
|
+
@Zone = zone
|
1022
|
+
@AppId = appid
|
1023
|
+
@OwnerUin = owneruin
|
1024
|
+
@CreatorUin = creatoruin
|
1025
|
+
@Name = name
|
1026
|
+
@JobType = jobtype
|
1027
|
+
@Status = status
|
1028
|
+
@CreateTime = createtime
|
1029
|
+
@StartTime = starttime
|
1030
|
+
@StopTime = stoptime
|
1031
|
+
@UpdateTime = updatetime
|
1032
|
+
@TotalRunMillis = totalrunmillis
|
1033
|
+
@Remark = remark
|
1034
|
+
@LastOpResult = lastopresult
|
1035
|
+
@ClusterName = clustername
|
1036
|
+
@LatestJobConfigVersion = latestjobconfigversion
|
1037
|
+
@PublishedJobConfigVersion = publishedjobconfigversion
|
1038
|
+
@RunningCuNum = runningcunum
|
1039
|
+
@CuMem = cumem
|
1040
|
+
@StatusDesc = statusdesc
|
1041
|
+
@CurrentRunMillis = currentrunmillis
|
1042
|
+
@ClusterId = clusterid
|
1043
|
+
@WebUIUrl = webuiurl
|
1044
|
+
@SchedulerType = schedulertype
|
1045
|
+
@ClusterStatus = clusterstatus
|
1046
|
+
@RunningCu = runningcu
|
1047
|
+
@FlinkVersion = flinkversion
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
def deserialize(params)
|
1051
|
+
@JobId = params['JobId']
|
1052
|
+
@Region = params['Region']
|
1053
|
+
@Zone = params['Zone']
|
1054
|
+
@AppId = params['AppId']
|
1055
|
+
@OwnerUin = params['OwnerUin']
|
1056
|
+
@CreatorUin = params['CreatorUin']
|
1057
|
+
@Name = params['Name']
|
1058
|
+
@JobType = params['JobType']
|
1059
|
+
@Status = params['Status']
|
1060
|
+
@CreateTime = params['CreateTime']
|
1061
|
+
@StartTime = params['StartTime']
|
1062
|
+
@StopTime = params['StopTime']
|
1063
|
+
@UpdateTime = params['UpdateTime']
|
1064
|
+
@TotalRunMillis = params['TotalRunMillis']
|
1065
|
+
@Remark = params['Remark']
|
1066
|
+
@LastOpResult = params['LastOpResult']
|
1067
|
+
@ClusterName = params['ClusterName']
|
1068
|
+
@LatestJobConfigVersion = params['LatestJobConfigVersion']
|
1069
|
+
@PublishedJobConfigVersion = params['PublishedJobConfigVersion']
|
1070
|
+
@RunningCuNum = params['RunningCuNum']
|
1071
|
+
@CuMem = params['CuMem']
|
1072
|
+
@StatusDesc = params['StatusDesc']
|
1073
|
+
@CurrentRunMillis = params['CurrentRunMillis']
|
1074
|
+
@ClusterId = params['ClusterId']
|
1075
|
+
@WebUIUrl = params['WebUIUrl']
|
1076
|
+
@SchedulerType = params['SchedulerType']
|
1077
|
+
@ClusterStatus = params['ClusterStatus']
|
1078
|
+
@RunningCu = params['RunningCu']
|
1079
|
+
@FlinkVersion = params['FlinkVersion']
|
1080
|
+
end
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# 系统配置属性
|
1084
|
+
class Property < TencentCloud::Common::AbstractModel
|
1085
|
+
# @param Key: 系统配置的Key
|
1086
|
+
# @type Key: String
|
1087
|
+
# @param Value: 系统配置的Value
|
1088
|
+
# @type Value: String
|
1089
|
+
|
1090
|
+
attr_accessor :Key, :Value
|
1091
|
+
|
1092
|
+
def initialize(key=nil, value=nil)
|
1093
|
+
@Key = key
|
1094
|
+
@Value = value
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
def deserialize(params)
|
1098
|
+
@Key = params['Key']
|
1099
|
+
@Value = params['Value']
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# 描述资源配置的返回参数
|
1104
|
+
class ResourceConfigItem < TencentCloud::Common::AbstractModel
|
1105
|
+
# @param ResourceId: 资源ID
|
1106
|
+
# @type ResourceId: String
|
1107
|
+
# @param ResourceType: 资源类型
|
1108
|
+
# @type ResourceType: Integer
|
1109
|
+
# @param Region: 资源所属地域
|
1110
|
+
# @type Region: String
|
1111
|
+
# @param AppId: 资源所属AppId
|
1112
|
+
# @type AppId: Integer
|
1113
|
+
# @param OwnerUin: 主账号Uin
|
1114
|
+
# @type OwnerUin: String
|
1115
|
+
# @param CreatorUin: 子账号Uin
|
1116
|
+
# @type CreatorUin: String
|
1117
|
+
# @param ResourceLoc: 资源位置描述
|
1118
|
+
# @type ResourceLoc: :class:`Tencentcloud::Oceanus.v20190422.models.ResourceLoc`
|
1119
|
+
# @param CreateTime: 资源创建时间
|
1120
|
+
# @type CreateTime: String
|
1121
|
+
# @param Version: 资源版本
|
1122
|
+
# @type Version: Integer
|
1123
|
+
# @param Remark: 资源描述
|
1124
|
+
# @type Remark: String
|
1125
|
+
# @param Status: 资源状态:0: 资源同步中,1:资源已就绪
|
1126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1127
|
+
# @type Status: Integer
|
1128
|
+
# @param RefJobCount: 关联作业个数
|
1129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1130
|
+
# @type RefJobCount: Integer
|
1131
|
+
|
1132
|
+
attr_accessor :ResourceId, :ResourceType, :Region, :AppId, :OwnerUin, :CreatorUin, :ResourceLoc, :CreateTime, :Version, :Remark, :Status, :RefJobCount
|
1133
|
+
|
1134
|
+
def initialize(resourceid=nil, resourcetype=nil, region=nil, appid=nil, owneruin=nil, creatoruin=nil, resourceloc=nil, createtime=nil, version=nil, remark=nil, status=nil, refjobcount=nil)
|
1135
|
+
@ResourceId = resourceid
|
1136
|
+
@ResourceType = resourcetype
|
1137
|
+
@Region = region
|
1138
|
+
@AppId = appid
|
1139
|
+
@OwnerUin = owneruin
|
1140
|
+
@CreatorUin = creatoruin
|
1141
|
+
@ResourceLoc = resourceloc
|
1142
|
+
@CreateTime = createtime
|
1143
|
+
@Version = version
|
1144
|
+
@Remark = remark
|
1145
|
+
@Status = status
|
1146
|
+
@RefJobCount = refjobcount
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
def deserialize(params)
|
1150
|
+
@ResourceId = params['ResourceId']
|
1151
|
+
@ResourceType = params['ResourceType']
|
1152
|
+
@Region = params['Region']
|
1153
|
+
@AppId = params['AppId']
|
1154
|
+
@OwnerUin = params['OwnerUin']
|
1155
|
+
@CreatorUin = params['CreatorUin']
|
1156
|
+
unless params['ResourceLoc'].nil?
|
1157
|
+
@ResourceLoc = ResourceLoc.new
|
1158
|
+
@ResourceLoc.deserialize(params['ResourceLoc'])
|
1159
|
+
end
|
1160
|
+
@CreateTime = params['CreateTime']
|
1161
|
+
@Version = params['Version']
|
1162
|
+
@Remark = params['Remark']
|
1163
|
+
@Status = params['Status']
|
1164
|
+
@RefJobCount = params['RefJobCount']
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# 资源详细描述
|
1169
|
+
class ResourceItem < TencentCloud::Common::AbstractModel
|
1170
|
+
# @param ResourceId: 资源ID
|
1171
|
+
# @type ResourceId: String
|
1172
|
+
# @param Name: 资源名称
|
1173
|
+
# @type Name: String
|
1174
|
+
# @param ResourceType: 资源类型
|
1175
|
+
# @type ResourceType: Integer
|
1176
|
+
# @param ResourceLoc: 资源位置
|
1177
|
+
# @type ResourceLoc: :class:`Tencentcloud::Oceanus.v20190422.models.ResourceLoc`
|
1178
|
+
# @param Region: 资源地域
|
1179
|
+
# @type Region: String
|
1180
|
+
# @param AppId: 应用ID
|
1181
|
+
# @type AppId: Integer
|
1182
|
+
# @param OwnerUin: 主账号Uin
|
1183
|
+
# @type OwnerUin: String
|
1184
|
+
# @param CreatorUin: 子账号Uin
|
1185
|
+
# @type CreatorUin: String
|
1186
|
+
# @param CreateTime: 资源创建时间
|
1187
|
+
# @type CreateTime: String
|
1188
|
+
# @param UpdateTime: 资源最后更新时间
|
1189
|
+
# @type UpdateTime: String
|
1190
|
+
# @param LatestResourceConfigVersion: 资源的资源版本ID
|
1191
|
+
# @type LatestResourceConfigVersion: Integer
|
1192
|
+
# @param Remark: 资源备注
|
1193
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1194
|
+
# @type Remark: String
|
1195
|
+
# @param VersionCount: 版本个数
|
1196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1197
|
+
# @type VersionCount: Integer
|
1198
|
+
# @param RefJobCount: 关联作业数
|
1199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1200
|
+
# @type RefJobCount: Integer
|
1201
|
+
|
1202
|
+
attr_accessor :ResourceId, :Name, :ResourceType, :ResourceLoc, :Region, :AppId, :OwnerUin, :CreatorUin, :CreateTime, :UpdateTime, :LatestResourceConfigVersion, :Remark, :VersionCount, :RefJobCount
|
1203
|
+
|
1204
|
+
def initialize(resourceid=nil, name=nil, resourcetype=nil, resourceloc=nil, region=nil, appid=nil, owneruin=nil, creatoruin=nil, createtime=nil, updatetime=nil, latestresourceconfigversion=nil, remark=nil, versioncount=nil, refjobcount=nil)
|
1205
|
+
@ResourceId = resourceid
|
1206
|
+
@Name = name
|
1207
|
+
@ResourceType = resourcetype
|
1208
|
+
@ResourceLoc = resourceloc
|
1209
|
+
@Region = region
|
1210
|
+
@AppId = appid
|
1211
|
+
@OwnerUin = owneruin
|
1212
|
+
@CreatorUin = creatoruin
|
1213
|
+
@CreateTime = createtime
|
1214
|
+
@UpdateTime = updatetime
|
1215
|
+
@LatestResourceConfigVersion = latestresourceconfigversion
|
1216
|
+
@Remark = remark
|
1217
|
+
@VersionCount = versioncount
|
1218
|
+
@RefJobCount = refjobcount
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
def deserialize(params)
|
1222
|
+
@ResourceId = params['ResourceId']
|
1223
|
+
@Name = params['Name']
|
1224
|
+
@ResourceType = params['ResourceType']
|
1225
|
+
unless params['ResourceLoc'].nil?
|
1226
|
+
@ResourceLoc = ResourceLoc.new
|
1227
|
+
@ResourceLoc.deserialize(params['ResourceLoc'])
|
1228
|
+
end
|
1229
|
+
@Region = params['Region']
|
1230
|
+
@AppId = params['AppId']
|
1231
|
+
@OwnerUin = params['OwnerUin']
|
1232
|
+
@CreatorUin = params['CreatorUin']
|
1233
|
+
@CreateTime = params['CreateTime']
|
1234
|
+
@UpdateTime = params['UpdateTime']
|
1235
|
+
@LatestResourceConfigVersion = params['LatestResourceConfigVersion']
|
1236
|
+
@Remark = params['Remark']
|
1237
|
+
@VersionCount = params['VersionCount']
|
1238
|
+
@RefJobCount = params['RefJobCount']
|
1239
|
+
end
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# 资源位置描述
|
1243
|
+
class ResourceLoc < TencentCloud::Common::AbstractModel
|
1244
|
+
# @param StorageType: 资源位置的存储类型,目前只支持1:COS
|
1245
|
+
# @type StorageType: Integer
|
1246
|
+
# @param Param: 描述资源位置的json
|
1247
|
+
# @type Param: :class:`Tencentcloud::Oceanus.v20190422.models.ResourceLocParam`
|
1248
|
+
|
1249
|
+
attr_accessor :StorageType, :Param
|
1250
|
+
|
1251
|
+
def initialize(storagetype=nil, param=nil)
|
1252
|
+
@StorageType = storagetype
|
1253
|
+
@Param = param
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
def deserialize(params)
|
1257
|
+
@StorageType = params['StorageType']
|
1258
|
+
unless params['Param'].nil?
|
1259
|
+
@Param = ResourceLocParam.new
|
1260
|
+
@Param.deserialize(params['Param'])
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# 资源参数描述
|
1266
|
+
class ResourceLocParam < TencentCloud::Common::AbstractModel
|
1267
|
+
# @param Bucket: 资源bucket
|
1268
|
+
# @type Bucket: String
|
1269
|
+
# @param Path: 资源路径
|
1270
|
+
# @type Path: String
|
1271
|
+
# @param Region: 资源所在地域,如果不填,则使用Resource的Region
|
1272
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1273
|
+
# @type Region: String
|
1274
|
+
|
1275
|
+
attr_accessor :Bucket, :Path, :Region
|
1276
|
+
|
1277
|
+
def initialize(bucket=nil, path=nil, region=nil)
|
1278
|
+
@Bucket = bucket
|
1279
|
+
@Path = path
|
1280
|
+
@Region = region
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
def deserialize(params)
|
1284
|
+
@Bucket = params['Bucket']
|
1285
|
+
@Path = params['Path']
|
1286
|
+
@Region = params['Region']
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# 资源引用参数
|
1291
|
+
class ResourceRef < TencentCloud::Common::AbstractModel
|
1292
|
+
# @param ResourceId: 资源ID
|
1293
|
+
# @type ResourceId: String
|
1294
|
+
# @param Version: 资源版本ID,-1表示使用最新版本
|
1295
|
+
# @type Version: Integer
|
1296
|
+
# @param Type: 引用资源类型,例如主资源设置为1,代表main class所在的jar包
|
1297
|
+
# @type Type: Integer
|
1298
|
+
|
1299
|
+
attr_accessor :ResourceId, :Version, :Type
|
1300
|
+
|
1301
|
+
def initialize(resourceid=nil, version=nil, type=nil)
|
1302
|
+
@ResourceId = resourceid
|
1303
|
+
@Version = version
|
1304
|
+
@Type = type
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
def deserialize(params)
|
1308
|
+
@ResourceId = params['ResourceId']
|
1309
|
+
@Version = params['Version']
|
1310
|
+
@Type = params['Type']
|
1311
|
+
end
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
# JobConfig引用资源信息
|
1315
|
+
class ResourceRefDetail < TencentCloud::Common::AbstractModel
|
1316
|
+
# @param ResourceId: 资源id
|
1317
|
+
# @type ResourceId: String
|
1318
|
+
# @param Version: 资源版本,-1表示使用最新版本
|
1319
|
+
# @type Version: Integer
|
1320
|
+
# @param Name: 资源名称
|
1321
|
+
# @type Name: String
|
1322
|
+
# @param Type: 1: 主资源
|
1323
|
+
# @type Type: Integer
|
1324
|
+
# @param SystemProvide: 1: 系统内置资源
|
1325
|
+
# @type SystemProvide: Integer
|
1326
|
+
|
1327
|
+
attr_accessor :ResourceId, :Version, :Name, :Type, :SystemProvide
|
1328
|
+
|
1329
|
+
def initialize(resourceid=nil, version=nil, name=nil, type=nil, systemprovide=nil)
|
1330
|
+
@ResourceId = resourceid
|
1331
|
+
@Version = version
|
1332
|
+
@Name = name
|
1333
|
+
@Type = type
|
1334
|
+
@SystemProvide = systemprovide
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
def deserialize(params)
|
1338
|
+
@ResourceId = params['ResourceId']
|
1339
|
+
@Version = params['Version']
|
1340
|
+
@Name = params['Name']
|
1341
|
+
@Type = params['Type']
|
1342
|
+
@SystemProvide = params['SystemProvide']
|
1343
|
+
end
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# 资源被Job 引用信息
|
1347
|
+
class ResourceRefJobInfo < TencentCloud::Common::AbstractModel
|
1348
|
+
# @param JobId: Job id
|
1349
|
+
# @type JobId: String
|
1350
|
+
# @param JobConfigVersion: Job配置版本
|
1351
|
+
# @type JobConfigVersion: Integer
|
1352
|
+
# @param ResourceVersion: 资源版本
|
1353
|
+
# @type ResourceVersion: Integer
|
1354
|
+
|
1355
|
+
attr_accessor :JobId, :JobConfigVersion, :ResourceVersion
|
1356
|
+
|
1357
|
+
def initialize(jobid=nil, jobconfigversion=nil, resourceversion=nil)
|
1358
|
+
@JobId = jobid
|
1359
|
+
@JobConfigVersion = jobconfigversion
|
1360
|
+
@ResourceVersion = resourceversion
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
def deserialize(params)
|
1364
|
+
@JobId = params['JobId']
|
1365
|
+
@JobConfigVersion = params['JobConfigVersion']
|
1366
|
+
@ResourceVersion = params['ResourceVersion']
|
1367
|
+
end
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
# 作业启动详情
|
1371
|
+
class RunJobDescription < TencentCloud::Common::AbstractModel
|
1372
|
+
# @param JobId: 作业Id
|
1373
|
+
# @type JobId: String
|
1374
|
+
# @param RunType: 运行类型,1:启动,2:恢复
|
1375
|
+
# @type RunType: Integer
|
1376
|
+
# @param StartMode: 已废弃。旧版 SQL 类型作业启动参数:指定数据源消费起始时间点
|
1377
|
+
# @type StartMode: String
|
1378
|
+
# @param JobConfigVersion: 当前作业的某个版本
|
1379
|
+
# @type JobConfigVersion: Integer
|
1380
|
+
|
1381
|
+
attr_accessor :JobId, :RunType, :StartMode, :JobConfigVersion
|
1382
|
+
|
1383
|
+
def initialize(jobid=nil, runtype=nil, startmode=nil, jobconfigversion=nil)
|
1384
|
+
@JobId = jobid
|
1385
|
+
@RunType = runtype
|
1386
|
+
@StartMode = startmode
|
1387
|
+
@JobConfigVersion = jobconfigversion
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
def deserialize(params)
|
1391
|
+
@JobId = params['JobId']
|
1392
|
+
@RunType = params['RunType']
|
1393
|
+
@StartMode = params['StartMode']
|
1394
|
+
@JobConfigVersion = params['JobConfigVersion']
|
1395
|
+
end
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
# RunJobs请求参数结构体
|
1399
|
+
class RunJobsRequest < TencentCloud::Common::AbstractModel
|
1400
|
+
# @param RunJobDescriptions: 批量启动作业的描述信息
|
1401
|
+
# @type RunJobDescriptions: Array
|
1402
|
+
|
1403
|
+
attr_accessor :RunJobDescriptions
|
1404
|
+
|
1405
|
+
def initialize(runjobdescriptions=nil)
|
1406
|
+
@RunJobDescriptions = runjobdescriptions
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
def deserialize(params)
|
1410
|
+
unless params['RunJobDescriptions'].nil?
|
1411
|
+
@RunJobDescriptions = []
|
1412
|
+
params['RunJobDescriptions'].each do |i|
|
1413
|
+
runjobdescription_tmp = RunJobDescription.new
|
1414
|
+
runjobdescription_tmp.deserialize(i)
|
1415
|
+
@RunJobDescriptions << runjobdescription_tmp
|
1416
|
+
end
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
# RunJobs返回参数结构体
|
1422
|
+
class RunJobsResponse < TencentCloud::Common::AbstractModel
|
1423
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1424
|
+
# @type RequestId: String
|
1425
|
+
|
1426
|
+
attr_accessor :RequestId
|
1427
|
+
|
1428
|
+
def initialize(requestid=nil)
|
1429
|
+
@RequestId = requestid
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
def deserialize(params)
|
1433
|
+
@RequestId = params['RequestId']
|
1434
|
+
end
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
# 停止作业的描述信息
|
1438
|
+
class StopJobDescription < TencentCloud::Common::AbstractModel
|
1439
|
+
# @param JobId: 作业Id
|
1440
|
+
# @type JobId: String
|
1441
|
+
# @param StopType: 停止类型,1 停止 2 暂停
|
1442
|
+
# @type StopType: Integer
|
1443
|
+
|
1444
|
+
attr_accessor :JobId, :StopType
|
1445
|
+
|
1446
|
+
def initialize(jobid=nil, stoptype=nil)
|
1447
|
+
@JobId = jobid
|
1448
|
+
@StopType = stoptype
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
def deserialize(params)
|
1452
|
+
@JobId = params['JobId']
|
1453
|
+
@StopType = params['StopType']
|
1454
|
+
end
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
# StopJobs请求参数结构体
|
1458
|
+
class StopJobsRequest < TencentCloud::Common::AbstractModel
|
1459
|
+
# @param StopJobDescriptions: 批量停止作业的描述信息
|
1460
|
+
# @type StopJobDescriptions: Array
|
1461
|
+
|
1462
|
+
attr_accessor :StopJobDescriptions
|
1463
|
+
|
1464
|
+
def initialize(stopjobdescriptions=nil)
|
1465
|
+
@StopJobDescriptions = stopjobdescriptions
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
def deserialize(params)
|
1469
|
+
unless params['StopJobDescriptions'].nil?
|
1470
|
+
@StopJobDescriptions = []
|
1471
|
+
params['StopJobDescriptions'].each do |i|
|
1472
|
+
stopjobdescription_tmp = StopJobDescription.new
|
1473
|
+
stopjobdescription_tmp.deserialize(i)
|
1474
|
+
@StopJobDescriptions << stopjobdescription_tmp
|
1475
|
+
end
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# StopJobs返回参数结构体
|
1481
|
+
class StopJobsResponse < TencentCloud::Common::AbstractModel
|
1482
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1483
|
+
# @type RequestId: String
|
1484
|
+
|
1485
|
+
attr_accessor :RequestId
|
1486
|
+
|
1487
|
+
def initialize(requestid=nil)
|
1488
|
+
@RequestId = requestid
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
def deserialize(params)
|
1492
|
+
@RequestId = params['RequestId']
|
1493
|
+
end
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
# 系统资源返回值
|
1497
|
+
class SystemResourceItem < TencentCloud::Common::AbstractModel
|
1498
|
+
# @param ResourceId: 资源ID
|
1499
|
+
# @type ResourceId: String
|
1500
|
+
# @param Name: 资源名称
|
1501
|
+
# @type Name: String
|
1502
|
+
# @param ResourceType: 资源类型。1 表示 JAR 包,目前只支持该值。
|
1503
|
+
# @type ResourceType: Integer
|
1504
|
+
# @param Remark: 资源备注
|
1505
|
+
# @type Remark: String
|
1506
|
+
# @param Region: 资源所属地域
|
1507
|
+
# @type Region: String
|
1508
|
+
# @param LatestResourceConfigVersion: 资源的最新版本
|
1509
|
+
# @type LatestResourceConfigVersion: Integer
|
1510
|
+
|
1511
|
+
attr_accessor :ResourceId, :Name, :ResourceType, :Remark, :Region, :LatestResourceConfigVersion
|
1512
|
+
|
1513
|
+
def initialize(resourceid=nil, name=nil, resourcetype=nil, remark=nil, region=nil, latestresourceconfigversion=nil)
|
1514
|
+
@ResourceId = resourceid
|
1515
|
+
@Name = name
|
1516
|
+
@ResourceType = resourcetype
|
1517
|
+
@Remark = remark
|
1518
|
+
@Region = region
|
1519
|
+
@LatestResourceConfigVersion = latestresourceconfigversion
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
def deserialize(params)
|
1523
|
+
@ResourceId = params['ResourceId']
|
1524
|
+
@Name = params['Name']
|
1525
|
+
@ResourceType = params['ResourceType']
|
1526
|
+
@Remark = params['Remark']
|
1527
|
+
@Region = params['Region']
|
1528
|
+
@LatestResourceConfigVersion = params['LatestResourceConfigVersion']
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
end
|
1533
|
+
end
|
1534
|
+
end
|
1535
|
+
|