@scaleway/sdk 2.0.0 → 2.1.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.
|
@@ -34,7 +34,7 @@ class API extends API$1 {
|
|
|
34
34
|
}, unmarshalJobDefinition);
|
|
35
35
|
getJobDefinition = request => this.client.fetch({
|
|
36
36
|
method: 'GET',
|
|
37
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
37
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
38
38
|
}, unmarshalJobDefinition);
|
|
39
39
|
pageOfListJobDefinitions = (() => {
|
|
40
40
|
var _this2 = this;
|
|
@@ -62,27 +62,27 @@ class API extends API$1 {
|
|
|
62
62
|
body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
|
|
63
63
|
headers: jsonContentHeaders,
|
|
64
64
|
method: 'PATCH',
|
|
65
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
65
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
66
66
|
}, unmarshalJobDefinition);
|
|
67
67
|
deleteJobDefinition = request => this.client.fetch({
|
|
68
68
|
method: 'DELETE',
|
|
69
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
69
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
70
70
|
});
|
|
71
71
|
startJobDefinition = request => this.client.fetch({
|
|
72
72
|
body: '{}',
|
|
73
73
|
headers: jsonContentHeaders,
|
|
74
74
|
method: 'POST',
|
|
75
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
75
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}/start`
|
|
76
76
|
}, unmarshalJobRun);
|
|
77
77
|
getJobRun = request => this.client.fetch({
|
|
78
78
|
method: 'GET',
|
|
79
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('
|
|
79
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}`
|
|
80
80
|
}, unmarshalJobRun);
|
|
81
81
|
stopJobRun = request => this.client.fetch({
|
|
82
82
|
body: '{}',
|
|
83
83
|
headers: jsonContentHeaders,
|
|
84
84
|
method: 'POST',
|
|
85
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('
|
|
85
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}/stop`
|
|
86
86
|
}, unmarshalJobRun);
|
|
87
87
|
pageOfListJobRuns = (() => {
|
|
88
88
|
var _this4 = this;
|
|
@@ -93,7 +93,7 @@ class API extends API$1 {
|
|
|
93
93
|
return _this4.client.fetch({
|
|
94
94
|
method: 'GET',
|
|
95
95
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/job-runs`,
|
|
96
|
-
urlParams: urlParams(['
|
|
96
|
+
urlParams: urlParams(['id', request.id], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
97
97
|
}, unmarshalListJobRunsResponse);
|
|
98
98
|
};
|
|
99
99
|
})();
|
|
@@ -14,8 +14,8 @@ const unmarshalJobDefinition = data => {
|
|
|
14
14
|
createdAt: unmarshalDate(data.created_at),
|
|
15
15
|
description: data.description,
|
|
16
16
|
environmentVariables: data.environment_variables,
|
|
17
|
+
id: data.id,
|
|
17
18
|
imageUri: data.image_uri,
|
|
18
|
-
jobDefinitionId: data.job_definition_id,
|
|
19
19
|
jobTimeout: data.job_timeout,
|
|
20
20
|
memoryLimit: data.memory_limit,
|
|
21
21
|
name: data.name,
|
|
@@ -32,8 +32,8 @@ const unmarshalJobRun = data => {
|
|
|
32
32
|
createdAt: unmarshalDate(data.created_at),
|
|
33
33
|
errorMessage: data.error_message,
|
|
34
34
|
exitCode: data.exit_code,
|
|
35
|
+
id: data.id,
|
|
35
36
|
jobDefinitionId: data.job_definition_id,
|
|
36
|
-
jobRunId: data.job_run_id,
|
|
37
37
|
region: data.region,
|
|
38
38
|
runDuration: data.run_duration,
|
|
39
39
|
state: data.state,
|
package/dist/index.cjs
CHANGED
|
@@ -16132,8 +16132,8 @@ const unmarshalJobDefinition = data => {
|
|
|
16132
16132
|
createdAt: unmarshalDate(data.created_at),
|
|
16133
16133
|
description: data.description,
|
|
16134
16134
|
environmentVariables: data.environment_variables,
|
|
16135
|
+
id: data.id,
|
|
16135
16136
|
imageUri: data.image_uri,
|
|
16136
|
-
jobDefinitionId: data.job_definition_id,
|
|
16137
16137
|
jobTimeout: data.job_timeout,
|
|
16138
16138
|
memoryLimit: data.memory_limit,
|
|
16139
16139
|
name: data.name,
|
|
@@ -16150,8 +16150,8 @@ const unmarshalJobRun = data => {
|
|
|
16150
16150
|
createdAt: unmarshalDate(data.created_at),
|
|
16151
16151
|
errorMessage: data.error_message,
|
|
16152
16152
|
exitCode: data.exit_code,
|
|
16153
|
+
id: data.id,
|
|
16153
16154
|
jobDefinitionId: data.job_definition_id,
|
|
16154
|
-
jobRunId: data.job_run_id,
|
|
16155
16155
|
region: data.region,
|
|
16156
16156
|
runDuration: data.run_duration,
|
|
16157
16157
|
state: data.state,
|
|
@@ -16221,7 +16221,7 @@ let API$f = class API extends API$w {
|
|
|
16221
16221
|
}, unmarshalJobDefinition);
|
|
16222
16222
|
getJobDefinition = request => this.client.fetch({
|
|
16223
16223
|
method: 'GET',
|
|
16224
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
16224
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
16225
16225
|
}, unmarshalJobDefinition);
|
|
16226
16226
|
pageOfListJobDefinitions = (request = {}) => this.client.fetch({
|
|
16227
16227
|
method: 'GET',
|
|
@@ -16233,32 +16233,32 @@ let API$f = class API extends API$w {
|
|
|
16233
16233
|
body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
|
|
16234
16234
|
headers: jsonContentHeaders$e,
|
|
16235
16235
|
method: 'PATCH',
|
|
16236
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
16236
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
16237
16237
|
}, unmarshalJobDefinition);
|
|
16238
16238
|
deleteJobDefinition = request => this.client.fetch({
|
|
16239
16239
|
method: 'DELETE',
|
|
16240
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
16240
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
16241
16241
|
});
|
|
16242
16242
|
startJobDefinition = request => this.client.fetch({
|
|
16243
16243
|
body: '{}',
|
|
16244
16244
|
headers: jsonContentHeaders$e,
|
|
16245
16245
|
method: 'POST',
|
|
16246
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('
|
|
16246
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}/start`
|
|
16247
16247
|
}, unmarshalJobRun);
|
|
16248
16248
|
getJobRun = request => this.client.fetch({
|
|
16249
16249
|
method: 'GET',
|
|
16250
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('
|
|
16250
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}`
|
|
16251
16251
|
}, unmarshalJobRun);
|
|
16252
16252
|
stopJobRun = request => this.client.fetch({
|
|
16253
16253
|
body: '{}',
|
|
16254
16254
|
headers: jsonContentHeaders$e,
|
|
16255
16255
|
method: 'POST',
|
|
16256
|
-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('
|
|
16256
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}/stop`
|
|
16257
16257
|
}, unmarshalJobRun);
|
|
16258
16258
|
pageOfListJobRuns = (request = {}) => this.client.fetch({
|
|
16259
16259
|
method: 'GET',
|
|
16260
16260
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs`,
|
|
16261
|
-
urlParams: urlParams(['
|
|
16261
|
+
urlParams: urlParams(['id', request.id], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
16262
16262
|
}, unmarshalListJobRunsResponse);
|
|
16263
16263
|
listJobRuns = (request = {}) => enrichForPagination('jobRuns', this.pageOfListJobRuns, request);
|
|
16264
16264
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -8160,13 +8160,17 @@ type RegistrarApiUpdateDomainRequest = {
|
|
|
8160
8160
|
*/
|
|
8161
8161
|
technicalContact?: NewContact;
|
|
8162
8162
|
/**
|
|
8163
|
-
*
|
|
8164
|
-
*
|
|
8163
|
+
* @deprecated
|
|
8164
|
+
*
|
|
8165
|
+
* One-of ('ownerContactInfo'): at most one of 'ownerContactId',
|
|
8166
|
+
* 'ownerContact' could be set.
|
|
8165
8167
|
*/
|
|
8166
8168
|
ownerContactId?: string;
|
|
8167
8169
|
/**
|
|
8168
|
-
*
|
|
8169
|
-
*
|
|
8170
|
+
* @deprecated
|
|
8171
|
+
*
|
|
8172
|
+
* One-of ('ownerContactInfo'): at most one of 'ownerContactId',
|
|
8173
|
+
* 'ownerContact' could be set.
|
|
8170
8174
|
*/
|
|
8171
8175
|
ownerContact?: NewContact;
|
|
8172
8176
|
/**
|
|
@@ -17058,7 +17062,7 @@ type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succe
|
|
|
17058
17062
|
type ListJobDefinitionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
17059
17063
|
type ListJobRunsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
17060
17064
|
interface JobDefinition {
|
|
17061
|
-
|
|
17065
|
+
id: string;
|
|
17062
17066
|
name: string;
|
|
17063
17067
|
createdAt?: Date;
|
|
17064
17068
|
updatedAt?: Date;
|
|
@@ -17077,7 +17081,7 @@ interface JobDefinition {
|
|
|
17077
17081
|
region: Region;
|
|
17078
17082
|
}
|
|
17079
17083
|
interface JobRun {
|
|
17080
|
-
|
|
17084
|
+
id: string;
|
|
17081
17085
|
jobDefinitionId: string;
|
|
17082
17086
|
state: JobRunState;
|
|
17083
17087
|
createdAt?: Date;
|
|
@@ -17114,7 +17118,7 @@ type DeleteJobDefinitionRequest = {
|
|
|
17114
17118
|
* config.
|
|
17115
17119
|
*/
|
|
17116
17120
|
region?: Region;
|
|
17117
|
-
|
|
17121
|
+
id: string;
|
|
17118
17122
|
};
|
|
17119
17123
|
type GetJobDefinitionRequest = {
|
|
17120
17124
|
/**
|
|
@@ -17122,7 +17126,7 @@ type GetJobDefinitionRequest = {
|
|
|
17122
17126
|
* config.
|
|
17123
17127
|
*/
|
|
17124
17128
|
region?: Region;
|
|
17125
|
-
|
|
17129
|
+
id: string;
|
|
17126
17130
|
};
|
|
17127
17131
|
type GetJobRunRequest = {
|
|
17128
17132
|
/**
|
|
@@ -17130,7 +17134,7 @@ type GetJobRunRequest = {
|
|
|
17130
17134
|
* config.
|
|
17131
17135
|
*/
|
|
17132
17136
|
region?: Region;
|
|
17133
|
-
|
|
17137
|
+
id: string;
|
|
17134
17138
|
};
|
|
17135
17139
|
type GetServiceInfoRequest = {
|
|
17136
17140
|
/**
|
|
@@ -17163,7 +17167,7 @@ type ListJobRunsRequest$1 = {
|
|
|
17163
17167
|
page?: number;
|
|
17164
17168
|
pageSize?: number;
|
|
17165
17169
|
orderBy?: ListJobRunsRequestOrderBy;
|
|
17166
|
-
|
|
17170
|
+
id?: string;
|
|
17167
17171
|
projectId?: string;
|
|
17168
17172
|
};
|
|
17169
17173
|
interface ListJobRunsResponse {
|
|
@@ -17176,7 +17180,7 @@ type StartJobDefinitionRequest = {
|
|
|
17176
17180
|
* config.
|
|
17177
17181
|
*/
|
|
17178
17182
|
region?: Region;
|
|
17179
|
-
|
|
17183
|
+
id: string;
|
|
17180
17184
|
};
|
|
17181
17185
|
type StopJobRunRequest = {
|
|
17182
17186
|
/**
|
|
@@ -17184,7 +17188,7 @@ type StopJobRunRequest = {
|
|
|
17184
17188
|
* config.
|
|
17185
17189
|
*/
|
|
17186
17190
|
region?: Region;
|
|
17187
|
-
|
|
17191
|
+
id: string;
|
|
17188
17192
|
};
|
|
17189
17193
|
type UpdateJobDefinitionRequest$1 = {
|
|
17190
17194
|
/**
|
|
@@ -17192,7 +17196,7 @@ type UpdateJobDefinitionRequest$1 = {
|
|
|
17192
17196
|
* config.
|
|
17193
17197
|
*/
|
|
17194
17198
|
region?: Region;
|
|
17195
|
-
|
|
17199
|
+
id: string;
|
|
17196
17200
|
name?: string;
|
|
17197
17201
|
cpuLimit?: number;
|
|
17198
17202
|
memoryLimit?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "cd1363ed14b825f88eb53313566fc9d95da28db2"
|
|
39
39
|
}
|