@scaleway/sdk 2.16.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,
@@ -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,
@@ -93,6 +95,7 @@ const marshalCreateJobDefinitionRequest = (request, defaults) => ({
93
95
  environment_variables: request.environmentVariables !== undefined ? request.environmentVariables : undefined,
94
96
  image_uri: request.imageUri,
95
97
  job_timeout: request.jobTimeout,
98
+ local_storage_capacity: request.localStorageCapacity,
96
99
  memory_limit: request.memoryLimit,
97
100
  name: request.name || randomName('job'),
98
101
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -114,6 +117,7 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
114
117
  environment_variables: request.environmentVariables,
115
118
  image_uri: request.imageUri,
116
119
  job_timeout: request.jobTimeout,
120
+ local_storage_capacity: request.localStorageCapacity,
117
121
  memory_limit: request.memoryLimit,
118
122
  name: request.name
119
123
  });
@@ -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
  },
@@ -65,6 +68,9 @@ const UpdateJobDefinitionRequest = {
65
68
  imageUri: {
66
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,}))?$/
67
70
  },
71
+ localStorageCapacity: {
72
+ greaterThan: 0
73
+ },
68
74
  memoryLimit: {
69
75
  greaterThan: 0
70
76
  },
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.15.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,
@@ -16461,6 +16443,7 @@ const unmarshalJobDefinition = data => {
16461
16443
  id: data.id,
16462
16444
  imageUri: data.image_uri,
16463
16445
  jobTimeout: data.job_timeout,
16446
+ localStorageCapacity: data.local_storage_capacity,
16464
16447
  memoryLimit: data.memory_limit,
16465
16448
  name: data.name,
16466
16449
  projectId: data.project_id,
@@ -16481,6 +16464,7 @@ const unmarshalJobRun = data => {
16481
16464
  exitCode: data.exit_code,
16482
16465
  id: data.id,
16483
16466
  jobDefinitionId: data.job_definition_id,
16467
+ localStorageCapacity: data.local_storage_capacity,
16484
16468
  memoryLimit: data.memory_limit,
16485
16469
  region: data.region,
16486
16470
  runDuration: data.run_duration,
@@ -16527,6 +16511,7 @@ const marshalCreateJobDefinitionRequest = (request, defaults) => ({
16527
16511
  environment_variables: request.environmentVariables !== undefined ? request.environmentVariables : undefined,
16528
16512
  image_uri: request.imageUri,
16529
16513
  job_timeout: request.jobTimeout,
16514
+ local_storage_capacity: request.localStorageCapacity,
16530
16515
  memory_limit: request.memoryLimit,
16531
16516
  name: request.name || randomName('job'),
16532
16517
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -16548,6 +16533,7 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
16548
16533
  environment_variables: request.environmentVariables,
16549
16534
  image_uri: request.imageUri,
16550
16535
  job_timeout: request.jobTimeout,
16536
+ local_storage_capacity: request.localStorageCapacity,
16551
16537
  memory_limit: request.memoryLimit,
16552
16538
  name: request.name
16553
16539
  });
@@ -16692,6 +16678,9 @@ const CreateJobDefinitionRequest = {
16692
16678
  imageUri: {
16693
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,}))?$/
16694
16680
  },
16681
+ localStorageCapacity: {
16682
+ greaterThan: 0
16683
+ },
16695
16684
  memoryLimit: {
16696
16685
  greaterThan: 0
16697
16686
  },
@@ -16749,6 +16738,9 @@ const UpdateJobDefinitionRequest = {
16749
16738
  imageUri: {
16750
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,}))?$/
16751
16740
  },
16741
+ localStorageCapacity: {
16742
+ greaterThan: 0
16743
+ },
16752
16744
  memoryLimit: {
16753
16745
  greaterThan: 0
16754
16746
  },
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 {
@@ -9648,6 +9623,13 @@ declare class API$m extends API$x {
9648
9623
  * @returns A Promise of ListFlexibleIPsResponse
9649
9624
  */
9650
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
+ */
9651
9633
  all: () => Promise<FlexibleIP[]>;
9652
9634
  [Symbol.asyncIterator]: () => AsyncGenerator<FlexibleIP[], void, void>;
9653
9635
  };
@@ -17726,6 +17708,7 @@ interface JobDefinition {
17726
17708
  description: string;
17727
17709
  jobTimeout?: string;
17728
17710
  cronSchedule?: CronSchedule$1;
17711
+ localStorageCapacity: number;
17729
17712
  /**
17730
17713
  * Region to target. If none is passed will use default region from the
17731
17714
  * config.
@@ -17746,6 +17729,7 @@ interface JobRun {
17746
17729
  memoryLimit: number;
17747
17730
  command: string;
17748
17731
  environmentVariables: Record<string, string>;
17732
+ localStorageCapacity: number;
17749
17733
  /**
17750
17734
  * Region to target. If none is passed will use default region from the
17751
17735
  * config.
@@ -17766,8 +17750,10 @@ type CreateJobDefinitionRequest$1 = {
17766
17750
  name?: string;
17767
17751
  /** CPU limit of the job. */
17768
17752
  cpuLimit: number;
17769
- /** Memory limit of the job. */
17753
+ /** Memory limit of the job (in MiB). */
17770
17754
  memoryLimit: number;
17755
+ /** Local storage capacity of the job (in MiB). */
17756
+ localStorageCapacity?: number;
17771
17757
  /** Image to use for the job. */
17772
17758
  imageUri: string;
17773
17759
  /** Startup command. */
@@ -17879,8 +17865,10 @@ type UpdateJobDefinitionRequest$1 = {
17879
17865
  name?: string;
17880
17866
  /** CPU limit of the job. */
17881
17867
  cpuLimit?: number;
17882
- /** Memory limit of the job. */
17868
+ /** Memory limit of the job (in MiB). */
17883
17869
  memoryLimit?: number;
17870
+ /** Local storage capacity of the job (in MiB). */
17871
+ localStorageCapacity?: number;
17884
17872
  /** Image to use for the job. */
17885
17873
  imageUri?: string;
17886
17874
  /** Startup command. */
@@ -17982,6 +17970,9 @@ declare const CreateJobDefinitionRequest: {
17982
17970
  imageUri: {
17983
17971
  pattern: RegExp;
17984
17972
  };
17973
+ localStorageCapacity: {
17974
+ greaterThan: number;
17975
+ };
17985
17976
  memoryLimit: {
17986
17977
  greaterThan: number;
17987
17978
  };
@@ -18039,6 +18030,9 @@ declare const UpdateJobDefinitionRequest: {
18039
18030
  imageUri: {
18040
18031
  pattern: RegExp;
18041
18032
  };
18033
+ localStorageCapacity: {
18034
+ greaterThan: number;
18035
+ };
18042
18036
  memoryLimit: {
18043
18037
  greaterThan: number;
18044
18038
  };
@@ -1,4 +1,4 @@
1
- const version = 'v2.15.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.16.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": "83b3535b700c5732c56526e88e7864e487553f74"
38
+ "gitHead": "a1535f4aee99d01c72320ba30cc9416b254175d2"
39
39
  }