/
JobsConstants.ts
173 lines (153 loc) · 3.84 KB
/
JobsConstants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
/**
* Constants for various job related info
* @export
* @class JobsConstants
*/
export class JobsConstants {
/**
* Step data query string
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly STEP_DATA: string = "step-data=Y";
/**
* Query identifier
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_ID: string = "?";
/**
* Query parm delimiter
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly COMBO_ID: string = "&";
/**
* Query id for getting job by an owner
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_OWNER: string = "owner=";
/**
* Query id for getting a job by prefix
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_PREFIX: string = "prefix=";
/**
* Query id for getting a specific job id
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_JOBID: string = "jobid=";
/**
* Query id for getting a specific job id
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_STATUS: string = "status=";
/**
* Query id for getting max jobs
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly QUERY_MAX_JOBS: string = "max-jobs=";
/**
* Wildcard prefix
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly DEFAULT_PREFIX: string = "*";
/**
* Maximum number of jobs to obtain
* @static
* @type {number}
* @memberof JobsConstants
*/
public static readonly DEFAULT_MAX_JOBS: number = 1000;
/**
* Maximum number of jobs to obtain
* @static
* @type {number}
* @memberof JobsConstants
*/
public static readonly DEFAULT_STATUS: string = '*';
/**
* URI base jobs API
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly RESOURCE: string = "/zosmf/restjobs/jobs";
/**
* URI endpoint for getting spool file content
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly RESOURCE_SPOOL_FILES: string = "/files";
/**
* URI endpoint for getting JCL
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly RESOURCE_JCL_CONTENT: string = "/JCL";
/**
* URI endpoint for getting spool files
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly RESOURCE_SPOOL_CONTENT: string = "/records";
/**
* Cancel request constant
* @static
* @memberof JobsConstants
*/
public static readonly REQUEST_CANCEL = "cancel";
/**
* Default version of cancel
* @static
* @memberof JobsConstants
*/
public static readonly DEFAULT_CANCEL_VERSION = "2.0";
/**
* Hold a job
* @static
* @memberof JobsConstants
*/
public static readonly REQUEST_HOLD = "hold";
/**
* Release a job
* @static
* @memberof JobsConstants
*/
public static readonly REQUEST_RELEASE = "release";
/**
* Execution data query string
* @static
* @type {string}
* @memberof JobsConstants
*/
public static readonly EXEC_DATA: string = "exec-data=Y";
}