1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package v20190422
16
17import (
18    "encoding/json"
19    tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
20    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
21)
22
23type CreateJobConfigRequest struct {
24	*tchttp.BaseRequest
25
26	// 作业Id
27	JobId *string `json:"JobId,omitempty" name:"JobId"`
28
29	// 主类
30	EntrypointClass *string `json:"EntrypointClass,omitempty" name:"EntrypointClass"`
31
32	// 主类入参
33	ProgramArgs *string `json:"ProgramArgs,omitempty" name:"ProgramArgs"`
34
35	// 备注
36	Remark *string `json:"Remark,omitempty" name:"Remark"`
37
38	// 资源引用数组
39	ResourceRefs []*ResourceRef `json:"ResourceRefs,omitempty" name:"ResourceRefs"`
40
41	// 作业默认并行度
42	DefaultParallelism *uint64 `json:"DefaultParallelism,omitempty" name:"DefaultParallelism"`
43
44	// 系统参数
45	Properties []*Property `json:"Properties,omitempty" name:"Properties"`
46
47	// 1: 作业配置达到上限之后,自动删除可删除的最早版本
48	AutoDelete *int64 `json:"AutoDelete,omitempty" name:"AutoDelete"`
49
50	// 作业使用的 COS 存储桶名
51	COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"`
52
53	// 是否采集作业日志
54	LogCollect *bool `json:"LogCollect,omitempty" name:"LogCollect"`
55
56	// JobManager规格
57	JobManagerSpec *float64 `json:"JobManagerSpec,omitempty" name:"JobManagerSpec"`
58
59	// TaskManager规格
60	TaskManagerSpec *float64 `json:"TaskManagerSpec,omitempty" name:"TaskManagerSpec"`
61}
62
63func (r *CreateJobConfigRequest) ToJsonString() string {
64    b, _ := json.Marshal(r)
65    return string(b)
66}
67
68// FromJsonString It is highly **NOT** recommended to use this function
69// because it has no param check, nor strict type check
70func (r *CreateJobConfigRequest) FromJsonString(s string) error {
71	f := make(map[string]interface{})
72	if err := json.Unmarshal([]byte(s), &f); err != nil {
73		return err
74	}
75	delete(f, "JobId")
76	delete(f, "EntrypointClass")
77	delete(f, "ProgramArgs")
78	delete(f, "Remark")
79	delete(f, "ResourceRefs")
80	delete(f, "DefaultParallelism")
81	delete(f, "Properties")
82	delete(f, "AutoDelete")
83	delete(f, "COSBucket")
84	delete(f, "LogCollect")
85	delete(f, "JobManagerSpec")
86	delete(f, "TaskManagerSpec")
87	if len(f) > 0 {
88		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateJobConfigRequest has unknown keys!", "")
89	}
90	return json.Unmarshal([]byte(s), &r)
91}
92
93type CreateJobConfigResponse struct {
94	*tchttp.BaseResponse
95	Response *struct {
96
97		// 作业配置版本号
98		Version *uint64 `json:"Version,omitempty" name:"Version"`
99
100		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
101		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
102	} `json:"Response"`
103}
104
105func (r *CreateJobConfigResponse) ToJsonString() string {
106    b, _ := json.Marshal(r)
107    return string(b)
108}
109
110// FromJsonString It is highly **NOT** recommended to use this function
111// because it has no param check, nor strict type check
112func (r *CreateJobConfigResponse) FromJsonString(s string) error {
113	return json.Unmarshal([]byte(s), &r)
114}
115
116type CreateJobRequest struct {
117	*tchttp.BaseRequest
118
119	// 作业名称,允许输入长度小于等于50个字符的中文、英文、数字、-(横线)、_(下划线)、.(点),且符号必须半角字符。注意作业名不能和现有作业同名
120	Name *string `json:"Name,omitempty" name:"Name"`
121
122	// 作业的类型,1 表示 SQL 作业,2 表示 JAR 作业
123	JobType *int64 `json:"JobType,omitempty" name:"JobType"`
124
125	// 集群的类型,1 表示共享集群,2 表示独享集群
126	ClusterType *int64 `json:"ClusterType,omitempty" name:"ClusterType"`
127
128	// 当 ClusterType=2 时,必选,用来指定该作业提交的独享集群 ID
129	ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
130
131	// 设置每 CU 的内存规格,单位为 GB,支持 2、4、8、16(需申请开通白名单后使用)。默认为 4,即 1 CU 对应 4 GB 的运行内存
132	CuMem *uint64 `json:"CuMem,omitempty" name:"CuMem"`
133
134	// 作业的备注信息,可以随意设置
135	Remark *string `json:"Remark,omitempty" name:"Remark"`
136
137	// 作业名所属文件夹ID,根目录为"root"
138	FolderId *string `json:"FolderId,omitempty" name:"FolderId"`
139}
140
141func (r *CreateJobRequest) ToJsonString() string {
142    b, _ := json.Marshal(r)
143    return string(b)
144}
145
146// FromJsonString It is highly **NOT** recommended to use this function
147// because it has no param check, nor strict type check
148func (r *CreateJobRequest) FromJsonString(s string) error {
149	f := make(map[string]interface{})
150	if err := json.Unmarshal([]byte(s), &f); err != nil {
151		return err
152	}
153	delete(f, "Name")
154	delete(f, "JobType")
155	delete(f, "ClusterType")
156	delete(f, "ClusterId")
157	delete(f, "CuMem")
158	delete(f, "Remark")
159	delete(f, "FolderId")
160	if len(f) > 0 {
161		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateJobRequest has unknown keys!", "")
162	}
163	return json.Unmarshal([]byte(s), &r)
164}
165
166type CreateJobResponse struct {
167	*tchttp.BaseResponse
168	Response *struct {
169
170		// 作业Id
171		JobId *string `json:"JobId,omitempty" name:"JobId"`
172
173		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
174		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
175	} `json:"Response"`
176}
177
178func (r *CreateJobResponse) ToJsonString() string {
179    b, _ := json.Marshal(r)
180    return string(b)
181}
182
183// FromJsonString It is highly **NOT** recommended to use this function
184// because it has no param check, nor strict type check
185func (r *CreateJobResponse) FromJsonString(s string) error {
186	return json.Unmarshal([]byte(s), &r)
187}
188
189type CreateResourceConfigRequest struct {
190	*tchttp.BaseRequest
191
192	// 资源ID
193	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
194
195	// 位置信息
196	ResourceLoc *ResourceLoc `json:"ResourceLoc,omitempty" name:"ResourceLoc"`
197
198	// 资源描述信息
199	Remark *string `json:"Remark,omitempty" name:"Remark"`
200
201	// 1: 资源版本达到上限,自动删除最早可删除的版本
202	AutoDelete *int64 `json:"AutoDelete,omitempty" name:"AutoDelete"`
203}
204
205func (r *CreateResourceConfigRequest) ToJsonString() string {
206    b, _ := json.Marshal(r)
207    return string(b)
208}
209
210// FromJsonString It is highly **NOT** recommended to use this function
211// because it has no param check, nor strict type check
212func (r *CreateResourceConfigRequest) FromJsonString(s string) error {
213	f := make(map[string]interface{})
214	if err := json.Unmarshal([]byte(s), &f); err != nil {
215		return err
216	}
217	delete(f, "ResourceId")
218	delete(f, "ResourceLoc")
219	delete(f, "Remark")
220	delete(f, "AutoDelete")
221	if len(f) > 0 {
222		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceConfigRequest has unknown keys!", "")
223	}
224	return json.Unmarshal([]byte(s), &r)
225}
226
227type CreateResourceConfigResponse struct {
228	*tchttp.BaseResponse
229	Response *struct {
230
231		// 资源版本ID
232		Version *int64 `json:"Version,omitempty" name:"Version"`
233
234		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
235		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
236	} `json:"Response"`
237}
238
239func (r *CreateResourceConfigResponse) ToJsonString() string {
240    b, _ := json.Marshal(r)
241    return string(b)
242}
243
244// FromJsonString It is highly **NOT** recommended to use this function
245// because it has no param check, nor strict type check
246func (r *CreateResourceConfigResponse) FromJsonString(s string) error {
247	return json.Unmarshal([]byte(s), &r)
248}
249
250type CreateResourceRequest struct {
251	*tchttp.BaseRequest
252
253	// 资源位置
254	ResourceLoc *ResourceLoc `json:"ResourceLoc,omitempty" name:"ResourceLoc"`
255
256	// 资源名称
257	Name *string `json:"Name,omitempty" name:"Name"`
258
259	// 资源类型。目前只支持 JAR,取值为 1
260	ResourceType *int64 `json:"ResourceType,omitempty" name:"ResourceType"`
261
262	// 资源描述
263	Remark *string `json:"Remark,omitempty" name:"Remark"`
264
265	// 资源版本描述
266	ResourceConfigRemark *string `json:"ResourceConfigRemark,omitempty" name:"ResourceConfigRemark"`
267}
268
269func (r *CreateResourceRequest) ToJsonString() string {
270    b, _ := json.Marshal(r)
271    return string(b)
272}
273
274// FromJsonString It is highly **NOT** recommended to use this function
275// because it has no param check, nor strict type check
276func (r *CreateResourceRequest) FromJsonString(s string) error {
277	f := make(map[string]interface{})
278	if err := json.Unmarshal([]byte(s), &f); err != nil {
279		return err
280	}
281	delete(f, "ResourceLoc")
282	delete(f, "Name")
283	delete(f, "ResourceType")
284	delete(f, "Remark")
285	delete(f, "ResourceConfigRemark")
286	if len(f) > 0 {
287		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceRequest has unknown keys!", "")
288	}
289	return json.Unmarshal([]byte(s), &r)
290}
291
292type CreateResourceResponse struct {
293	*tchttp.BaseResponse
294	Response *struct {
295
296		// 资源ID
297		ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
298
299		// 资源版本
300		Version *int64 `json:"Version,omitempty" name:"Version"`
301
302		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
303		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
304	} `json:"Response"`
305}
306
307func (r *CreateResourceResponse) ToJsonString() string {
308    b, _ := json.Marshal(r)
309    return string(b)
310}
311
312// FromJsonString It is highly **NOT** recommended to use this function
313// because it has no param check, nor strict type check
314func (r *CreateResourceResponse) FromJsonString(s string) error {
315	return json.Unmarshal([]byte(s), &r)
316}
317
318type DeleteResourceConfigsRequest struct {
319	*tchttp.BaseRequest
320
321	// 资源ID
322	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
323
324	// 资源版本数组
325	ResourceConfigVersions []*int64 `json:"ResourceConfigVersions,omitempty" name:"ResourceConfigVersions"`
326}
327
328func (r *DeleteResourceConfigsRequest) ToJsonString() string {
329    b, _ := json.Marshal(r)
330    return string(b)
331}
332
333// FromJsonString It is highly **NOT** recommended to use this function
334// because it has no param check, nor strict type check
335func (r *DeleteResourceConfigsRequest) FromJsonString(s string) error {
336	f := make(map[string]interface{})
337	if err := json.Unmarshal([]byte(s), &f); err != nil {
338		return err
339	}
340	delete(f, "ResourceId")
341	delete(f, "ResourceConfigVersions")
342	if len(f) > 0 {
343		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceConfigsRequest has unknown keys!", "")
344	}
345	return json.Unmarshal([]byte(s), &r)
346}
347
348type DeleteResourceConfigsResponse struct {
349	*tchttp.BaseResponse
350	Response *struct {
351
352		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
353		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
354	} `json:"Response"`
355}
356
357func (r *DeleteResourceConfigsResponse) ToJsonString() string {
358    b, _ := json.Marshal(r)
359    return string(b)
360}
361
362// FromJsonString It is highly **NOT** recommended to use this function
363// because it has no param check, nor strict type check
364func (r *DeleteResourceConfigsResponse) FromJsonString(s string) error {
365	return json.Unmarshal([]byte(s), &r)
366}
367
368type DeleteResourcesRequest struct {
369	*tchttp.BaseRequest
370
371	// 待删除资源ID列表
372	ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
373}
374
375func (r *DeleteResourcesRequest) ToJsonString() string {
376    b, _ := json.Marshal(r)
377    return string(b)
378}
379
380// FromJsonString It is highly **NOT** recommended to use this function
381// because it has no param check, nor strict type check
382func (r *DeleteResourcesRequest) FromJsonString(s string) error {
383	f := make(map[string]interface{})
384	if err := json.Unmarshal([]byte(s), &f); err != nil {
385		return err
386	}
387	delete(f, "ResourceIds")
388	if len(f) > 0 {
389		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourcesRequest has unknown keys!", "")
390	}
391	return json.Unmarshal([]byte(s), &r)
392}
393
394type DeleteResourcesResponse struct {
395	*tchttp.BaseResponse
396	Response *struct {
397
398		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
399		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
400	} `json:"Response"`
401}
402
403func (r *DeleteResourcesResponse) ToJsonString() string {
404    b, _ := json.Marshal(r)
405    return string(b)
406}
407
408// FromJsonString It is highly **NOT** recommended to use this function
409// because it has no param check, nor strict type check
410func (r *DeleteResourcesResponse) FromJsonString(s string) error {
411	return json.Unmarshal([]byte(s), &r)
412}
413
414type DeleteTableConfigRequest struct {
415	*tchttp.BaseRequest
416
417	// 作业ID
418	JobId *string `json:"JobId,omitempty" name:"JobId"`
419
420	// 调试作业ID
421	DebugId *int64 `json:"DebugId,omitempty" name:"DebugId"`
422
423	// 表名
424	TableName *string `json:"TableName,omitempty" name:"TableName"`
425}
426
427func (r *DeleteTableConfigRequest) ToJsonString() string {
428    b, _ := json.Marshal(r)
429    return string(b)
430}
431
432// FromJsonString It is highly **NOT** recommended to use this function
433// because it has no param check, nor strict type check
434func (r *DeleteTableConfigRequest) FromJsonString(s string) error {
435	f := make(map[string]interface{})
436	if err := json.Unmarshal([]byte(s), &f); err != nil {
437		return err
438	}
439	delete(f, "JobId")
440	delete(f, "DebugId")
441	delete(f, "TableName")
442	if len(f) > 0 {
443		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTableConfigRequest has unknown keys!", "")
444	}
445	return json.Unmarshal([]byte(s), &r)
446}
447
448type DeleteTableConfigResponse struct {
449	*tchttp.BaseResponse
450	Response *struct {
451
452		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
453		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
454	} `json:"Response"`
455}
456
457func (r *DeleteTableConfigResponse) ToJsonString() string {
458    b, _ := json.Marshal(r)
459    return string(b)
460}
461
462// FromJsonString It is highly **NOT** recommended to use this function
463// because it has no param check, nor strict type check
464func (r *DeleteTableConfigResponse) FromJsonString(s string) error {
465	return json.Unmarshal([]byte(s), &r)
466}
467
468type DescribeJobConfigsRequest struct {
469	*tchttp.BaseRequest
470
471	// 作业Id
472	JobId *string `json:"JobId,omitempty" name:"JobId"`
473
474	// 作业配置版本
475	JobConfigVersions []*uint64 `json:"JobConfigVersions,omitempty" name:"JobConfigVersions"`
476
477	// 偏移量,默认0
478	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
479
480	// 分页大小,默认20,最大100
481	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
482
483	// 过滤条件
484	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
485
486	// true 表示只展示草稿
487	OnlyDraft *bool `json:"OnlyDraft,omitempty" name:"OnlyDraft"`
488}
489
490func (r *DescribeJobConfigsRequest) ToJsonString() string {
491    b, _ := json.Marshal(r)
492    return string(b)
493}
494
495// FromJsonString It is highly **NOT** recommended to use this function
496// because it has no param check, nor strict type check
497func (r *DescribeJobConfigsRequest) FromJsonString(s string) error {
498	f := make(map[string]interface{})
499	if err := json.Unmarshal([]byte(s), &f); err != nil {
500		return err
501	}
502	delete(f, "JobId")
503	delete(f, "JobConfigVersions")
504	delete(f, "Offset")
505	delete(f, "Limit")
506	delete(f, "Filters")
507	delete(f, "OnlyDraft")
508	if len(f) > 0 {
509		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeJobConfigsRequest has unknown keys!", "")
510	}
511	return json.Unmarshal([]byte(s), &r)
512}
513
514type DescribeJobConfigsResponse struct {
515	*tchttp.BaseResponse
516	Response *struct {
517
518		// 总的配置版本数量
519		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
520
521		// 作业配置列表
522		JobConfigSet []*JobConfig `json:"JobConfigSet,omitempty" name:"JobConfigSet"`
523
524		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
525		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
526	} `json:"Response"`
527}
528
529func (r *DescribeJobConfigsResponse) ToJsonString() string {
530    b, _ := json.Marshal(r)
531    return string(b)
532}
533
534// FromJsonString It is highly **NOT** recommended to use this function
535// because it has no param check, nor strict type check
536func (r *DescribeJobConfigsResponse) FromJsonString(s string) error {
537	return json.Unmarshal([]byte(s), &r)
538}
539
540type DescribeJobsRequest struct {
541	*tchttp.BaseRequest
542
543	// 按照一个或者多个作业ID查询。作业ID形如:cql-11112222,每次请求的作业上限为100。参数不支持同时指定JobIds和Filters。
544	JobIds []*string `json:"JobIds,omitempty" name:"JobIds"`
545
546	// 过滤条件,支持的 Filter.Name 为:作业名 Name、作业状态 Status、所属集群 ClusterId。每次请求的 Filters 个数的上限为 3,Filter.Values 的个数上限为 5。参数不支持同时指定 JobIds 和 Filters。
547	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
548
549	// 偏移量,默认为0
550	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
551
552	// 分页大小,默认为20,最大值为100
553	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
554}
555
556func (r *DescribeJobsRequest) ToJsonString() string {
557    b, _ := json.Marshal(r)
558    return string(b)
559}
560
561// FromJsonString It is highly **NOT** recommended to use this function
562// because it has no param check, nor strict type check
563func (r *DescribeJobsRequest) FromJsonString(s string) error {
564	f := make(map[string]interface{})
565	if err := json.Unmarshal([]byte(s), &f); err != nil {
566		return err
567	}
568	delete(f, "JobIds")
569	delete(f, "Filters")
570	delete(f, "Offset")
571	delete(f, "Limit")
572	if len(f) > 0 {
573		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeJobsRequest has unknown keys!", "")
574	}
575	return json.Unmarshal([]byte(s), &r)
576}
577
578type DescribeJobsResponse struct {
579	*tchttp.BaseResponse
580	Response *struct {
581
582		// 作业总数
583		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
584
585		// 作业列表
586		JobSet []*JobV1 `json:"JobSet,omitempty" name:"JobSet"`
587
588		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
589		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
590	} `json:"Response"`
591}
592
593func (r *DescribeJobsResponse) ToJsonString() string {
594    b, _ := json.Marshal(r)
595    return string(b)
596}
597
598// FromJsonString It is highly **NOT** recommended to use this function
599// because it has no param check, nor strict type check
600func (r *DescribeJobsResponse) FromJsonString(s string) error {
601	return json.Unmarshal([]byte(s), &r)
602}
603
604type DescribeResourceConfigsRequest struct {
605	*tchttp.BaseRequest
606
607	// 资源ID
608	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
609
610	// 偏移量,仅当设置 Limit 时该参数有效
611	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
612
613	// 返回值大小,不填则返回全量数据
614	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
615
616	// 资源配置Versions集合
617	ResourceConfigVersions []*int64 `json:"ResourceConfigVersions,omitempty" name:"ResourceConfigVersions"`
618
619	// 作业配置版本
620	JobConfigVersion *int64 `json:"JobConfigVersion,omitempty" name:"JobConfigVersion"`
621
622	// 作业ID
623	JobId *string `json:"JobId,omitempty" name:"JobId"`
624}
625
626func (r *DescribeResourceConfigsRequest) ToJsonString() string {
627    b, _ := json.Marshal(r)
628    return string(b)
629}
630
631// FromJsonString It is highly **NOT** recommended to use this function
632// because it has no param check, nor strict type check
633func (r *DescribeResourceConfigsRequest) FromJsonString(s string) error {
634	f := make(map[string]interface{})
635	if err := json.Unmarshal([]byte(s), &f); err != nil {
636		return err
637	}
638	delete(f, "ResourceId")
639	delete(f, "Offset")
640	delete(f, "Limit")
641	delete(f, "ResourceConfigVersions")
642	delete(f, "JobConfigVersion")
643	delete(f, "JobId")
644	if len(f) > 0 {
645		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeResourceConfigsRequest has unknown keys!", "")
646	}
647	return json.Unmarshal([]byte(s), &r)
648}
649
650type DescribeResourceConfigsResponse struct {
651	*tchttp.BaseResponse
652	Response *struct {
653
654		// 资源配置描述数组
655		ResourceConfigSet []*ResourceConfigItem `json:"ResourceConfigSet,omitempty" name:"ResourceConfigSet"`
656
657		// 资源配置数量
658		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
659
660		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
661		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
662	} `json:"Response"`
663}
664
665func (r *DescribeResourceConfigsResponse) ToJsonString() string {
666    b, _ := json.Marshal(r)
667    return string(b)
668}
669
670// FromJsonString It is highly **NOT** recommended to use this function
671// because it has no param check, nor strict type check
672func (r *DescribeResourceConfigsResponse) FromJsonString(s string) error {
673	return json.Unmarshal([]byte(s), &r)
674}
675
676type DescribeResourceRelatedJobsRequest struct {
677	*tchttp.BaseRequest
678
679	// 资源ID
680	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
681
682	// 默认0;   1: 按照作业版本创建时间降序
683	DESCByJobConfigCreateTime *int64 `json:"DESCByJobConfigCreateTime,omitempty" name:"DESCByJobConfigCreateTime"`
684
685	// 偏移量,默认为0
686	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
687
688	// 分页大小,默认为20,最大值为100
689	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
690}
691
692func (r *DescribeResourceRelatedJobsRequest) ToJsonString() string {
693    b, _ := json.Marshal(r)
694    return string(b)
695}
696
697// FromJsonString It is highly **NOT** recommended to use this function
698// because it has no param check, nor strict type check
699func (r *DescribeResourceRelatedJobsRequest) FromJsonString(s string) error {
700	f := make(map[string]interface{})
701	if err := json.Unmarshal([]byte(s), &f); err != nil {
702		return err
703	}
704	delete(f, "ResourceId")
705	delete(f, "DESCByJobConfigCreateTime")
706	delete(f, "Offset")
707	delete(f, "Limit")
708	if len(f) > 0 {
709		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeResourceRelatedJobsRequest has unknown keys!", "")
710	}
711	return json.Unmarshal([]byte(s), &r)
712}
713
714type DescribeResourceRelatedJobsResponse struct {
715	*tchttp.BaseResponse
716	Response *struct {
717
718		// 总数
719		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
720
721		// 关联作业信息
722		RefJobInfos []*ResourceRefJobInfo `json:"RefJobInfos,omitempty" name:"RefJobInfos"`
723
724		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
725		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
726	} `json:"Response"`
727}
728
729func (r *DescribeResourceRelatedJobsResponse) ToJsonString() string {
730    b, _ := json.Marshal(r)
731    return string(b)
732}
733
734// FromJsonString It is highly **NOT** recommended to use this function
735// because it has no param check, nor strict type check
736func (r *DescribeResourceRelatedJobsResponse) FromJsonString(s string) error {
737	return json.Unmarshal([]byte(s), &r)
738}
739
740type DescribeResourcesRequest struct {
741	*tchttp.BaseRequest
742
743	// 需要查询的资源ID数组,数量不超过100个。如果填写了该参数则忽略Filters参数。
744	ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
745
746	// 偏移量,仅当设置 Limit 参数时有效
747	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
748
749	// 条数限制。如果不填,默认返回 20 条
750	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
751
752	// <li><strong>ResourceName</strong></li>
753	// <p style="padding-left: 30px;">按照资源名字过滤,支持模糊过滤。传入的过滤名字不超过5个</p><p style="padding-left: 30px;">类型: String</p><p style="padding-left: 30px;">必选: 否</p>
754	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
755}
756
757func (r *DescribeResourcesRequest) ToJsonString() string {
758    b, _ := json.Marshal(r)
759    return string(b)
760}
761
762// FromJsonString It is highly **NOT** recommended to use this function
763// because it has no param check, nor strict type check
764func (r *DescribeResourcesRequest) FromJsonString(s string) error {
765	f := make(map[string]interface{})
766	if err := json.Unmarshal([]byte(s), &f); err != nil {
767		return err
768	}
769	delete(f, "ResourceIds")
770	delete(f, "Offset")
771	delete(f, "Limit")
772	delete(f, "Filters")
773	if len(f) > 0 {
774		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeResourcesRequest has unknown keys!", "")
775	}
776	return json.Unmarshal([]byte(s), &r)
777}
778
779type DescribeResourcesResponse struct {
780	*tchttp.BaseResponse
781	Response *struct {
782
783		// 资源详细信息集合
784		ResourceSet []*ResourceItem `json:"ResourceSet,omitempty" name:"ResourceSet"`
785
786		// 总数量
787		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
788
789		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
790		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
791	} `json:"Response"`
792}
793
794func (r *DescribeResourcesResponse) ToJsonString() string {
795    b, _ := json.Marshal(r)
796    return string(b)
797}
798
799// FromJsonString It is highly **NOT** recommended to use this function
800// because it has no param check, nor strict type check
801func (r *DescribeResourcesResponse) FromJsonString(s string) error {
802	return json.Unmarshal([]byte(s), &r)
803}
804
805type DescribeSystemResourcesRequest struct {
806	*tchttp.BaseRequest
807
808	// 需要查询的资源ID数组
809	ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
810
811	// 偏移量,仅当设置 Limit 参数时有效
812	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
813
814	// 条数限制,默认返回 20 条
815	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
816
817	// 查询资源配置列表, 如果不填写,返回该 ResourceIds.N 下所有作业配置列表
818	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
819
820	// 集群ID
821	ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
822}
823
824func (r *DescribeSystemResourcesRequest) ToJsonString() string {
825    b, _ := json.Marshal(r)
826    return string(b)
827}
828
829// FromJsonString It is highly **NOT** recommended to use this function
830// because it has no param check, nor strict type check
831func (r *DescribeSystemResourcesRequest) FromJsonString(s string) error {
832	f := make(map[string]interface{})
833	if err := json.Unmarshal([]byte(s), &f); err != nil {
834		return err
835	}
836	delete(f, "ResourceIds")
837	delete(f, "Offset")
838	delete(f, "Limit")
839	delete(f, "Filters")
840	delete(f, "ClusterId")
841	if len(f) > 0 {
842		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSystemResourcesRequest has unknown keys!", "")
843	}
844	return json.Unmarshal([]byte(s), &r)
845}
846
847type DescribeSystemResourcesResponse struct {
848	*tchttp.BaseResponse
849	Response *struct {
850
851		// 资源详细信息集合
852		ResourceSet []*SystemResourceItem `json:"ResourceSet,omitempty" name:"ResourceSet"`
853
854		// 总数量
855		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
856
857		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
858		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
859	} `json:"Response"`
860}
861
862func (r *DescribeSystemResourcesResponse) ToJsonString() string {
863    b, _ := json.Marshal(r)
864    return string(b)
865}
866
867// FromJsonString It is highly **NOT** recommended to use this function
868// because it has no param check, nor strict type check
869func (r *DescribeSystemResourcesResponse) FromJsonString(s string) error {
870	return json.Unmarshal([]byte(s), &r)
871}
872
873type Filter struct {
874
875	// 要过滤的字段
876	Name *string `json:"Name,omitempty" name:"Name"`
877
878	// 字段的过滤值
879	Values []*string `json:"Values,omitempty" name:"Values"`
880}
881
882type JobConfig struct {
883
884	// 作业Id
885	JobId *string `json:"JobId,omitempty" name:"JobId"`
886
887	// 主类
888	// 注意:此字段可能返回 null,表示取不到有效值。
889	EntrypointClass *string `json:"EntrypointClass,omitempty" name:"EntrypointClass"`
890
891	// 主类入参
892	// 注意:此字段可能返回 null,表示取不到有效值。
893	ProgramArgs *string `json:"ProgramArgs,omitempty" name:"ProgramArgs"`
894
895	// 备注
896	// 注意:此字段可能返回 null,表示取不到有效值。
897	Remark *string `json:"Remark,omitempty" name:"Remark"`
898
899	// 作业配置创建时间
900	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
901
902	// 作业配置的版本号
903	Version *int64 `json:"Version,omitempty" name:"Version"`
904
905	// 作业默认并行度
906	// 注意:此字段可能返回 null,表示取不到有效值。
907	DefaultParallelism *uint64 `json:"DefaultParallelism,omitempty" name:"DefaultParallelism"`
908
909	// 系统参数
910	// 注意:此字段可能返回 null,表示取不到有效值。
911	Properties []*Property `json:"Properties,omitempty" name:"Properties"`
912
913	// 引用资源
914	// 注意:此字段可能返回 null,表示取不到有效值。
915	ResourceRefDetails []*ResourceRefDetail `json:"ResourceRefDetails,omitempty" name:"ResourceRefDetails"`
916
917	// 创建者uin
918	// 注意:此字段可能返回 null,表示取不到有效值。
919	CreatorUin *string `json:"CreatorUin,omitempty" name:"CreatorUin"`
920
921	// 作业配置上次启动时间
922	// 注意:此字段可能返回 null,表示取不到有效值。
923	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
924
925	// 作业绑定的存储桶
926	// 注意:此字段可能返回 null,表示取不到有效值。
927	COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"`
928
929	// 是否启用日志收集,0-未启用,1-已启用,2-历史集群未设置日志集,3-历史集群已开启
930	// 注意:此字段可能返回 null,表示取不到有效值。
931	LogCollect *int64 `json:"LogCollect,omitempty" name:"LogCollect"`
932
933	// 作业的最大并行度
934	// 注意:此字段可能返回 null,表示取不到有效值。
935	MaxParallelism *uint64 `json:"MaxParallelism,omitempty" name:"MaxParallelism"`
936
937	// JobManager规格
938	// 注意:此字段可能返回 null,表示取不到有效值。
939	JobManagerSpec *float64 `json:"JobManagerSpec,omitempty" name:"JobManagerSpec"`
940
941	// TaskManager规格
942	// 注意:此字段可能返回 null,表示取不到有效值。
943	TaskManagerSpec *float64 `json:"TaskManagerSpec,omitempty" name:"TaskManagerSpec"`
944}
945
946type JobV1 struct {
947
948	// 作业ID
949	// 注意:此字段可能返回 null,表示取不到有效值。
950	JobId *string `json:"JobId,omitempty" name:"JobId"`
951
952	// 地域
953	// 注意:此字段可能返回 null,表示取不到有效值。
954	Region *string `json:"Region,omitempty" name:"Region"`
955
956	// 可用区
957	// 注意:此字段可能返回 null,表示取不到有效值。
958	Zone *string `json:"Zone,omitempty" name:"Zone"`
959
960	// 用户AppId
961	// 注意:此字段可能返回 null,表示取不到有效值。
962	AppId *int64 `json:"AppId,omitempty" name:"AppId"`
963
964	// 用户UIN
965	// 注意:此字段可能返回 null,表示取不到有效值。
966	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`
967
968	// 创建者UIN
969	// 注意:此字段可能返回 null,表示取不到有效值。
970	CreatorUin *string `json:"CreatorUin,omitempty" name:"CreatorUin"`
971
972	// 作业名字
973	// 注意:此字段可能返回 null,表示取不到有效值。
974	Name *string `json:"Name,omitempty" name:"Name"`
975
976	// 作业类型,1:sql作业,2:Jar作业
977	// 注意:此字段可能返回 null,表示取不到有效值。
978	JobType *int64 `json:"JobType,omitempty" name:"JobType"`
979
980	// 作业状态,1:未初始化,2:未发布,3:操作中,4:运行中,5:停止,6:暂停,-1:故障
981	// 注意:此字段可能返回 null,表示取不到有效值。
982	Status *int64 `json:"Status,omitempty" name:"Status"`
983
984	// 作业创建时间
985	// 注意:此字段可能返回 null,表示取不到有效值。
986	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
987
988	// 作业启动时间
989	// 注意:此字段可能返回 null,表示取不到有效值。
990	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
991
992	// 作业停止时间
993	// 注意:此字段可能返回 null,表示取不到有效值。
994	StopTime *string `json:"StopTime,omitempty" name:"StopTime"`
995
996	// 作业更新时间
997	// 注意:此字段可能返回 null,表示取不到有效值。
998	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
999
1000	// 作业累计运行时间
1001	// 注意:此字段可能返回 null,表示取不到有效值。
1002	TotalRunMillis *int64 `json:"TotalRunMillis,omitempty" name:"TotalRunMillis"`
1003
1004	// 备注信息
1005	// 注意:此字段可能返回 null,表示取不到有效值。
1006	Remark *string `json:"Remark,omitempty" name:"Remark"`
1007
1008	// 操作错误提示信息
1009	// 注意:此字段可能返回 null,表示取不到有效值。
1010	LastOpResult *string `json:"LastOpResult,omitempty" name:"LastOpResult"`
1011
1012	// 集群名字
1013	// 注意:此字段可能返回 null,表示取不到有效值。
1014	ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
1015
1016	// 最新配置版本号
1017	// 注意:此字段可能返回 null,表示取不到有效值。
1018	LatestJobConfigVersion *int64 `json:"LatestJobConfigVersion,omitempty" name:"LatestJobConfigVersion"`
1019
1020	// 已发布的配置版本
1021	// 注意:此字段可能返回 null,表示取不到有效值。
1022	PublishedJobConfigVersion *int64 `json:"PublishedJobConfigVersion,omitempty" name:"PublishedJobConfigVersion"`
1023
1024	// 运行的CU数量
1025	// 注意:此字段可能返回 null,表示取不到有效值。
1026	RunningCuNum *int64 `json:"RunningCuNum,omitempty" name:"RunningCuNum"`
1027
1028	// 作业内存规格
1029	// 注意:此字段可能返回 null,表示取不到有效值。
1030	CuMem *int64 `json:"CuMem,omitempty" name:"CuMem"`
1031
1032	// 作业状态描述
1033	// 注意:此字段可能返回 null,表示取不到有效值。
1034	StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
1035
1036	// 运行状态时表示单次运行时间
1037	// 注意:此字段可能返回 null,表示取不到有效值。
1038	CurrentRunMillis *int64 `json:"CurrentRunMillis,omitempty" name:"CurrentRunMillis"`
1039
1040	// 作业所在的集群ID
1041	// 注意:此字段可能返回 null,表示取不到有效值。
1042	ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
1043
1044	// 作业管理WEB UI 入口
1045	// 注意:此字段可能返回 null,表示取不到有效值。
1046	WebUIUrl *string `json:"WebUIUrl,omitempty" name:"WebUIUrl"`
1047
1048	// 作业所在集群类型
1049	// 注意:此字段可能返回 null,表示取不到有效值。
1050	SchedulerType *int64 `json:"SchedulerType,omitempty" name:"SchedulerType"`
1051
1052	// 作业所在集群状态
1053	// 注意:此字段可能返回 null,表示取不到有效值。
1054	ClusterStatus *int64 `json:"ClusterStatus,omitempty" name:"ClusterStatus"`
1055
1056	// 细粒度下的运行的CU数量
1057	// 注意:此字段可能返回 null,表示取不到有效值。
1058	RunningCu *float64 `json:"RunningCu,omitempty" name:"RunningCu"`
1059}
1060
1061type Property struct {
1062
1063	// 系统配置的Key
1064	Key *string `json:"Key,omitempty" name:"Key"`
1065
1066	// 系统配置的Value
1067	Value *string `json:"Value,omitempty" name:"Value"`
1068}
1069
1070type ResourceConfigItem struct {
1071
1072	// 资源ID
1073	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
1074
1075	// 资源类型
1076	ResourceType *int64 `json:"ResourceType,omitempty" name:"ResourceType"`
1077
1078	// 资源所属地域
1079	Region *string `json:"Region,omitempty" name:"Region"`
1080
1081	// 资源所属AppId
1082	AppId *int64 `json:"AppId,omitempty" name:"AppId"`
1083
1084	// 主账号Uin
1085	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`
1086
1087	// 子账号Uin
1088	CreatorUin *string `json:"CreatorUin,omitempty" name:"CreatorUin"`
1089
1090	// 资源位置描述
1091	ResourceLoc *ResourceLoc `json:"ResourceLoc,omitempty" name:"ResourceLoc"`
1092
1093	// 资源创建时间
1094	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
1095
1096	// 资源版本
1097	Version *int64 `json:"Version,omitempty" name:"Version"`
1098
1099	// 资源描述
1100	Remark *string `json:"Remark,omitempty" name:"Remark"`
1101
1102	// 资源状态:0: 资源同步中,1:资源已就绪
1103	// 注意:此字段可能返回 null,表示取不到有效值。
1104	Status *int64 `json:"Status,omitempty" name:"Status"`
1105
1106	// 关联作业个数
1107	// 注意:此字段可能返回 null,表示取不到有效值。
1108	RefJobCount *int64 `json:"RefJobCount,omitempty" name:"RefJobCount"`
1109}
1110
1111type ResourceItem struct {
1112
1113	// 资源ID
1114	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
1115
1116	// 资源名称
1117	Name *string `json:"Name,omitempty" name:"Name"`
1118
1119	// 资源类型
1120	ResourceType *uint64 `json:"ResourceType,omitempty" name:"ResourceType"`
1121
1122	// 资源位置
1123	ResourceLoc *ResourceLoc `json:"ResourceLoc,omitempty" name:"ResourceLoc"`
1124
1125	// 资源地域
1126	Region *string `json:"Region,omitempty" name:"Region"`
1127
1128	// 应用ID
1129	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`
1130
1131	// 主账号Uin
1132	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`
1133
1134	// 子账号Uin
1135	CreatorUin *string `json:"CreatorUin,omitempty" name:"CreatorUin"`
1136
1137	// 资源创建时间
1138	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
1139
1140	// 资源最后更新时间
1141	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
1142
1143	// 资源的资源版本ID
1144	LatestResourceConfigVersion *int64 `json:"LatestResourceConfigVersion,omitempty" name:"LatestResourceConfigVersion"`
1145
1146	// 资源备注
1147	// 注意:此字段可能返回 null,表示取不到有效值。
1148	Remark *string `json:"Remark,omitempty" name:"Remark"`
1149
1150	// 版本个数
1151	// 注意:此字段可能返回 null,表示取不到有效值。
1152	VersionCount *int64 `json:"VersionCount,omitempty" name:"VersionCount"`
1153
1154	// 关联作业数
1155	// 注意:此字段可能返回 null,表示取不到有效值。
1156	RefJobCount *int64 `json:"RefJobCount,omitempty" name:"RefJobCount"`
1157}
1158
1159type ResourceLoc struct {
1160
1161	// 资源位置的存储类型,目前只支持1:COS
1162	StorageType *int64 `json:"StorageType,omitempty" name:"StorageType"`
1163
1164	// 描述资源位置的json
1165	Param *ResourceLocParam `json:"Param,omitempty" name:"Param"`
1166}
1167
1168type ResourceLocParam struct {
1169
1170	// 资源bucket
1171	Bucket *string `json:"Bucket,omitempty" name:"Bucket"`
1172
1173	// 资源路径
1174	Path *string `json:"Path,omitempty" name:"Path"`
1175
1176	// 资源所在地域,如果不填,则使用Resource的Region
1177	// 注意:此字段可能返回 null,表示取不到有效值。
1178	Region *string `json:"Region,omitempty" name:"Region"`
1179}
1180
1181type ResourceRef struct {
1182
1183	// 资源ID
1184	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
1185
1186	// 资源版本ID,-1表示使用最新版本
1187	Version *int64 `json:"Version,omitempty" name:"Version"`
1188
1189	// 引用资源类型,例如主资源设置为1,代表main class所在的jar包
1190	Type *int64 `json:"Type,omitempty" name:"Type"`
1191}
1192
1193type ResourceRefDetail struct {
1194
1195	// 资源id
1196	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
1197
1198	// 资源版本,-1表示使用最新版本
1199	Version *int64 `json:"Version,omitempty" name:"Version"`
1200
1201	// 资源名称
1202	Name *string `json:"Name,omitempty" name:"Name"`
1203
1204	// 1: 主资源
1205	Type *int64 `json:"Type,omitempty" name:"Type"`
1206
1207	// 1: 系统内置资源
1208	SystemProvide *int64 `json:"SystemProvide,omitempty" name:"SystemProvide"`
1209}
1210
1211type ResourceRefJobInfo struct {
1212
1213	// Job id
1214	JobId *string `json:"JobId,omitempty" name:"JobId"`
1215
1216	// Job配置版本
1217	JobConfigVersion *int64 `json:"JobConfigVersion,omitempty" name:"JobConfigVersion"`
1218
1219	// 资源版本
1220	ResourceVersion *int64 `json:"ResourceVersion,omitempty" name:"ResourceVersion"`
1221}
1222
1223type RunJobDescription struct {
1224
1225	// 作业Id
1226	JobId *string `json:"JobId,omitempty" name:"JobId"`
1227
1228	// 运行类型,1:启动,2:恢复
1229	RunType *int64 `json:"RunType,omitempty" name:"RunType"`
1230
1231	// 已废弃。旧版 SQL 类型作业启动参数:指定数据源消费起始时间点
1232	StartMode *string `json:"StartMode,omitempty" name:"StartMode"`
1233
1234	// 当前作业的某个版本
1235	JobConfigVersion *uint64 `json:"JobConfigVersion,omitempty" name:"JobConfigVersion"`
1236}
1237
1238type RunJobsRequest struct {
1239	*tchttp.BaseRequest
1240
1241	// 批量启动作业的描述信息
1242	RunJobDescriptions []*RunJobDescription `json:"RunJobDescriptions,omitempty" name:"RunJobDescriptions"`
1243}
1244
1245func (r *RunJobsRequest) ToJsonString() string {
1246    b, _ := json.Marshal(r)
1247    return string(b)
1248}
1249
1250// FromJsonString It is highly **NOT** recommended to use this function
1251// because it has no param check, nor strict type check
1252func (r *RunJobsRequest) FromJsonString(s string) error {
1253	f := make(map[string]interface{})
1254	if err := json.Unmarshal([]byte(s), &f); err != nil {
1255		return err
1256	}
1257	delete(f, "RunJobDescriptions")
1258	if len(f) > 0 {
1259		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RunJobsRequest has unknown keys!", "")
1260	}
1261	return json.Unmarshal([]byte(s), &r)
1262}
1263
1264type RunJobsResponse struct {
1265	*tchttp.BaseResponse
1266	Response *struct {
1267
1268		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1269		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1270	} `json:"Response"`
1271}
1272
1273func (r *RunJobsResponse) ToJsonString() string {
1274    b, _ := json.Marshal(r)
1275    return string(b)
1276}
1277
1278// FromJsonString It is highly **NOT** recommended to use this function
1279// because it has no param check, nor strict type check
1280func (r *RunJobsResponse) FromJsonString(s string) error {
1281	return json.Unmarshal([]byte(s), &r)
1282}
1283
1284type StopJobDescription struct {
1285
1286	// 作业Id
1287	JobId *string `json:"JobId,omitempty" name:"JobId"`
1288
1289	// 停止类型,1 停止 2 暂停
1290	StopType *int64 `json:"StopType,omitempty" name:"StopType"`
1291}
1292
1293type StopJobsRequest struct {
1294	*tchttp.BaseRequest
1295
1296	// 批量停止作业的描述信息
1297	StopJobDescriptions []*StopJobDescription `json:"StopJobDescriptions,omitempty" name:"StopJobDescriptions"`
1298}
1299
1300func (r *StopJobsRequest) ToJsonString() string {
1301    b, _ := json.Marshal(r)
1302    return string(b)
1303}
1304
1305// FromJsonString It is highly **NOT** recommended to use this function
1306// because it has no param check, nor strict type check
1307func (r *StopJobsRequest) FromJsonString(s string) error {
1308	f := make(map[string]interface{})
1309	if err := json.Unmarshal([]byte(s), &f); err != nil {
1310		return err
1311	}
1312	delete(f, "StopJobDescriptions")
1313	if len(f) > 0 {
1314		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopJobsRequest has unknown keys!", "")
1315	}
1316	return json.Unmarshal([]byte(s), &r)
1317}
1318
1319type StopJobsResponse struct {
1320	*tchttp.BaseResponse
1321	Response *struct {
1322
1323		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1324		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1325	} `json:"Response"`
1326}
1327
1328func (r *StopJobsResponse) ToJsonString() string {
1329    b, _ := json.Marshal(r)
1330    return string(b)
1331}
1332
1333// FromJsonString It is highly **NOT** recommended to use this function
1334// because it has no param check, nor strict type check
1335func (r *StopJobsResponse) FromJsonString(s string) error {
1336	return json.Unmarshal([]byte(s), &r)
1337}
1338
1339type SystemResourceItem struct {
1340
1341	// 资源ID
1342	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
1343
1344	// 资源名称
1345	Name *string `json:"Name,omitempty" name:"Name"`
1346
1347	// 资源类型。1 表示 JAR 包,目前只支持该值。
1348	ResourceType *int64 `json:"ResourceType,omitempty" name:"ResourceType"`
1349
1350	// 资源备注
1351	Remark *string `json:"Remark,omitempty" name:"Remark"`
1352
1353	// 资源所属地域
1354	Region *string `json:"Region,omitempty" name:"Region"`
1355
1356	// 资源的最新版本
1357	LatestResourceConfigVersion *int64 `json:"LatestResourceConfigVersion,omitempty" name:"LatestResourceConfigVersion"`
1358}
1359