@scaleway/sdk 2.15.0 → 2.17.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.
@@ -17,61 +17,62 @@ const unmarshalReference = data => {
17
17
  type: data.type
18
18
  };
19
19
  };
20
- const unmarshalVolumeSpecifications = data => {
20
+ const unmarshalSnapshotParentVolume = data => {
21
21
  if (!isJSONObject(data)) {
22
- throw new TypeError(`Unmarshalling the type 'VolumeSpecifications' failed as data isn't a dictionary.`);
22
+ throw new TypeError(`Unmarshalling the type 'SnapshotParentVolume' failed as data isn't a dictionary.`);
23
23
  }
24
24
  return {
25
- class: data.class,
26
- perfIops: data.perf_iops
25
+ id: data.id,
26
+ name: data.name,
27
+ status: data.status,
28
+ type: data.type
27
29
  };
28
30
  };
29
- const unmarshalVolume = data => {
31
+ const unmarshalSnapshot = data => {
30
32
  if (!isJSONObject(data)) {
31
- throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
33
+ throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
32
34
  }
33
35
  return {
36
+ class: data.class,
34
37
  createdAt: unmarshalDate(data.created_at),
35
38
  id: data.id,
36
- lastDetachedAt: unmarshalDate(data.last_detached_at),
37
39
  name: data.name,
38
- parentSnapshotId: data.parent_snapshot_id,
40
+ parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
39
41
  projectId: data.project_id,
40
42
  references: unmarshalArrayOfObject(data.references, unmarshalReference),
41
43
  size: data.size,
42
- specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : undefined,
43
44
  status: data.status,
44
45
  tags: data.tags,
45
- type: data.type,
46
46
  updatedAt: unmarshalDate(data.updated_at),
47
47
  zone: data.zone
48
48
  };
49
49
  };
50
- const unmarshalSnapshotParentVolume = data => {
50
+ const unmarshalVolumeSpecifications = data => {
51
51
  if (!isJSONObject(data)) {
52
- throw new TypeError(`Unmarshalling the type 'SnapshotParentVolume' failed as data isn't a dictionary.`);
52
+ throw new TypeError(`Unmarshalling the type 'VolumeSpecifications' failed as data isn't a dictionary.`);
53
53
  }
54
54
  return {
55
- id: data.id,
56
- name: data.name,
57
- status: data.status,
58
- type: data.type
55
+ class: data.class,
56
+ perfIops: data.perf_iops
59
57
  };
60
58
  };
61
- const unmarshalSnapshotSummary = data => {
59
+ const unmarshalVolume = data => {
62
60
  if (!isJSONObject(data)) {
63
- throw new TypeError(`Unmarshalling the type 'SnapshotSummary' failed as data isn't a dictionary.`);
61
+ throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
64
62
  }
65
63
  return {
66
- class: data.class,
67
64
  createdAt: unmarshalDate(data.created_at),
68
65
  id: data.id,
66
+ lastDetachedAt: unmarshalDate(data.last_detached_at),
69
67
  name: data.name,
70
- parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
68
+ parentSnapshotId: data.parent_snapshot_id,
71
69
  projectId: data.project_id,
70
+ references: unmarshalArrayOfObject(data.references, unmarshalReference),
72
71
  size: data.size,
72
+ specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : undefined,
73
73
  status: data.status,
74
74
  tags: data.tags,
75
+ type: data.type,
75
76
  updatedAt: unmarshalDate(data.updated_at),
76
77
  zone: data.zone
77
78
  };
@@ -81,7 +82,7 @@ const unmarshalListSnapshotsResponse = data => {
81
82
  throw new TypeError(`Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`);
82
83
  }
83
84
  return {
84
- snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshotSummary),
85
+ snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
85
86
  totalCount: data.total_count
86
87
  };
87
88
  };
@@ -114,25 +115,6 @@ const unmarshalListVolumesResponse = data => {
114
115
  volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume)
115
116
  };
116
117
  };
117
- const unmarshalSnapshot = data => {
118
- if (!isJSONObject(data)) {
119
- throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
120
- }
121
- return {
122
- class: data.class,
123
- createdAt: unmarshalDate(data.created_at),
124
- id: data.id,
125
- name: data.name,
126
- parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
127
- projectId: data.project_id,
128
- references: unmarshalArrayOfObject(data.references, unmarshalReference),
129
- size: data.size,
130
- status: data.status,
131
- tags: data.tags,
132
- updatedAt: unmarshalDate(data.updated_at),
133
- zone: data.zone
134
- };
135
- };
136
118
  const marshalCreateSnapshotRequest = (request, defaults) => ({
137
119
  name: request.name,
138
120
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -248,9 +248,13 @@ class API extends API$1 {
248
248
  }, unmarshalListLogsResponse);
249
249
 
250
250
  /**
251
- * List your container logs. List the logs of the container with the specified
252
- * ID.
251
+ * Deprecated (replaced by
252
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
253
+ * container logs. Deprecated (replaced by
254
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
255
+ * logs of the container with the specified ID.
253
256
  *
257
+ * @deprecated
254
258
  * @param request - The request {@link ListLogsRequest}
255
259
  * @returns A Promise of ListLogsResponse
256
260
  */
@@ -288,9 +288,13 @@ class API extends API$1 {
288
288
  }, unmarshalListLogsResponse);
289
289
 
290
290
  /**
291
- * List application logs. List the application logs of the function with the
292
- * specified ID.
291
+ * Deprecated (replaced by
292
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
293
+ * application logs. Deprecated (replaced by
294
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
295
+ * application logs of the function with the specified ID.
293
296
  *
297
+ * @deprecated
294
298
  * @param request - The request {@link ListLogsRequest}
295
299
  * @returns A Promise of ListLogsResponse
296
300
  */
@@ -1,7 +1,7 @@
1
1
  import { API as API$1 } from '../../../scw/api.js';
2
2
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
3
3
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
- import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalJobRun, unmarshalListJobRunsResponse } from './marshalling.gen.js';
4
+ import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, unmarshalJobRun, unmarshalListJobRunsResponse } from './marshalling.gen.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -80,14 +80,14 @@ class API extends API$1 {
80
80
  * new job run.
81
81
  *
82
82
  * @param request - The request {@link StartJobDefinitionRequest}
83
- * @returns A Promise of JobRun
83
+ * @returns A Promise of StartJobDefinitionResponse
84
84
  */
85
85
  startJobDefinition = request => this.client.fetch({
86
86
  body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
87
87
  headers: jsonContentHeaders,
88
88
  method: 'POST',
89
89
  path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
90
- }, unmarshalJobRun);
90
+ }, unmarshalStartJobDefinitionResponse);
91
91
 
92
92
  /**
93
93
  * Get a job run by its unique identifier.
@@ -27,6 +27,7 @@ const unmarshalJobDefinition = data => {
27
27
  id: data.id,
28
28
  imageUri: data.image_uri,
29
29
  jobTimeout: data.job_timeout,
30
+ localStorageCapacity: data.local_storage_capacity,
30
31
  memoryLimit: data.memory_limit,
31
32
  name: data.name,
32
33
  projectId: data.project_id,
@@ -47,6 +48,7 @@ const unmarshalJobRun = data => {
47
48
  exitCode: data.exit_code,
48
49
  id: data.id,
49
50
  jobDefinitionId: data.job_definition_id,
51
+ localStorageCapacity: data.local_storage_capacity,
50
52
  memoryLimit: data.memory_limit,
51
53
  region: data.region,
52
54
  runDuration: data.run_duration,
@@ -73,6 +75,14 @@ const unmarshalListJobRunsResponse = data => {
73
75
  totalCount: data.total_count
74
76
  };
75
77
  };
78
+ const unmarshalStartJobDefinitionResponse = data => {
79
+ if (!isJSONObject(data)) {
80
+ throw new TypeError(`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`);
81
+ }
82
+ return {
83
+ jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun)
84
+ };
85
+ };
76
86
  const marshalCreateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
77
87
  schedule: request.schedule,
78
88
  timezone: request.timezone
@@ -85,6 +95,7 @@ const marshalCreateJobDefinitionRequest = (request, defaults) => ({
85
95
  environment_variables: request.environmentVariables !== undefined ? request.environmentVariables : undefined,
86
96
  image_uri: request.imageUri,
87
97
  job_timeout: request.jobTimeout,
98
+ local_storage_capacity: request.localStorageCapacity,
88
99
  memory_limit: request.memoryLimit,
89
100
  name: request.name || randomName('job'),
90
101
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -106,8 +117,9 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
106
117
  environment_variables: request.environmentVariables,
107
118
  image_uri: request.imageUri,
108
119
  job_timeout: request.jobTimeout,
120
+ local_storage_capacity: request.localStorageCapacity,
109
121
  memory_limit: request.memoryLimit,
110
122
  name: request.name
111
123
  });
112
124
 
113
- export { marshalCreateJobDefinitionRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, unmarshalJobDefinition, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobRunsResponse };
125
+ export { marshalCreateJobDefinitionRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, unmarshalJobDefinition, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobRunsResponse, unmarshalStartJobDefinitionResponse };
@@ -8,6 +8,9 @@ const CreateJobDefinitionRequest = {
8
8
  imageUri: {
9
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][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
10
10
  },
11
+ localStorageCapacity: {
12
+ greaterThan: 0
13
+ },
11
14
  memoryLimit: {
12
15
  greaterThan: 0
13
16
  },
@@ -53,6 +56,11 @@ const ListJobRunsRequest = {
53
56
  lessThanOrEqual: 1000
54
57
  }
55
58
  };
59
+ const StartJobDefinitionRequest = {
60
+ replicas: {
61
+ greaterThan: 0
62
+ }
63
+ };
56
64
  const UpdateJobDefinitionRequest = {
57
65
  cpuLimit: {
58
66
  greaterThan: 0
@@ -60,6 +68,9 @@ const UpdateJobDefinitionRequest = {
60
68
  imageUri: {
61
69
  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][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
62
70
  },
71
+ localStorageCapacity: {
72
+ greaterThan: 0
73
+ },
63
74
  memoryLimit: {
64
75
  greaterThan: 0
65
76
  },
@@ -78,4 +89,4 @@ const UpdateJobDefinitionRequestCronScheduleConfig = {
78
89
  }
79
90
  };
80
91
 
81
- export { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, ListJobDefinitionsRequest, ListJobRunsRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig };
92
+ export { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, ListJobDefinitionsRequest, ListJobRunsRequest, StartJobDefinitionRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig };
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.14.0';
500
+ const version = 'v2.16.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -4082,61 +4082,62 @@ const unmarshalReference = data => {
4082
4082
  type: data.type
4083
4083
  };
4084
4084
  };
4085
- const unmarshalVolumeSpecifications = data => {
4085
+ const unmarshalSnapshotParentVolume = data => {
4086
4086
  if (!isJSONObject(data)) {
4087
- throw new TypeError(`Unmarshalling the type 'VolumeSpecifications' failed as data isn't a dictionary.`);
4087
+ throw new TypeError(`Unmarshalling the type 'SnapshotParentVolume' failed as data isn't a dictionary.`);
4088
4088
  }
4089
4089
  return {
4090
- class: data.class,
4091
- perfIops: data.perf_iops
4090
+ id: data.id,
4091
+ name: data.name,
4092
+ status: data.status,
4093
+ type: data.type
4092
4094
  };
4093
4095
  };
4094
- const unmarshalVolume$4 = data => {
4096
+ const unmarshalSnapshot$3 = data => {
4095
4097
  if (!isJSONObject(data)) {
4096
- throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
4098
+ throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
4097
4099
  }
4098
4100
  return {
4101
+ class: data.class,
4099
4102
  createdAt: unmarshalDate(data.created_at),
4100
4103
  id: data.id,
4101
- lastDetachedAt: unmarshalDate(data.last_detached_at),
4102
4104
  name: data.name,
4103
- parentSnapshotId: data.parent_snapshot_id,
4105
+ parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
4104
4106
  projectId: data.project_id,
4105
4107
  references: unmarshalArrayOfObject(data.references, unmarshalReference),
4106
4108
  size: data.size,
4107
- specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : undefined,
4108
4109
  status: data.status,
4109
4110
  tags: data.tags,
4110
- type: data.type,
4111
4111
  updatedAt: unmarshalDate(data.updated_at),
4112
4112
  zone: data.zone
4113
4113
  };
4114
4114
  };
4115
- const unmarshalSnapshotParentVolume = data => {
4115
+ const unmarshalVolumeSpecifications = data => {
4116
4116
  if (!isJSONObject(data)) {
4117
- throw new TypeError(`Unmarshalling the type 'SnapshotParentVolume' failed as data isn't a dictionary.`);
4117
+ throw new TypeError(`Unmarshalling the type 'VolumeSpecifications' failed as data isn't a dictionary.`);
4118
4118
  }
4119
4119
  return {
4120
- id: data.id,
4121
- name: data.name,
4122
- status: data.status,
4123
- type: data.type
4120
+ class: data.class,
4121
+ perfIops: data.perf_iops
4124
4122
  };
4125
4123
  };
4126
- const unmarshalSnapshotSummary = data => {
4124
+ const unmarshalVolume$4 = data => {
4127
4125
  if (!isJSONObject(data)) {
4128
- throw new TypeError(`Unmarshalling the type 'SnapshotSummary' failed as data isn't a dictionary.`);
4126
+ throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
4129
4127
  }
4130
4128
  return {
4131
- class: data.class,
4132
4129
  createdAt: unmarshalDate(data.created_at),
4133
4130
  id: data.id,
4131
+ lastDetachedAt: unmarshalDate(data.last_detached_at),
4134
4132
  name: data.name,
4135
- parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
4133
+ parentSnapshotId: data.parent_snapshot_id,
4136
4134
  projectId: data.project_id,
4135
+ references: unmarshalArrayOfObject(data.references, unmarshalReference),
4137
4136
  size: data.size,
4137
+ specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : undefined,
4138
4138
  status: data.status,
4139
4139
  tags: data.tags,
4140
+ type: data.type,
4140
4141
  updatedAt: unmarshalDate(data.updated_at),
4141
4142
  zone: data.zone
4142
4143
  };
@@ -4146,7 +4147,7 @@ const unmarshalListSnapshotsResponse$3 = data => {
4146
4147
  throw new TypeError(`Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`);
4147
4148
  }
4148
4149
  return {
4149
- snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshotSummary),
4150
+ snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot$3),
4150
4151
  totalCount: data.total_count
4151
4152
  };
4152
4153
  };
@@ -4179,25 +4180,6 @@ const unmarshalListVolumesResponse$2 = data => {
4179
4180
  volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$4)
4180
4181
  };
4181
4182
  };
4182
- const unmarshalSnapshot$3 = data => {
4183
- if (!isJSONObject(data)) {
4184
- throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
4185
- }
4186
- return {
4187
- class: data.class,
4188
- createdAt: unmarshalDate(data.created_at),
4189
- id: data.id,
4190
- name: data.name,
4191
- parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : undefined,
4192
- projectId: data.project_id,
4193
- references: unmarshalArrayOfObject(data.references, unmarshalReference),
4194
- size: data.size,
4195
- status: data.status,
4196
- tags: data.tags,
4197
- updatedAt: unmarshalDate(data.updated_at),
4198
- zone: data.zone
4199
- };
4200
- };
4201
4183
  const marshalCreateSnapshotRequest$3 = (request, defaults) => ({
4202
4184
  name: request.name,
4203
4185
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -5746,9 +5728,13 @@ let API$p = class API extends API$x {
5746
5728
  }, unmarshalListLogsResponse$2);
5747
5729
 
5748
5730
  /**
5749
- * List your container logs. List the logs of the container with the specified
5750
- * ID.
5731
+ * Deprecated (replaced by
5732
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
5733
+ * container logs. Deprecated (replaced by
5734
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
5735
+ * logs of the container with the specified ID.
5751
5736
  *
5737
+ * @deprecated
5752
5738
  * @param request - The request {@link ListLogsRequest}
5753
5739
  * @returns A Promise of ListLogsResponse
5754
5740
  */
@@ -10511,9 +10497,13 @@ let API$l = class API extends API$x {
10511
10497
  }, unmarshalListLogsResponse$1);
10512
10498
 
10513
10499
  /**
10514
- * List application logs. List the application logs of the function with the
10515
- * specified ID.
10500
+ * Deprecated (replaced by
10501
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
10502
+ * application logs. Deprecated (replaced by
10503
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
10504
+ * application logs of the function with the specified ID.
10516
10505
  *
10506
+ * @deprecated
10517
10507
  * @param request - The request {@link ListLogsRequest}
10518
10508
  * @returns A Promise of ListLogsResponse
10519
10509
  */
@@ -16453,6 +16443,7 @@ const unmarshalJobDefinition = data => {
16453
16443
  id: data.id,
16454
16444
  imageUri: data.image_uri,
16455
16445
  jobTimeout: data.job_timeout,
16446
+ localStorageCapacity: data.local_storage_capacity,
16456
16447
  memoryLimit: data.memory_limit,
16457
16448
  name: data.name,
16458
16449
  projectId: data.project_id,
@@ -16473,6 +16464,7 @@ const unmarshalJobRun = data => {
16473
16464
  exitCode: data.exit_code,
16474
16465
  id: data.id,
16475
16466
  jobDefinitionId: data.job_definition_id,
16467
+ localStorageCapacity: data.local_storage_capacity,
16476
16468
  memoryLimit: data.memory_limit,
16477
16469
  region: data.region,
16478
16470
  runDuration: data.run_duration,
@@ -16499,6 +16491,14 @@ const unmarshalListJobRunsResponse = data => {
16499
16491
  totalCount: data.total_count
16500
16492
  };
16501
16493
  };
16494
+ const unmarshalStartJobDefinitionResponse = data => {
16495
+ if (!isJSONObject(data)) {
16496
+ throw new TypeError(`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`);
16497
+ }
16498
+ return {
16499
+ jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun)
16500
+ };
16501
+ };
16502
16502
  const marshalCreateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
16503
16503
  schedule: request.schedule,
16504
16504
  timezone: request.timezone
@@ -16511,6 +16511,7 @@ const marshalCreateJobDefinitionRequest = (request, defaults) => ({
16511
16511
  environment_variables: request.environmentVariables !== undefined ? request.environmentVariables : undefined,
16512
16512
  image_uri: request.imageUri,
16513
16513
  job_timeout: request.jobTimeout,
16514
+ local_storage_capacity: request.localStorageCapacity,
16514
16515
  memory_limit: request.memoryLimit,
16515
16516
  name: request.name || randomName('job'),
16516
16517
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -16532,6 +16533,7 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
16532
16533
  environment_variables: request.environmentVariables,
16533
16534
  image_uri: request.imageUri,
16534
16535
  job_timeout: request.jobTimeout,
16536
+ local_storage_capacity: request.localStorageCapacity,
16535
16537
  memory_limit: request.memoryLimit,
16536
16538
  name: request.name
16537
16539
  });
@@ -16613,14 +16615,14 @@ let API$f = class API extends API$x {
16613
16615
  * new job run.
16614
16616
  *
16615
16617
  * @param request - The request {@link StartJobDefinitionRequest}
16616
- * @returns A Promise of JobRun
16618
+ * @returns A Promise of StartJobDefinitionResponse
16617
16619
  */
16618
16620
  startJobDefinition = request => this.client.fetch({
16619
16621
  body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
16620
16622
  headers: jsonContentHeaders$e,
16621
16623
  method: 'POST',
16622
16624
  path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
16623
- }, unmarshalJobRun);
16625
+ }, unmarshalStartJobDefinitionResponse);
16624
16626
 
16625
16627
  /**
16626
16628
  * Get a job run by its unique identifier.
@@ -16676,6 +16678,9 @@ const CreateJobDefinitionRequest = {
16676
16678
  imageUri: {
16677
16679
  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][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
16678
16680
  },
16681
+ localStorageCapacity: {
16682
+ greaterThan: 0
16683
+ },
16679
16684
  memoryLimit: {
16680
16685
  greaterThan: 0
16681
16686
  },
@@ -16721,6 +16726,11 @@ const ListJobRunsRequest = {
16721
16726
  lessThanOrEqual: 1000
16722
16727
  }
16723
16728
  };
16729
+ const StartJobDefinitionRequest = {
16730
+ replicas: {
16731
+ greaterThan: 0
16732
+ }
16733
+ };
16724
16734
  const UpdateJobDefinitionRequest = {
16725
16735
  cpuLimit: {
16726
16736
  greaterThan: 0
@@ -16728,6 +16738,9 @@ const UpdateJobDefinitionRequest = {
16728
16738
  imageUri: {
16729
16739
  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][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
16730
16740
  },
16741
+ localStorageCapacity: {
16742
+ greaterThan: 0
16743
+ },
16731
16744
  memoryLimit: {
16732
16745
  greaterThan: 0
16733
16746
  },
@@ -16753,6 +16766,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
16753
16766
  CronSchedule: CronSchedule,
16754
16767
  ListJobDefinitionsRequest: ListJobDefinitionsRequest,
16755
16768
  ListJobRunsRequest: ListJobRunsRequest,
16769
+ StartJobDefinitionRequest: StartJobDefinitionRequest,
16756
16770
  UpdateJobDefinitionRequest: UpdateJobDefinitionRequest,
16757
16771
  UpdateJobDefinitionRequestCronScheduleConfig: UpdateJobDefinitionRequestCronScheduleConfig
16758
16772
  });
package/dist/index.d.ts CHANGED
@@ -3456,6 +3456,23 @@ type ReferenceType = 'unknown_type' | 'link' | 'exclusive' | 'read_only';
3456
3456
  type SnapshotStatus$2 = 'unknown_status' | 'creating' | 'available' | 'error' | 'deleting' | 'deleted' | 'in_use' | 'locked';
3457
3457
  type StorageClass$2 = 'unknown_storage_class' | 'unspecified' | 'bssd' | 'sbs';
3458
3458
  type VolumeStatus = 'unknown_status' | 'creating' | 'available' | 'in_use' | 'deleting' | 'deleted' | 'resizing' | 'error' | 'snapshotting' | 'locked';
3459
+ interface Reference$1 {
3460
+ /** UUID of the reference. */
3461
+ id: string;
3462
+ /** Type of resource to which the reference is associated. */
3463
+ productResourceType: string;
3464
+ /**
3465
+ * UUID of the product resource it refers to (according to the
3466
+ * product_resource_type).
3467
+ */
3468
+ productResourceId: string;
3469
+ /** Creation date of the reference. */
3470
+ createdAt?: Date;
3471
+ /** Type of reference (link, exclusive, read_only). */
3472
+ type: ReferenceType;
3473
+ /** Status of reference (attaching, attached, detaching). */
3474
+ status: ReferenceStatus;
3475
+ }
3459
3476
  interface SnapshotParentVolume {
3460
3477
  /** Parent volume UUID (volume from which the snapshot originates). */
3461
3478
  id: string;
@@ -3475,23 +3492,6 @@ interface VolumeSpecifications {
3475
3492
  /** The storage class of the volume. */
3476
3493
  class: StorageClass$2;
3477
3494
  }
3478
- interface Reference$1 {
3479
- /** UUID of the reference. */
3480
- id: string;
3481
- /** Type of resource to which the reference is associated. */
3482
- productResourceType: string;
3483
- /**
3484
- * UUID of the product resource it refers to (according to the
3485
- * product_resource_type).
3486
- */
3487
- productResourceId: string;
3488
- /** Creation date of the reference. */
3489
- createdAt?: Date;
3490
- /** Type of reference (link, exclusive, read_only). */
3491
- type: ReferenceType;
3492
- /** Status of reference (attaching, attached, detaching). */
3493
- status: ReferenceStatus;
3494
- }
3495
3495
  interface CreateVolumeRequestFromEmpty {
3496
3496
  /** Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size. */
3497
3497
  size: number;
@@ -3506,14 +3506,14 @@ interface CreateVolumeRequestFromSnapshot {
3506
3506
  /** Source snapshot from which volume will be created. */
3507
3507
  snapshotId: string;
3508
3508
  }
3509
- interface SnapshotSummary {
3509
+ interface Snapshot$3 {
3510
3510
  /** UUID of the snapshot. */
3511
3511
  id: string;
3512
3512
  /** Name of the snapshot. */
3513
3513
  name: string;
3514
- /** If the parent volume has been deleted, value is null. */
3514
+ /** If the parent volume was deleted, value is null. */
3515
3515
  parentVolume?: SnapshotParentVolume;
3516
- /** Size of the snapshot in bytes. */
3516
+ /** Size in bytes of the snapshot. */
3517
3517
  size: number;
3518
3518
  /** UUID of the project the snapshot belongs to. */
3519
3519
  projectId: string;
@@ -3521,11 +3521,13 @@ interface SnapshotSummary {
3521
3521
  createdAt?: Date;
3522
3522
  /** Last modification date of the properties of a snapshot. */
3523
3523
  updatedAt?: Date;
3524
+ /** List of the references to the snapshot. */
3525
+ references: Reference$1[];
3524
3526
  /** Current status of the snapshot (available, in_use, ...). */
3525
3527
  status: SnapshotStatus$2;
3526
3528
  /** List of tags assigned to the volume. */
3527
3529
  tags: string[];
3528
- /** Snapshot Availability Zone. */
3530
+ /** Snapshot zone. */
3529
3531
  zone: Zone;
3530
3532
  /** Storage class of the snapshot. */
3531
3533
  class: StorageClass$2;
@@ -3661,7 +3663,7 @@ type ListSnapshotsRequest$4 = {
3661
3663
  };
3662
3664
  interface ListSnapshotsResponse$3 {
3663
3665
  /** Paginated returned list of snapshots. */
3664
- snapshots: SnapshotSummary[];
3666
+ snapshots: Snapshot$3[];
3665
3667
  /** Total number of snpashots in the project. */
3666
3668
  totalCount: number;
3667
3669
  }
@@ -3712,32 +3714,6 @@ interface ListVolumesResponse$2 {
3712
3714
  /** Total number of volumes in the project. */
3713
3715
  totalCount: number;
3714
3716
  }
3715
- interface Snapshot$3 {
3716
- /** UUID of the snapshot. */
3717
- id: string;
3718
- /** Name of the snapshot. */
3719
- name: string;
3720
- /** If the parent volume was deleted, value is null. */
3721
- parentVolume?: SnapshotParentVolume;
3722
- /** Size in bytes of the snapshot. */
3723
- size: number;
3724
- /** UUID of the project the snapshot belongs to. */
3725
- projectId: string;
3726
- /** Creation date of the snapshot. */
3727
- createdAt?: Date;
3728
- /** Last modification date of the properties of a snapshot. */
3729
- updatedAt?: Date;
3730
- /** List of the references to the snapshot. */
3731
- references: Reference$1[];
3732
- /** Current status of the snapshot (available, in_use, ...). */
3733
- status: SnapshotStatus$2;
3734
- /** List of tags assigned to the volume. */
3735
- tags: string[];
3736
- /** Snapshot zone. */
3737
- zone: Zone;
3738
- /** Storage class of the snapshot. */
3739
- class: StorageClass$2;
3740
- }
3741
3717
  type UpdateSnapshotRequest$3 = {
3742
3718
  /** Zone to target. If none is passed will use default zone from the config. */
3743
3719
  zone?: Zone;
@@ -3857,8 +3833,8 @@ declare class API$r extends API$x {
3857
3833
  * @returns A Promise of ListSnapshotsResponse
3858
3834
  */
3859
3835
  listSnapshots: (request?: Readonly<ListSnapshotsRequest$4>) => Promise<ListSnapshotsResponse$3> & {
3860
- all: () => Promise<SnapshotSummary[]>;
3861
- [Symbol.asyncIterator]: () => AsyncGenerator<SnapshotSummary[], void, void>;
3836
+ all: () => Promise<Snapshot$3[]>;
3837
+ [Symbol.asyncIterator]: () => AsyncGenerator<Snapshot$3[], void, void>;
3862
3838
  };
3863
3839
  /**
3864
3840
  * Get a snapshot. Retrieve technical information about a specific snapshot.
@@ -3965,11 +3941,10 @@ declare const index_gen$q_REFERENCE_TRANSIENT_STATUSES: typeof REFERENCE_TRANSIE
3965
3941
  type index_gen$q_ReferenceStatus = ReferenceStatus;
3966
3942
  type index_gen$q_ReferenceType = ReferenceType;
3967
3943
  type index_gen$q_SnapshotParentVolume = SnapshotParentVolume;
3968
- type index_gen$q_SnapshotSummary = SnapshotSummary;
3969
3944
  type index_gen$q_VolumeSpecifications = VolumeSpecifications;
3970
3945
  type index_gen$q_VolumeStatus = VolumeStatus;
3971
3946
  declare namespace index_gen$q {
3972
- export { API$r as API, type CreateSnapshotRequest$4 as CreateSnapshotRequest, type CreateVolumeRequest$3 as CreateVolumeRequest, type index_gen$q_CreateVolumeRequestFromEmpty as CreateVolumeRequestFromEmpty, type index_gen$q_CreateVolumeRequestFromSnapshot as CreateVolumeRequestFromSnapshot, type DeleteSnapshotRequest$3 as DeleteSnapshotRequest, type DeleteVolumeRequest$2 as DeleteVolumeRequest, type GetSnapshotRequest$3 as GetSnapshotRequest, type GetVolumeRequest$2 as GetVolumeRequest, type ListSnapshotsRequest$4 as ListSnapshotsRequest, type ListSnapshotsRequestOrderBy$2 as ListSnapshotsRequestOrderBy, type ListSnapshotsResponse$3 as ListSnapshotsResponse, type ListVolumeTypesRequest$1 as ListVolumeTypesRequest, type index_gen$q_ListVolumeTypesResponse as ListVolumeTypesResponse, type ListVolumesRequest$3 as ListVolumesRequest, type ListVolumesRequestOrderBy$1 as ListVolumesRequestOrderBy, type ListVolumesResponse$2 as ListVolumesResponse, index_gen$q_REFERENCE_TRANSIENT_STATUSES as REFERENCE_TRANSIENT_STATUSES, type Reference$1 as Reference, type index_gen$q_ReferenceStatus as ReferenceStatus, type index_gen$q_ReferenceType as ReferenceType, SNAPSHOT_TRANSIENT_STATUSES$3 as SNAPSHOT_TRANSIENT_STATUSES, type Snapshot$3 as Snapshot, type index_gen$q_SnapshotParentVolume as SnapshotParentVolume, type SnapshotStatus$2 as SnapshotStatus, type index_gen$q_SnapshotSummary as SnapshotSummary, type StorageClass$2 as StorageClass, type UpdateSnapshotRequest$3 as UpdateSnapshotRequest, type UpdateVolumeRequest$2 as UpdateVolumeRequest, VOLUME_TRANSIENT_STATUSES$1 as VOLUME_TRANSIENT_STATUSES, validationRules_gen$c as ValidationRules, type Volume$4 as Volume, type index_gen$q_VolumeSpecifications as VolumeSpecifications, type index_gen$q_VolumeStatus as VolumeStatus, type VolumeType$3 as VolumeType };
3947
+ export { API$r as API, type CreateSnapshotRequest$4 as CreateSnapshotRequest, type CreateVolumeRequest$3 as CreateVolumeRequest, type index_gen$q_CreateVolumeRequestFromEmpty as CreateVolumeRequestFromEmpty, type index_gen$q_CreateVolumeRequestFromSnapshot as CreateVolumeRequestFromSnapshot, type DeleteSnapshotRequest$3 as DeleteSnapshotRequest, type DeleteVolumeRequest$2 as DeleteVolumeRequest, type GetSnapshotRequest$3 as GetSnapshotRequest, type GetVolumeRequest$2 as GetVolumeRequest, type ListSnapshotsRequest$4 as ListSnapshotsRequest, type ListSnapshotsRequestOrderBy$2 as ListSnapshotsRequestOrderBy, type ListSnapshotsResponse$3 as ListSnapshotsResponse, type ListVolumeTypesRequest$1 as ListVolumeTypesRequest, type index_gen$q_ListVolumeTypesResponse as ListVolumeTypesResponse, type ListVolumesRequest$3 as ListVolumesRequest, type ListVolumesRequestOrderBy$1 as ListVolumesRequestOrderBy, type ListVolumesResponse$2 as ListVolumesResponse, index_gen$q_REFERENCE_TRANSIENT_STATUSES as REFERENCE_TRANSIENT_STATUSES, type Reference$1 as Reference, type index_gen$q_ReferenceStatus as ReferenceStatus, type index_gen$q_ReferenceType as ReferenceType, SNAPSHOT_TRANSIENT_STATUSES$3 as SNAPSHOT_TRANSIENT_STATUSES, type Snapshot$3 as Snapshot, type index_gen$q_SnapshotParentVolume as SnapshotParentVolume, type SnapshotStatus$2 as SnapshotStatus, type StorageClass$2 as StorageClass, type UpdateSnapshotRequest$3 as UpdateSnapshotRequest, type UpdateVolumeRequest$2 as UpdateVolumeRequest, VOLUME_TRANSIENT_STATUSES$1 as VOLUME_TRANSIENT_STATUSES, validationRules_gen$c as ValidationRules, type Volume$4 as Volume, type index_gen$q_VolumeSpecifications as VolumeSpecifications, type index_gen$q_VolumeStatus as VolumeStatus, type VolumeType$3 as VolumeType };
3973
3948
  }
3974
3949
 
3975
3950
  declare namespace index$t {
@@ -5621,9 +5596,13 @@ declare class API$p extends API$x {
5621
5596
  deleteCron: (request: Readonly<DeleteCronRequest$1>) => Promise<Cron$1>;
5622
5597
  protected pageOfListLogs: (request: Readonly<ListLogsRequest$3>) => Promise<ListLogsResponse$2>;
5623
5598
  /**
5624
- * List your container logs. List the logs of the container with the specified
5625
- * ID.
5599
+ * Deprecated (replaced by
5600
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
5601
+ * container logs. Deprecated (replaced by
5602
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
5603
+ * logs of the container with the specified ID.
5626
5604
  *
5605
+ * @deprecated
5627
5606
  * @param request - The request {@link ListLogsRequest}
5628
5607
  * @returns A Promise of ListLogsResponse
5629
5608
  */
@@ -9644,6 +9623,13 @@ declare class API$m extends API$x {
9644
9623
  * @returns A Promise of ListFlexibleIPsResponse
9645
9624
  */
9646
9625
  listFlexibleIPs: (request?: Readonly<ListFlexibleIPsRequest$1>) => Promise<ListFlexibleIPsResponse> & {
9626
+ /**
9627
+ * Waits for {@link FlexibleIP} to be in a final state.
9628
+ *
9629
+ * @param request - The request {@link GetFlexibleIPRequest}
9630
+ * @param options - The waiting options
9631
+ * @returns A Promise of FlexibleIP
9632
+ */
9647
9633
  all: () => Promise<FlexibleIP[]>;
9648
9634
  [Symbol.asyncIterator]: () => AsyncGenerator<FlexibleIP[], void, void>;
9649
9635
  };
@@ -10812,9 +10798,13 @@ declare class API$l extends API$x {
10812
10798
  deleteCron: (request: Readonly<DeleteCronRequest>) => Promise<Cron>;
10813
10799
  protected pageOfListLogs: (request: Readonly<ListLogsRequest$2>) => Promise<ListLogsResponse$1>;
10814
10800
  /**
10815
- * List application logs. List the application logs of the function with the
10816
- * specified ID.
10801
+ * Deprecated (replaced by
10802
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
10803
+ * application logs. Deprecated (replaced by
10804
+ * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
10805
+ * application logs of the function with the specified ID.
10817
10806
  *
10807
+ * @deprecated
10818
10808
  * @param request - The request {@link ListLogsRequest}
10819
10809
  * @returns A Promise of ListLogsResponse
10820
10810
  */
@@ -16853,7 +16843,7 @@ declare namespace index$j {
16853
16843
  }
16854
16844
 
16855
16845
  type ListIPsRequestOrderBy$1 = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'attached_at_desc' | 'attached_at_asc';
16856
- type ResourceType = 'unknown_type' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic';
16846
+ type ResourceType = 'unknown_type' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic' | 'llm_deployment';
16857
16847
  interface Resource {
16858
16848
  /** Type of resource the IP is attached to. */
16859
16849
  type: ResourceType;
@@ -17693,7 +17683,7 @@ declare namespace index$h {
17693
17683
  export { index_gen$g as v1alpha1 };
17694
17684
  }
17695
17685
 
17696
- type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succeeded' | 'failed' | 'canceled';
17686
+ type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'internal_error';
17697
17687
  type ListJobDefinitionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
17698
17688
  type ListJobRunsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
17699
17689
  interface CronSchedule$1 {
@@ -17718,6 +17708,7 @@ interface JobDefinition {
17718
17708
  description: string;
17719
17709
  jobTimeout?: string;
17720
17710
  cronSchedule?: CronSchedule$1;
17711
+ localStorageCapacity: number;
17721
17712
  /**
17722
17713
  * Region to target. If none is passed will use default region from the
17723
17714
  * config.
@@ -17738,6 +17729,7 @@ interface JobRun {
17738
17729
  memoryLimit: number;
17739
17730
  command: string;
17740
17731
  environmentVariables: Record<string, string>;
17732
+ localStorageCapacity: number;
17741
17733
  /**
17742
17734
  * Region to target. If none is passed will use default region from the
17743
17735
  * config.
@@ -17758,8 +17750,10 @@ type CreateJobDefinitionRequest$1 = {
17758
17750
  name?: string;
17759
17751
  /** CPU limit of the job. */
17760
17752
  cpuLimit: number;
17761
- /** Memory limit of the job. */
17753
+ /** Memory limit of the job (in MiB). */
17762
17754
  memoryLimit: number;
17755
+ /** Local storage capacity of the job (in MiB). */
17756
+ localStorageCapacity?: number;
17763
17757
  /** Image to use for the job. */
17764
17758
  imageUri: string;
17765
17759
  /** Startup command. */
@@ -17832,7 +17826,7 @@ interface ListJobRunsResponse {
17832
17826
  jobRuns: JobRun[];
17833
17827
  totalCount: number;
17834
17828
  }
17835
- type StartJobDefinitionRequest = {
17829
+ type StartJobDefinitionRequest$1 = {
17836
17830
  /**
17837
17831
  * Region to target. If none is passed will use default region from the
17838
17832
  * config.
@@ -17847,6 +17841,9 @@ type StartJobDefinitionRequest = {
17847
17841
  /** Number of jobs to run. */
17848
17842
  replicas?: number;
17849
17843
  };
17844
+ interface StartJobDefinitionResponse {
17845
+ jobRuns: JobRun[];
17846
+ }
17850
17847
  type StopJobRunRequest = {
17851
17848
  /**
17852
17849
  * Region to target. If none is passed will use default region from the
@@ -17868,8 +17865,10 @@ type UpdateJobDefinitionRequest$1 = {
17868
17865
  name?: string;
17869
17866
  /** CPU limit of the job. */
17870
17867
  cpuLimit?: number;
17871
- /** Memory limit of the job. */
17868
+ /** Memory limit of the job (in MiB). */
17872
17869
  memoryLimit?: number;
17870
+ /** Local storage capacity of the job (in MiB). */
17871
+ localStorageCapacity?: number;
17873
17872
  /** Image to use for the job. */
17874
17873
  imageUri?: string;
17875
17874
  /** Startup command. */
@@ -17931,9 +17930,9 @@ declare class API$f extends API$x {
17931
17930
  * new job run.
17932
17931
  *
17933
17932
  * @param request - The request {@link StartJobDefinitionRequest}
17934
- * @returns A Promise of JobRun
17933
+ * @returns A Promise of StartJobDefinitionResponse
17935
17934
  */
17936
- startJobDefinition: (request: Readonly<StartJobDefinitionRequest>) => Promise<JobRun>;
17935
+ startJobDefinition: (request: Readonly<StartJobDefinitionRequest$1>) => Promise<StartJobDefinitionResponse>;
17937
17936
  /**
17938
17937
  * Get a job run by its unique identifier.
17939
17938
  *
@@ -17971,6 +17970,9 @@ declare const CreateJobDefinitionRequest: {
17971
17970
  imageUri: {
17972
17971
  pattern: RegExp;
17973
17972
  };
17973
+ localStorageCapacity: {
17974
+ greaterThan: number;
17975
+ };
17974
17976
  memoryLimit: {
17975
17977
  greaterThan: number;
17976
17978
  };
@@ -18016,6 +18018,11 @@ declare const ListJobRunsRequest: {
18016
18018
  lessThanOrEqual: number;
18017
18019
  };
18018
18020
  };
18021
+ declare const StartJobDefinitionRequest: {
18022
+ replicas: {
18023
+ greaterThan: number;
18024
+ };
18025
+ };
18019
18026
  declare const UpdateJobDefinitionRequest: {
18020
18027
  cpuLimit: {
18021
18028
  greaterThan: number;
@@ -18023,6 +18030,9 @@ declare const UpdateJobDefinitionRequest: {
18023
18030
  imageUri: {
18024
18031
  pattern: RegExp;
18025
18032
  };
18033
+ localStorageCapacity: {
18034
+ greaterThan: number;
18035
+ };
18026
18036
  memoryLimit: {
18027
18037
  greaterThan: number;
18028
18038
  };
@@ -18046,10 +18056,11 @@ declare const validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig
18046
18056
  declare const validationRules_gen$5_CronSchedule: typeof CronSchedule;
18047
18057
  declare const validationRules_gen$5_ListJobDefinitionsRequest: typeof ListJobDefinitionsRequest;
18048
18058
  declare const validationRules_gen$5_ListJobRunsRequest: typeof ListJobRunsRequest;
18059
+ declare const validationRules_gen$5_StartJobDefinitionRequest: typeof StartJobDefinitionRequest;
18049
18060
  declare const validationRules_gen$5_UpdateJobDefinitionRequest: typeof UpdateJobDefinitionRequest;
18050
18061
  declare const validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig: typeof UpdateJobDefinitionRequestCronScheduleConfig;
18051
18062
  declare namespace validationRules_gen$5 {
18052
- export { validationRules_gen$5_CreateJobDefinitionRequest as CreateJobDefinitionRequest, validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig as CreateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5_CronSchedule as CronSchedule, validationRules_gen$5_ListJobDefinitionsRequest as ListJobDefinitionsRequest, validationRules_gen$5_ListJobRunsRequest as ListJobRunsRequest, validationRules_gen$5_UpdateJobDefinitionRequest as UpdateJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig as UpdateJobDefinitionRequestCronScheduleConfig };
18063
+ export { validationRules_gen$5_CreateJobDefinitionRequest as CreateJobDefinitionRequest, validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig as CreateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5_CronSchedule as CronSchedule, validationRules_gen$5_ListJobDefinitionsRequest as ListJobDefinitionsRequest, validationRules_gen$5_ListJobRunsRequest as ListJobRunsRequest, validationRules_gen$5_StartJobDefinitionRequest as StartJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequest as UpdateJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig as UpdateJobDefinitionRequestCronScheduleConfig };
18053
18064
  }
18054
18065
 
18055
18066
  type index_gen$f_DeleteJobDefinitionRequest = DeleteJobDefinitionRequest;
@@ -18063,10 +18074,10 @@ type index_gen$f_ListJobDefinitionsRequestOrderBy = ListJobDefinitionsRequestOrd
18063
18074
  type index_gen$f_ListJobDefinitionsResponse = ListJobDefinitionsResponse;
18064
18075
  type index_gen$f_ListJobRunsRequestOrderBy = ListJobRunsRequestOrderBy;
18065
18076
  type index_gen$f_ListJobRunsResponse = ListJobRunsResponse;
18066
- type index_gen$f_StartJobDefinitionRequest = StartJobDefinitionRequest;
18077
+ type index_gen$f_StartJobDefinitionResponse = StartJobDefinitionResponse;
18067
18078
  type index_gen$f_StopJobRunRequest = StopJobRunRequest;
18068
18079
  declare namespace index_gen$f {
18069
- export { API$f as API, type CreateJobDefinitionRequest$1 as CreateJobDefinitionRequest, type CreateJobDefinitionRequestCronScheduleConfig$1 as CreateJobDefinitionRequestCronScheduleConfig, type CronSchedule$1 as CronSchedule, type index_gen$f_DeleteJobDefinitionRequest as DeleteJobDefinitionRequest, type index_gen$f_GetJobDefinitionRequest as GetJobDefinitionRequest, type index_gen$f_GetJobRunRequest as GetJobRunRequest, index_gen$f_JOB_RUN_TRANSIENT_STATUSES as JOB_RUN_TRANSIENT_STATUSES, type index_gen$f_JobDefinition as JobDefinition, type index_gen$f_JobRun as JobRun, type index_gen$f_JobRunState as JobRunState, type ListJobDefinitionsRequest$1 as ListJobDefinitionsRequest, type index_gen$f_ListJobDefinitionsRequestOrderBy as ListJobDefinitionsRequestOrderBy, type index_gen$f_ListJobDefinitionsResponse as ListJobDefinitionsResponse, type ListJobRunsRequest$1 as ListJobRunsRequest, type index_gen$f_ListJobRunsRequestOrderBy as ListJobRunsRequestOrderBy, type index_gen$f_ListJobRunsResponse as ListJobRunsResponse, type index_gen$f_StartJobDefinitionRequest as StartJobDefinitionRequest, type index_gen$f_StopJobRunRequest as StopJobRunRequest, type UpdateJobDefinitionRequest$1 as UpdateJobDefinitionRequest, type UpdateJobDefinitionRequestCronScheduleConfig$1 as UpdateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5 as ValidationRules };
18080
+ export { API$f as API, type CreateJobDefinitionRequest$1 as CreateJobDefinitionRequest, type CreateJobDefinitionRequestCronScheduleConfig$1 as CreateJobDefinitionRequestCronScheduleConfig, type CronSchedule$1 as CronSchedule, type index_gen$f_DeleteJobDefinitionRequest as DeleteJobDefinitionRequest, type index_gen$f_GetJobDefinitionRequest as GetJobDefinitionRequest, type index_gen$f_GetJobRunRequest as GetJobRunRequest, index_gen$f_JOB_RUN_TRANSIENT_STATUSES as JOB_RUN_TRANSIENT_STATUSES, type index_gen$f_JobDefinition as JobDefinition, type index_gen$f_JobRun as JobRun, type index_gen$f_JobRunState as JobRunState, type ListJobDefinitionsRequest$1 as ListJobDefinitionsRequest, type index_gen$f_ListJobDefinitionsRequestOrderBy as ListJobDefinitionsRequestOrderBy, type index_gen$f_ListJobDefinitionsResponse as ListJobDefinitionsResponse, type ListJobRunsRequest$1 as ListJobRunsRequest, type index_gen$f_ListJobRunsRequestOrderBy as ListJobRunsRequestOrderBy, type index_gen$f_ListJobRunsResponse as ListJobRunsResponse, type StartJobDefinitionRequest$1 as StartJobDefinitionRequest, type index_gen$f_StartJobDefinitionResponse as StartJobDefinitionResponse, type index_gen$f_StopJobRunRequest as StopJobRunRequest, type UpdateJobDefinitionRequest$1 as UpdateJobDefinitionRequest, type UpdateJobDefinitionRequestCronScheduleConfig$1 as UpdateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5 as ValidationRules };
18070
18081
  }
18071
18082
 
18072
18083
  declare namespace index$g {
@@ -1,4 +1,4 @@
1
- const version = 'v2.14.0';
1
+ const version = 'v2.16.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -30,10 +30,10 @@
30
30
  },
31
31
  "type": "module",
32
32
  "dependencies": {
33
- "@scaleway/random-name": "^4.0.3"
33
+ "@scaleway/random-name": "4.0.3"
34
34
  },
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "be0ae25435fdaf070491fd28121cfe844d907b10"
38
+ "gitHead": "a1535f4aee99d01c72320ba30cc9416b254175d2"
39
39
  }