@scaleway/sdk-jobs 2.2.2 → 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 -265
- package/dist/v1alpha1/content.gen.js +5 -6
- package/dist/v1alpha1/index.gen.js +24 -22
- package/dist/v1alpha1/marshalling.gen.js +137 -229
- package/dist/v1alpha1/validation-rules.gen.js +63 -101
- package/dist/v1alpha2/api.gen.js +194 -269
- package/dist/v1alpha2/content.gen.js +8 -9
- package/dist/v1alpha2/index.gen.js +24 -22
- package/dist/v1alpha2/marshalling.gen.js +161 -259
- package/dist/v1alpha2/validation-rules.gen.js +65 -107
- package/package.json +4 -4
|
@@ -1,265 +1,173 @@
|
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
1
2
|
import randomName from "@scaleway/random-name";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
throw new TypeError(
|
|
6
|
-
`Unmarshalling the type 'SecretEnvVar' failed as data isn't a dictionary.`
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
name: data.name
|
|
11
|
-
};
|
|
3
|
+
var unmarshalSecretEnvVar = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SecretEnvVar' failed as data isn't a dictionary.`);
|
|
5
|
+
return { name: data.name };
|
|
12
6
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
`Unmarshalling the type 'SecretFile' failed as data isn't a dictionary.`
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
path: data.path
|
|
21
|
-
};
|
|
7
|
+
var unmarshalSecretFile = (data) => {
|
|
8
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SecretFile' failed as data isn't a dictionary.`);
|
|
9
|
+
return { path: data.path };
|
|
22
10
|
};
|
|
23
11
|
const unmarshalSecret = (data) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
secretId: data.secret_id,
|
|
33
|
-
secretManagerId: data.secret_manager_id,
|
|
34
|
-
secretManagerVersion: data.secret_manager_version
|
|
35
|
-
};
|
|
12
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Secret' failed as data isn't a dictionary.`);
|
|
13
|
+
return {
|
|
14
|
+
envVar: data.env_var ? unmarshalSecretEnvVar(data.env_var) : void 0,
|
|
15
|
+
file: data.file ? unmarshalSecretFile(data.file) : void 0,
|
|
16
|
+
secretId: data.secret_id,
|
|
17
|
+
secretManagerId: data.secret_manager_id,
|
|
18
|
+
secretManagerVersion: data.secret_manager_version
|
|
19
|
+
};
|
|
36
20
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return {
|
|
44
|
-
schedule: data.schedule,
|
|
45
|
-
timezone: data.timezone
|
|
46
|
-
};
|
|
21
|
+
var unmarshalCronSchedule = (data) => {
|
|
22
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CronSchedule' failed as data isn't a dictionary.`);
|
|
23
|
+
return {
|
|
24
|
+
schedule: data.schedule,
|
|
25
|
+
timezone: data.timezone
|
|
26
|
+
};
|
|
47
27
|
};
|
|
48
28
|
const unmarshalJobDefinition = (data) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
projectId: data.project_id,
|
|
68
|
-
region: data.region,
|
|
69
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
70
|
-
};
|
|
29
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobDefinition' failed as data isn't a dictionary.`);
|
|
30
|
+
return {
|
|
31
|
+
command: data.command,
|
|
32
|
+
cpuLimit: data.cpu_limit,
|
|
33
|
+
createdAt: unmarshalDate(data.created_at),
|
|
34
|
+
cronSchedule: data.cron_schedule ? unmarshalCronSchedule(data.cron_schedule) : void 0,
|
|
35
|
+
description: data.description,
|
|
36
|
+
environmentVariables: data.environment_variables,
|
|
37
|
+
id: data.id,
|
|
38
|
+
imageUri: data.image_uri,
|
|
39
|
+
jobTimeout: data.job_timeout,
|
|
40
|
+
localStorageCapacity: data.local_storage_capacity,
|
|
41
|
+
memoryLimit: data.memory_limit,
|
|
42
|
+
name: data.name,
|
|
43
|
+
projectId: data.project_id,
|
|
44
|
+
region: data.region,
|
|
45
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
46
|
+
};
|
|
71
47
|
};
|
|
72
48
|
const unmarshalJobRun = (data) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
state: data.state,
|
|
93
|
-
terminatedAt: unmarshalDate(data.terminated_at),
|
|
94
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
95
|
-
};
|
|
49
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobRun' failed as data isn't a dictionary.`);
|
|
50
|
+
return {
|
|
51
|
+
command: data.command,
|
|
52
|
+
cpuLimit: data.cpu_limit,
|
|
53
|
+
createdAt: unmarshalDate(data.created_at),
|
|
54
|
+
environmentVariables: data.environment_variables,
|
|
55
|
+
errorMessage: data.error_message,
|
|
56
|
+
exitCode: data.exit_code,
|
|
57
|
+
id: data.id,
|
|
58
|
+
jobDefinitionId: data.job_definition_id,
|
|
59
|
+
localStorageCapacity: data.local_storage_capacity,
|
|
60
|
+
memoryLimit: data.memory_limit,
|
|
61
|
+
region: data.region,
|
|
62
|
+
runDuration: data.run_duration,
|
|
63
|
+
startedAt: unmarshalDate(data.started_at),
|
|
64
|
+
state: data.state,
|
|
65
|
+
terminatedAt: unmarshalDate(data.terminated_at),
|
|
66
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
67
|
+
};
|
|
96
68
|
};
|
|
97
69
|
const unmarshalCreateJobDefinitionSecretsResponse = (data) => {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
`Unmarshalling the type 'CreateJobDefinitionSecretsResponse' failed as data isn't a dictionary.`
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret)
|
|
105
|
-
};
|
|
70
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateJobDefinitionSecretsResponse' failed as data isn't a dictionary.`);
|
|
71
|
+
return { secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret) };
|
|
106
72
|
};
|
|
107
73
|
const unmarshalJobsLimits = (data) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
`Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
secretsPerJobDefinition: data.secrets_per_job_definition
|
|
115
|
-
};
|
|
74
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`);
|
|
75
|
+
return { secretsPerJobDefinition: data.secrets_per_job_definition };
|
|
116
76
|
};
|
|
117
77
|
const unmarshalListJobDefinitionSecretsResponse = (data) => {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return {
|
|
124
|
-
secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret),
|
|
125
|
-
totalCount: data.total_count
|
|
126
|
-
};
|
|
78
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobDefinitionSecretsResponse' failed as data isn't a dictionary.`);
|
|
79
|
+
return {
|
|
80
|
+
secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret),
|
|
81
|
+
totalCount: data.total_count
|
|
82
|
+
};
|
|
127
83
|
};
|
|
128
84
|
const unmarshalListJobDefinitionsResponse = (data) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
jobDefinitions: unmarshalArrayOfObject(data.job_definitions, unmarshalJobDefinition),
|
|
136
|
-
totalCount: data.total_count
|
|
137
|
-
};
|
|
85
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobDefinitionsResponse' failed as data isn't a dictionary.`);
|
|
86
|
+
return {
|
|
87
|
+
jobDefinitions: unmarshalArrayOfObject(data.job_definitions, unmarshalJobDefinition),
|
|
88
|
+
totalCount: data.total_count
|
|
89
|
+
};
|
|
138
90
|
};
|
|
139
91
|
const unmarshalListJobRunsResponse = (data) => {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return {
|
|
146
|
-
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun),
|
|
147
|
-
totalCount: data.total_count
|
|
148
|
-
};
|
|
92
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobRunsResponse' failed as data isn't a dictionary.`);
|
|
93
|
+
return {
|
|
94
|
+
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun),
|
|
95
|
+
totalCount: data.total_count
|
|
96
|
+
};
|
|
149
97
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return {
|
|
157
|
-
cpuLimit: data.cpu_limit,
|
|
158
|
-
memoryLimit: data.memory_limit
|
|
159
|
-
};
|
|
98
|
+
var unmarshalResource = (data) => {
|
|
99
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`);
|
|
100
|
+
return {
|
|
101
|
+
cpuLimit: data.cpu_limit,
|
|
102
|
+
memoryLimit: data.memory_limit
|
|
103
|
+
};
|
|
160
104
|
};
|
|
161
105
|
const unmarshalListJobsResourcesResponse = (data) => {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
`Unmarshalling the type 'ListJobsResourcesResponse' failed as data isn't a dictionary.`
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
return {
|
|
168
|
-
resources: unmarshalArrayOfObject(data.resources, unmarshalResource)
|
|
169
|
-
};
|
|
106
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobsResourcesResponse' failed as data isn't a dictionary.`);
|
|
107
|
+
return { resources: unmarshalArrayOfObject(data.resources, unmarshalResource) };
|
|
170
108
|
};
|
|
171
109
|
const unmarshalStartJobDefinitionResponse = (data) => {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun)
|
|
179
|
-
};
|
|
110
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`);
|
|
111
|
+
return { jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun) };
|
|
180
112
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
113
|
+
var marshalCreateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
|
|
114
|
+
schedule: request.schedule,
|
|
115
|
+
timezone: request.timezone
|
|
184
116
|
});
|
|
185
117
|
const marshalCreateJobDefinitionRequest = (request, defaults) => ({
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
118
|
+
command: request.command,
|
|
119
|
+
cpu_limit: request.cpuLimit,
|
|
120
|
+
cron_schedule: request.cronSchedule !== void 0 ? marshalCreateJobDefinitionRequestCronScheduleConfig(request.cronSchedule, defaults) : void 0,
|
|
121
|
+
description: request.description,
|
|
122
|
+
environment_variables: request.environmentVariables !== void 0 ? request.environmentVariables : void 0,
|
|
123
|
+
image_uri: request.imageUri,
|
|
124
|
+
job_timeout: request.jobTimeout,
|
|
125
|
+
local_storage_capacity: request.localStorageCapacity,
|
|
126
|
+
memory_limit: request.memoryLimit,
|
|
127
|
+
name: request.name || randomName("job"),
|
|
128
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
197
129
|
});
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
value: request.envVarName
|
|
209
|
-
}
|
|
210
|
-
])
|
|
211
|
-
});
|
|
212
|
-
const marshalCreateJobDefinitionSecretsRequest = (request, defaults) => ({
|
|
213
|
-
secrets: request.secrets.map((elt) => marshalCreateJobDefinitionSecretsRequestSecretConfig(elt))
|
|
130
|
+
var marshalCreateJobDefinitionSecretsRequestSecretConfig = (request, defaults) => ({
|
|
131
|
+
secret_manager_id: request.secretManagerId,
|
|
132
|
+
secret_manager_version: request.secretManagerVersion,
|
|
133
|
+
...resolveOneOf([{
|
|
134
|
+
param: "path",
|
|
135
|
+
value: request.path
|
|
136
|
+
}, {
|
|
137
|
+
param: "env_var_name",
|
|
138
|
+
value: request.envVarName
|
|
139
|
+
}])
|
|
214
140
|
});
|
|
141
|
+
const marshalCreateJobDefinitionSecretsRequest = (request, defaults) => ({ secrets: request.secrets.map((elt) => marshalCreateJobDefinitionSecretsRequestSecretConfig(elt, defaults)) });
|
|
215
142
|
const marshalStartJobDefinitionRequest = (request, defaults) => ({
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
143
|
+
command: request.command,
|
|
144
|
+
environment_variables: request.environmentVariables,
|
|
145
|
+
replicas: request.replicas
|
|
219
146
|
});
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
147
|
+
var marshalUpdateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
|
|
148
|
+
schedule: request.schedule,
|
|
149
|
+
timezone: request.timezone
|
|
223
150
|
});
|
|
224
151
|
const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
152
|
+
command: request.command,
|
|
153
|
+
cpu_limit: request.cpuLimit,
|
|
154
|
+
cron_schedule: request.cronSchedule !== void 0 ? marshalUpdateJobDefinitionRequestCronScheduleConfig(request.cronSchedule, defaults) : void 0,
|
|
155
|
+
description: request.description,
|
|
156
|
+
environment_variables: request.environmentVariables,
|
|
157
|
+
image_uri: request.imageUri,
|
|
158
|
+
job_timeout: request.jobTimeout,
|
|
159
|
+
local_storage_capacity: request.localStorageCapacity,
|
|
160
|
+
memory_limit: request.memoryLimit,
|
|
161
|
+
name: request.name
|
|
235
162
|
});
|
|
236
163
|
const marshalUpdateJobDefinitionSecretRequest = (request, defaults) => ({
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
value: request.envVarName
|
|
246
|
-
}
|
|
247
|
-
])
|
|
164
|
+
secret_manager_version: request.secretManagerVersion,
|
|
165
|
+
...resolveOneOf([{
|
|
166
|
+
param: "path",
|
|
167
|
+
value: request.path
|
|
168
|
+
}, {
|
|
169
|
+
param: "env_var_name",
|
|
170
|
+
value: request.envVarName
|
|
171
|
+
}])
|
|
248
172
|
});
|
|
249
|
-
export {
|
|
250
|
-
marshalCreateJobDefinitionRequest,
|
|
251
|
-
marshalCreateJobDefinitionSecretsRequest,
|
|
252
|
-
marshalStartJobDefinitionRequest,
|
|
253
|
-
marshalUpdateJobDefinitionRequest,
|
|
254
|
-
marshalUpdateJobDefinitionSecretRequest,
|
|
255
|
-
unmarshalCreateJobDefinitionSecretsResponse,
|
|
256
|
-
unmarshalJobDefinition,
|
|
257
|
-
unmarshalJobRun,
|
|
258
|
-
unmarshalJobsLimits,
|
|
259
|
-
unmarshalListJobDefinitionSecretsResponse,
|
|
260
|
-
unmarshalListJobDefinitionsResponse,
|
|
261
|
-
unmarshalListJobRunsResponse,
|
|
262
|
-
unmarshalListJobsResourcesResponse,
|
|
263
|
-
unmarshalSecret,
|
|
264
|
-
unmarshalStartJobDefinitionResponse
|
|
265
|
-
};
|
|
173
|
+
export { marshalCreateJobDefinitionRequest, marshalCreateJobDefinitionSecretsRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, marshalUpdateJobDefinitionSecretRequest, unmarshalCreateJobDefinitionSecretsResponse, unmarshalJobDefinition, unmarshalJobRun, unmarshalJobsLimits, unmarshalListJobDefinitionSecretsResponse, unmarshalListJobDefinitionsResponse, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse, unmarshalSecret, unmarshalStartJobDefinitionResponse };
|
|
@@ -1,115 +1,77 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
|
+
CreateJobDefinitionRequest: () => CreateJobDefinitionRequest,
|
|
4
|
+
CreateJobDefinitionRequestCronScheduleConfig: () => CreateJobDefinitionRequestCronScheduleConfig,
|
|
5
|
+
CreateJobDefinitionSecretsRequestSecretConfig: () => CreateJobDefinitionSecretsRequestSecretConfig,
|
|
6
|
+
CronSchedule: () => CronSchedule,
|
|
7
|
+
ListJobDefinitionsRequest: () => ListJobDefinitionsRequest,
|
|
8
|
+
ListJobRunsRequest: () => ListJobRunsRequest,
|
|
9
|
+
StartJobDefinitionRequest: () => StartJobDefinitionRequest,
|
|
10
|
+
UpdateJobDefinitionRequest: () => UpdateJobDefinitionRequest,
|
|
11
|
+
UpdateJobDefinitionRequestCronScheduleConfig: () => UpdateJobDefinitionRequestCronScheduleConfig,
|
|
12
|
+
UpdateJobDefinitionSecretRequest: () => UpdateJobDefinitionSecretRequest
|
|
13
|
+
});
|
|
1
14
|
const CreateJobDefinitionRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
imageUri: {
|
|
9
|
-
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
10
|
-
},
|
|
11
|
-
localStorageCapacity: {
|
|
12
|
-
greaterThan: 0
|
|
13
|
-
},
|
|
14
|
-
memoryLimit: {
|
|
15
|
-
greaterThan: 0
|
|
16
|
-
},
|
|
17
|
-
name: {
|
|
18
|
-
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
19
|
-
}
|
|
15
|
+
cpuLimit: { greaterThan: 0 },
|
|
16
|
+
description: { maxLength: 255 },
|
|
17
|
+
imageUri: { pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/ },
|
|
18
|
+
localStorageCapacity: { greaterThan: 0 },
|
|
19
|
+
memoryLimit: { greaterThan: 0 },
|
|
20
|
+
name: { pattern: /^[A-Za-z0-9-_]{3,50}$/ }
|
|
20
21
|
};
|
|
21
22
|
const CreateJobDefinitionRequestCronScheduleConfig = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
const CreateJobDefinitionSecretsRequestSecretConfig = {
|
|
32
|
-
secretManagerVersion: {
|
|
33
|
-
minLength: 1
|
|
34
|
-
}
|
|
23
|
+
schedule: {
|
|
24
|
+
maxLength: 255,
|
|
25
|
+
minLength: 1
|
|
26
|
+
},
|
|
27
|
+
timezone: {
|
|
28
|
+
maxLength: 255,
|
|
29
|
+
minLength: 1
|
|
30
|
+
}
|
|
35
31
|
};
|
|
32
|
+
const CreateJobDefinitionSecretsRequestSecretConfig = { secretManagerVersion: { minLength: 1 } };
|
|
36
33
|
const CronSchedule = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
schedule: {
|
|
35
|
+
maxLength: 255,
|
|
36
|
+
minLength: 1
|
|
37
|
+
},
|
|
38
|
+
timezone: {
|
|
39
|
+
maxLength: 255,
|
|
40
|
+
minLength: 1
|
|
41
|
+
}
|
|
45
42
|
};
|
|
46
43
|
const ListJobDefinitionsRequest = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
lessThanOrEqual: 1e3
|
|
53
|
-
}
|
|
44
|
+
page: { greaterThanOrEqual: 1 },
|
|
45
|
+
pageSize: {
|
|
46
|
+
greaterThanOrEqual: 1,
|
|
47
|
+
lessThanOrEqual: 1e3
|
|
48
|
+
}
|
|
54
49
|
};
|
|
55
50
|
const ListJobRunsRequest = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
lessThanOrEqual: 1e3
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const StartJobDefinitionRequest = {
|
|
65
|
-
replicas: {
|
|
66
|
-
greaterThan: 0
|
|
67
|
-
}
|
|
51
|
+
page: { greaterThanOrEqual: 1 },
|
|
52
|
+
pageSize: {
|
|
53
|
+
greaterThanOrEqual: 1,
|
|
54
|
+
lessThanOrEqual: 1e3
|
|
55
|
+
}
|
|
68
56
|
};
|
|
57
|
+
const StartJobDefinitionRequest = { replicas: { greaterThan: 0 } };
|
|
69
58
|
const UpdateJobDefinitionRequest = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
imageUri: {
|
|
77
|
-
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
78
|
-
},
|
|
79
|
-
localStorageCapacity: {
|
|
80
|
-
greaterThan: 0
|
|
81
|
-
},
|
|
82
|
-
memoryLimit: {
|
|
83
|
-
greaterThan: 0
|
|
84
|
-
},
|
|
85
|
-
name: {
|
|
86
|
-
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
87
|
-
}
|
|
59
|
+
cpuLimit: { greaterThan: 0 },
|
|
60
|
+
description: { maxLength: 255 },
|
|
61
|
+
imageUri: { pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/ },
|
|
62
|
+
localStorageCapacity: { greaterThan: 0 },
|
|
63
|
+
memoryLimit: { greaterThan: 0 },
|
|
64
|
+
name: { pattern: /^[A-Za-z0-9-_]{3,50}$/ }
|
|
88
65
|
};
|
|
89
66
|
const UpdateJobDefinitionRequestCronScheduleConfig = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
const UpdateJobDefinitionSecretRequest = {
|
|
100
|
-
secretManagerVersion: {
|
|
101
|
-
minLength: 1
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
export {
|
|
105
|
-
CreateJobDefinitionRequest,
|
|
106
|
-
CreateJobDefinitionRequestCronScheduleConfig,
|
|
107
|
-
CreateJobDefinitionSecretsRequestSecretConfig,
|
|
108
|
-
CronSchedule,
|
|
109
|
-
ListJobDefinitionsRequest,
|
|
110
|
-
ListJobRunsRequest,
|
|
111
|
-
StartJobDefinitionRequest,
|
|
112
|
-
UpdateJobDefinitionRequest,
|
|
113
|
-
UpdateJobDefinitionRequestCronScheduleConfig,
|
|
114
|
-
UpdateJobDefinitionSecretRequest
|
|
67
|
+
schedule: {
|
|
68
|
+
maxLength: 255,
|
|
69
|
+
minLength: 1
|
|
70
|
+
},
|
|
71
|
+
timezone: {
|
|
72
|
+
maxLength: 255,
|
|
73
|
+
minLength: 1
|
|
74
|
+
}
|
|
115
75
|
};
|
|
76
|
+
const UpdateJobDefinitionSecretRequest = { secretManagerVersion: { minLength: 1 } };
|
|
77
|
+
export { validation_rules_gen_exports };
|