@scaleway/sdk-jobs 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +3 -6
- package/dist/v1alpha1/api.gen.js +193 -273
- package/dist/v1alpha1/content.gen.js +5 -6
- package/dist/v1alpha1/index.gen.d.ts +1 -1
- package/dist/v1alpha1/index.gen.js +24 -22
- package/dist/v1alpha1/marshalling.gen.js +137 -226
- package/dist/v1alpha1/validation-rules.gen.js +63 -101
- package/dist/v1alpha2/api.gen.js +194 -269
- package/dist/v1alpha2/content.gen.js +8 -8
- package/dist/v1alpha2/index.gen.d.ts +2 -2
- package/dist/v1alpha2/index.gen.js +24 -22
- package/dist/v1alpha2/marshalling.gen.js +159 -237
- package/dist/v1alpha2/types.gen.d.ts +21 -2
- package/dist/v1alpha2/validation-rules.gen.d.ts +5 -0
- package/dist/v1alpha2/validation-rules.gen.js +65 -101
- package/package.json +4 -4
package/dist/v1alpha2/api.gen.js
CHANGED
|
@@ -1,270 +1,195 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
getSecret = (request) => this.client.fetch(
|
|
195
|
-
{
|
|
196
|
-
method: "GET",
|
|
197
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
198
|
-
},
|
|
199
|
-
unmarshalSecret
|
|
200
|
-
);
|
|
201
|
-
/**
|
|
202
|
-
* List secrets references within a job definition.
|
|
203
|
-
*
|
|
204
|
-
* @param request - The request {@link ListSecretsRequest}
|
|
205
|
-
* @returns A Promise of ListSecretsResponse
|
|
206
|
-
*/
|
|
207
|
-
listSecrets = (request) => this.client.fetch(
|
|
208
|
-
{
|
|
209
|
-
method: "GET",
|
|
210
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets`,
|
|
211
|
-
urlParams: urlParams(["job_definition_id", request.jobDefinitionId])
|
|
212
|
-
},
|
|
213
|
-
unmarshalListSecretsResponse
|
|
214
|
-
);
|
|
215
|
-
/**
|
|
216
|
-
* Update a secret reference within a job definition.
|
|
217
|
-
*
|
|
218
|
-
* @param request - The request {@link UpdateSecretRequest}
|
|
219
|
-
* @returns A Promise of Secret
|
|
220
|
-
*/
|
|
221
|
-
updateSecret = (request) => this.client.fetch(
|
|
222
|
-
{
|
|
223
|
-
body: JSON.stringify(
|
|
224
|
-
marshalUpdateSecretRequest(request, this.client.settings)
|
|
225
|
-
),
|
|
226
|
-
headers: jsonContentHeaders,
|
|
227
|
-
method: "PATCH",
|
|
228
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
229
|
-
},
|
|
230
|
-
unmarshalSecret
|
|
231
|
-
);
|
|
232
|
-
/**
|
|
233
|
-
* Delete a secret reference within a job definition.
|
|
234
|
-
*
|
|
235
|
-
* @param request - The request {@link DeleteSecretRequest}
|
|
236
|
-
*/
|
|
237
|
-
deleteSecret = (request) => this.client.fetch({
|
|
238
|
-
method: "DELETE",
|
|
239
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
240
|
-
});
|
|
241
|
-
/**
|
|
242
|
-
* List job resources for the console.
|
|
243
|
-
*
|
|
244
|
-
* @param request - The request {@link ListJobResourcesRequest}
|
|
245
|
-
* @returns A Promise of ListJobResourcesResponse
|
|
246
|
-
*/
|
|
247
|
-
listJobResources = (request = {}) => this.client.fetch(
|
|
248
|
-
{
|
|
249
|
-
method: "GET",
|
|
250
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-resources`
|
|
251
|
-
},
|
|
252
|
-
unmarshalListJobResourcesResponse
|
|
253
|
-
);
|
|
254
|
-
/**
|
|
255
|
-
* Get job limits for the console.
|
|
256
|
-
*
|
|
257
|
-
* @param request - The request {@link GetJobLimitsRequest}
|
|
258
|
-
* @returns A Promise of JobLimits
|
|
259
|
-
*/
|
|
260
|
-
getJobLimits = (request = {}) => this.client.fetch(
|
|
261
|
-
{
|
|
262
|
-
method: "GET",
|
|
263
|
-
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-limits`
|
|
264
|
-
},
|
|
265
|
-
unmarshalJobLimits
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
export {
|
|
269
|
-
API
|
|
1
|
+
import { marshalCreateJobDefinitionRequest, marshalCreateSecretsRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, marshalUpdateSecretRequest, unmarshalCreateSecretsResponse, unmarshalJobDefinition, unmarshalJobLimits, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobResourcesResponse, unmarshalListJobRunsResponse, unmarshalListSecretsResponse, unmarshalSecret, unmarshalStartJobDefinitionResponse } from "./marshalling.gen.js";
|
|
2
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
|
+
/**
|
|
5
|
+
* Serverless Jobs API.
|
|
6
|
+
|
|
7
|
+
This API allows you to manage your Serverless Jobs.
|
|
8
|
+
*/
|
|
9
|
+
var API$1 = class extends API {
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = toApiLocality({ regions: [
|
|
15
|
+
"fr-par",
|
|
16
|
+
"nl-ams",
|
|
17
|
+
"pl-waw"
|
|
18
|
+
] });
|
|
19
|
+
/**
|
|
20
|
+
* Create a new job definition in a specified Project.
|
|
21
|
+
*
|
|
22
|
+
* @param request - The request {@link CreateJobDefinitionRequest}
|
|
23
|
+
* @returns A Promise of JobDefinition
|
|
24
|
+
*/
|
|
25
|
+
createJobDefinition = (request) => this.client.fetch({
|
|
26
|
+
body: JSON.stringify(marshalCreateJobDefinitionRequest(request, this.client.settings)),
|
|
27
|
+
headers: jsonContentHeaders,
|
|
28
|
+
method: "POST",
|
|
29
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions`
|
|
30
|
+
}, unmarshalJobDefinition);
|
|
31
|
+
/**
|
|
32
|
+
* Get a job definition by its unique identifier.
|
|
33
|
+
*
|
|
34
|
+
* @param request - The request {@link GetJobDefinitionRequest}
|
|
35
|
+
* @returns A Promise of JobDefinition
|
|
36
|
+
*/
|
|
37
|
+
getJobDefinition = (request) => this.client.fetch({
|
|
38
|
+
method: "GET",
|
|
39
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam("jobDefinitionId", request.jobDefinitionId)}`
|
|
40
|
+
}, unmarshalJobDefinition);
|
|
41
|
+
pageOfListJobDefinitions = (request = {}) => this.client.fetch({
|
|
42
|
+
method: "GET",
|
|
43
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions`,
|
|
44
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
45
|
+
}, unmarshalListJobDefinitionsResponse);
|
|
46
|
+
/**
|
|
47
|
+
* List all your job definitions with filters.
|
|
48
|
+
*
|
|
49
|
+
* @param request - The request {@link ListJobDefinitionsRequest}
|
|
50
|
+
* @returns A Promise of ListJobDefinitionsResponse
|
|
51
|
+
*/
|
|
52
|
+
listJobDefinitions = (request = {}) => enrichForPagination("jobDefinitions", this.pageOfListJobDefinitions, request);
|
|
53
|
+
/**
|
|
54
|
+
* Update an existing job definition associated with the specified unique identifier.
|
|
55
|
+
*
|
|
56
|
+
* @param request - The request {@link UpdateJobDefinitionRequest}
|
|
57
|
+
* @returns A Promise of JobDefinition
|
|
58
|
+
*/
|
|
59
|
+
updateJobDefinition = (request) => this.client.fetch({
|
|
60
|
+
body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
|
|
61
|
+
headers: jsonContentHeaders,
|
|
62
|
+
method: "PATCH",
|
|
63
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam("jobDefinitionId", request.jobDefinitionId)}`
|
|
64
|
+
}, unmarshalJobDefinition);
|
|
65
|
+
/**
|
|
66
|
+
* Delete an existing job definition by its unique identifier.
|
|
67
|
+
*
|
|
68
|
+
* @param request - The request {@link DeleteJobDefinitionRequest}
|
|
69
|
+
*/
|
|
70
|
+
deleteJobDefinition = (request) => this.client.fetch({
|
|
71
|
+
method: "DELETE",
|
|
72
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam("jobDefinitionId", request.jobDefinitionId)}`
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* Run an existing job definition using its unique identifier and create a new job run.
|
|
76
|
+
*
|
|
77
|
+
* @param request - The request {@link StartJobDefinitionRequest}
|
|
78
|
+
* @returns A Promise of StartJobDefinitionResponse
|
|
79
|
+
*/
|
|
80
|
+
startJobDefinition = (request) => this.client.fetch({
|
|
81
|
+
body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
|
|
82
|
+
headers: jsonContentHeaders,
|
|
83
|
+
method: "POST",
|
|
84
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam("jobDefinitionId", request.jobDefinitionId)}/start`
|
|
85
|
+
}, unmarshalStartJobDefinitionResponse);
|
|
86
|
+
/**
|
|
87
|
+
* Get a job run by its unique identifier.
|
|
88
|
+
*
|
|
89
|
+
* @param request - The request {@link GetJobRunRequest}
|
|
90
|
+
* @returns A Promise of JobRun
|
|
91
|
+
*/
|
|
92
|
+
getJobRun = (request) => this.client.fetch({
|
|
93
|
+
method: "GET",
|
|
94
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam("jobRunId", request.jobRunId)}`
|
|
95
|
+
}, unmarshalJobRun);
|
|
96
|
+
pageOfListJobRuns = (request = {}) => this.client.fetch({
|
|
97
|
+
method: "GET",
|
|
98
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-runs`,
|
|
99
|
+
urlParams: urlParams(["job_definition_id", request.jobDefinitionId], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["reasons", request.reasons], ["state", request.state], ["states", request.states])
|
|
100
|
+
}, unmarshalListJobRunsResponse);
|
|
101
|
+
/**
|
|
102
|
+
* List all job runs with filters.
|
|
103
|
+
*
|
|
104
|
+
* @param request - The request {@link ListJobRunsRequest}
|
|
105
|
+
* @returns A Promise of ListJobRunsResponse
|
|
106
|
+
*/
|
|
107
|
+
listJobRuns = (request = {}) => enrichForPagination("jobRuns", this.pageOfListJobRuns, request);
|
|
108
|
+
/**
|
|
109
|
+
* Stop a job run using its unique identifier.
|
|
110
|
+
*
|
|
111
|
+
* @param request - The request {@link StopJobRunRequest}
|
|
112
|
+
* @returns A Promise of JobRun
|
|
113
|
+
*/
|
|
114
|
+
stopJobRun = (request) => this.client.fetch({
|
|
115
|
+
body: "{}",
|
|
116
|
+
headers: jsonContentHeaders,
|
|
117
|
+
method: "POST",
|
|
118
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam("jobRunId", request.jobRunId)}/stop`
|
|
119
|
+
}, unmarshalJobRun);
|
|
120
|
+
/**
|
|
121
|
+
* Create a secret reference within a job definition.
|
|
122
|
+
*
|
|
123
|
+
* @param request - The request {@link CreateSecretsRequest}
|
|
124
|
+
* @returns A Promise of CreateSecretsResponse
|
|
125
|
+
*/
|
|
126
|
+
createSecrets = (request) => this.client.fetch({
|
|
127
|
+
body: JSON.stringify(marshalCreateSecretsRequest(request, this.client.settings)),
|
|
128
|
+
headers: jsonContentHeaders,
|
|
129
|
+
method: "POST",
|
|
130
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets`
|
|
131
|
+
}, unmarshalCreateSecretsResponse);
|
|
132
|
+
/**
|
|
133
|
+
* Get a secret references within a job definition.
|
|
134
|
+
*
|
|
135
|
+
* @param request - The request {@link GetSecretRequest}
|
|
136
|
+
* @returns A Promise of Secret
|
|
137
|
+
*/
|
|
138
|
+
getSecret = (request) => this.client.fetch({
|
|
139
|
+
method: "GET",
|
|
140
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
141
|
+
}, unmarshalSecret);
|
|
142
|
+
/**
|
|
143
|
+
* List secrets references within a job definition.
|
|
144
|
+
*
|
|
145
|
+
* @param request - The request {@link ListSecretsRequest}
|
|
146
|
+
* @returns A Promise of ListSecretsResponse
|
|
147
|
+
*/
|
|
148
|
+
listSecrets = (request) => this.client.fetch({
|
|
149
|
+
method: "GET",
|
|
150
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets`,
|
|
151
|
+
urlParams: urlParams(["job_definition_id", request.jobDefinitionId])
|
|
152
|
+
}, unmarshalListSecretsResponse);
|
|
153
|
+
/**
|
|
154
|
+
* Update a secret reference within a job definition.
|
|
155
|
+
*
|
|
156
|
+
* @param request - The request {@link UpdateSecretRequest}
|
|
157
|
+
* @returns A Promise of Secret
|
|
158
|
+
*/
|
|
159
|
+
updateSecret = (request) => this.client.fetch({
|
|
160
|
+
body: JSON.stringify(marshalUpdateSecretRequest(request, this.client.settings)),
|
|
161
|
+
headers: jsonContentHeaders,
|
|
162
|
+
method: "PATCH",
|
|
163
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
164
|
+
}, unmarshalSecret);
|
|
165
|
+
/**
|
|
166
|
+
* Delete a secret reference within a job definition.
|
|
167
|
+
*
|
|
168
|
+
* @param request - The request {@link DeleteSecretRequest}
|
|
169
|
+
*/
|
|
170
|
+
deleteSecret = (request) => this.client.fetch({
|
|
171
|
+
method: "DELETE",
|
|
172
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}`
|
|
173
|
+
});
|
|
174
|
+
/**
|
|
175
|
+
* List job resources for the console.
|
|
176
|
+
*
|
|
177
|
+
* @param request - The request {@link ListJobResourcesRequest}
|
|
178
|
+
* @returns A Promise of ListJobResourcesResponse
|
|
179
|
+
*/
|
|
180
|
+
listJobResources = (request = {}) => this.client.fetch({
|
|
181
|
+
method: "GET",
|
|
182
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-resources`
|
|
183
|
+
}, unmarshalListJobResourcesResponse);
|
|
184
|
+
/**
|
|
185
|
+
* Get job limits for the console.
|
|
186
|
+
*
|
|
187
|
+
* @param request - The request {@link GetJobLimitsRequest}
|
|
188
|
+
* @returns A Promise of JobLimits
|
|
189
|
+
*/
|
|
190
|
+
getJobLimits = (request = {}) => this.client.fetch({
|
|
191
|
+
method: "GET",
|
|
192
|
+
path: `/serverless-jobs/v1alpha2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/job-limits`
|
|
193
|
+
}, unmarshalJobLimits);
|
|
270
194
|
};
|
|
195
|
+
export { API$1 as API };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
/** Lists transient statutes of the enum {@link JobRunState}. */
|
|
1
2
|
const JOB_RUN_TRANSIENT_STATUSES = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"initialized",
|
|
4
|
+
"validated",
|
|
5
|
+
"queued",
|
|
6
|
+
"running",
|
|
7
|
+
"interrupting",
|
|
8
|
+
"retrying"
|
|
7
9
|
];
|
|
8
|
-
export {
|
|
9
|
-
JOB_RUN_TRANSIENT_STATUSES
|
|
10
|
-
};
|
|
10
|
+
export { JOB_RUN_TRANSIENT_STATUSES };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateSecretsRequest, CreateSecretsRequestSecretConfig, CreateSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteSecretRequest, GetJobDefinitionRequest, GetJobLimitsRequest, GetJobRunRequest, GetSecretRequest, JobDefinition, JobLimits, JobRun, JobRunReason, JobRunState, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobResourcesRequest, ListJobResourcesResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListSecretsRequest, ListSecretsResponse, Resource, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateSecretRequest, } from './types.gen.js';
|
|
4
|
+
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateSecretsRequest, CreateSecretsRequestSecretConfig, CreateSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteSecretRequest, GetJobDefinitionRequest, GetJobLimitsRequest, GetJobRunRequest, GetSecretRequest, JobDefinition, JobLimits, JobRun, JobRunReason, JobRunState, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobResourcesRequest, ListJobResourcesResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListSecretsRequest, ListSecretsResponse, Resource, RetryPolicy, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateSecretRequest, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { marshalCreateJobDefinitionRequest, marshalCreateSecretsRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, marshalUpdateSecretRequest, unmarshalCreateSecretsResponse, unmarshalJobDefinition, unmarshalJobLimits, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobResourcesResponse, unmarshalListJobRunsResponse, unmarshalListSecretsResponse, unmarshalSecret, unmarshalStartJobDefinitionResponse } from "./marshalling.gen.js";
|
|
1
3
|
import { API } from "./api.gen.js";
|
|
2
4
|
import { JOB_RUN_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
5
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
API: () => API,
|
|
8
|
+
JOB_RUN_TRANSIENT_STATUSES: () => JOB_RUN_TRANSIENT_STATUSES,
|
|
9
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
10
|
+
marshalCreateJobDefinitionRequest: () => marshalCreateJobDefinitionRequest,
|
|
11
|
+
marshalCreateSecretsRequest: () => marshalCreateSecretsRequest,
|
|
12
|
+
marshalStartJobDefinitionRequest: () => marshalStartJobDefinitionRequest,
|
|
13
|
+
marshalUpdateJobDefinitionRequest: () => marshalUpdateJobDefinitionRequest,
|
|
14
|
+
marshalUpdateSecretRequest: () => marshalUpdateSecretRequest,
|
|
15
|
+
unmarshalCreateSecretsResponse: () => unmarshalCreateSecretsResponse,
|
|
16
|
+
unmarshalJobDefinition: () => unmarshalJobDefinition,
|
|
17
|
+
unmarshalJobLimits: () => unmarshalJobLimits,
|
|
18
|
+
unmarshalJobRun: () => unmarshalJobRun,
|
|
19
|
+
unmarshalListJobDefinitionsResponse: () => unmarshalListJobDefinitionsResponse,
|
|
20
|
+
unmarshalListJobResourcesResponse: () => unmarshalListJobResourcesResponse,
|
|
21
|
+
unmarshalListJobRunsResponse: () => unmarshalListJobRunsResponse,
|
|
22
|
+
unmarshalListSecretsResponse: () => unmarshalListSecretsResponse,
|
|
23
|
+
unmarshalSecret: () => unmarshalSecret,
|
|
24
|
+
unmarshalStartJobDefinitionResponse: () => unmarshalStartJobDefinitionResponse
|
|
25
|
+
});
|
|
26
|
+
export { index_gen_exports };
|