@scaleway/sdk 2.72.0 → 2.73.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.
Files changed (146) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/types.gen.d.ts +187 -85
  5. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  6. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  7. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  8. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  9. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  10. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  11. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  12. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  13. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  14. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  15. package/dist/api/baremetal/v1/api.gen.js +28 -61
  16. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  17. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  18. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  19. package/dist/api/baremetal/v3/api.gen.js +7 -14
  20. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  21. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  22. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  23. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  24. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  25. package/dist/api/block/v1/api.gen.cjs +37 -55
  26. package/dist/api/block/v1/api.gen.d.ts +19 -37
  27. package/dist/api/block/v1/api.gen.js +37 -55
  28. package/dist/api/block/v1/types.gen.d.ts +306 -125
  29. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  30. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  31. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  32. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  33. package/dist/api/cockpit/v1/api.gen.cjs +100 -156
  34. package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
  35. package/dist/api/cockpit/v1/api.gen.js +100 -156
  36. package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
  37. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  38. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  39. package/dist/api/container/v1beta1/api.gen.js +7 -14
  40. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  41. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  42. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  43. package/dist/api/dedibox/v1/api.gen.js +45 -69
  44. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  45. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  46. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  47. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  48. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  49. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  50. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  51. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  52. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  53. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  54. package/dist/api/inference/v1/api.gen.cjs +8 -11
  55. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  56. package/dist/api/inference/v1/api.gen.js +8 -11
  57. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  58. package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
  59. package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
  60. package/dist/api/inference/v1beta1/api.gen.js +8 -11
  61. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  62. package/dist/api/instance/v1/api.gen.cjs +64 -113
  63. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  64. package/dist/api/instance/v1/api.gen.js +64 -113
  65. package/dist/api/instance/v1/types.gen.d.ts +1351 -598
  66. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  67. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  68. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  69. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  70. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  71. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  72. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  73. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  74. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  75. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  76. package/dist/api/iot/v1/api.gen.cjs +37 -70
  77. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  78. package/dist/api/iot/v1/api.gen.js +37 -70
  79. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  80. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  81. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  82. package/dist/api/ipam/v1/api.gen.js +6 -26
  83. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  84. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  85. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  86. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  87. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  88. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  89. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  90. package/dist/api/k8s/v1/api.gen.js +33 -78
  91. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  92. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  93. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  94. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  95. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  96. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  97. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  98. package/dist/api/marketplace/v2/api.gen.js +8 -21
  99. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  100. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  101. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  102. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  103. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  104. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  105. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  106. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  107. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  108. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  109. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  110. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  111. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  112. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  113. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  114. package/dist/api/rdb/v1/api.gen.js +62 -202
  115. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  116. package/dist/api/redis/v1/api.gen.cjs +23 -83
  117. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  118. package/dist/api/redis/v1/api.gen.js +23 -83
  119. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  120. package/dist/api/registry/v1/api.gen.cjs +12 -40
  121. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  122. package/dist/api/registry/v1/api.gen.js +12 -40
  123. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  124. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  125. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  126. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  127. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  128. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  129. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  130. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  131. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  132. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  133. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  134. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  135. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  136. package/dist/api/test/v1/api.gen.cjs +8 -11
  137. package/dist/api/test/v1/api.gen.d.ts +6 -9
  138. package/dist/api/test/v1/api.gen.js +8 -11
  139. package/dist/api/test/v1/types.gen.d.ts +21 -10
  140. package/dist/client/dist/package.json.cjs +1 -1
  141. package/dist/client/dist/package.json.js +1 -1
  142. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  143. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  144. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  145. package/package.json +2 -2
  146. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -3,16 +3,15 @@ import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client';
3
3
  import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
4
4
  /**
5
5
  * Block Storage API.
6
- *
7
- * This API allows you to manage your Block Storage volumes.
6
+
7
+ This API allows you to manage your Block Storage volumes.
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available zones of the API. */
11
11
  static readonly LOCALITIES: ScwZone[];
12
12
  protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse>;
13
13
  /**
14
- * List volume types. List all available volume types in a specified zone. The
15
- * volume types listed are ordered by name in ascending order.
14
+ * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
16
15
  *
17
16
  * @param request - The request {@link ListVolumeTypesRequest}
18
17
  * @returns A Promise of ListVolumeTypesResponse
@@ -23,9 +22,7 @@ export declare class API extends ParentAPI {
23
22
  };
24
23
  protected pageOfListVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse>;
25
24
  /**
26
- * List volumes. List all existing volumes in a specified zone. By default,
27
- * the volumes listed are ordered by creation date in ascending order. This
28
- * can be modified via the `order_by` field.
25
+ * List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
29
26
  *
30
27
  * @param request - The request {@link ListVolumesRequest}
31
28
  * @returns A Promise of ListVolumesResponse
@@ -35,20 +32,15 @@ export declare class API extends ParentAPI {
35
32
  [Symbol.asyncIterator]: () => AsyncGenerator<Volume[], void, void>;
36
33
  };
37
34
  /**
38
- * Create a volume. To create a new volume from scratch, you must specify
39
- * `from_empty` and the `size`. To create a volume from an existing snapshot,
40
- * specify `from_snapshot` and the `snapshot_id` in the request payload
41
- * instead, size is optional and can be specified if you need to extend the
42
- * original size. The volume will take on the same volume class and underlying
43
- * IOPS limitations as the original snapshot.
35
+ * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
36
+ To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
44
37
  *
45
38
  * @param request - The request {@link CreateVolumeRequest}
46
39
  * @returns A Promise of Volume
47
40
  */
48
41
  createVolume: (request?: Readonly<CreateVolumeRequest>) => Promise<Volume>;
49
42
  /**
50
- * Get a volume. Retrieve technical information about a specific volume.
51
- * Details such as size, type, and status are returned in the response.
43
+ * Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
52
44
  *
53
45
  * @param request - The request {@link GetVolumeRequest}
54
46
  * @returns A Promise of Volume
@@ -63,17 +55,14 @@ export declare class API extends ParentAPI {
63
55
  */
64
56
  waitForVolume: (request: Readonly<GetVolumeRequest>, options?: Readonly<WaitForOptions<Volume>>) => Promise<Volume>;
65
57
  /**
66
- * Delete a detached volume. You must specify the `volume_id` of the volume
67
- * you want to delete. The volume must not be in the `in_use` status.
58
+ * Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
68
59
  *
69
60
  * @param request - The request {@link DeleteVolumeRequest}
70
61
  */
71
62
  deleteVolume: (request: Readonly<DeleteVolumeRequest>) => Promise<void>;
72
63
  /**
73
- * Update a volume. Update the technical details of a volume, such as its
74
- * name, tags, or its new size and `volume_type` (within the same Block
75
- * Storage class). You can only resize a volume to a larger size. It is
76
- * currently not possible to change your Block Storage Class.
64
+ * Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
65
+ You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
77
66
  *
78
67
  * @param request - The request {@link UpdateVolumeRequest}
79
68
  * @returns A Promise of Volume
@@ -81,9 +70,7 @@ export declare class API extends ParentAPI {
81
70
  updateVolume: (request: Readonly<UpdateVolumeRequest>) => Promise<Volume>;
82
71
  protected pageOfListSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse>;
83
72
  /**
84
- * List all snapshots. List all available snapshots in a specified zone. By
85
- * default, the snapshots listed are ordered by creation date in ascending
86
- * order. This can be modified via the `order_by` field.
73
+ * List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
87
74
  *
88
75
  * @param request - The request {@link ListSnapshotsRequest}
89
76
  * @returns A Promise of ListSnapshotsResponse
@@ -93,9 +80,7 @@ export declare class API extends ParentAPI {
93
80
  [Symbol.asyncIterator]: () => AsyncGenerator<Snapshot[], void, void>;
94
81
  };
95
82
  /**
96
- * Get a snapshot. Retrieve technical information about a specific snapshot.
97
- * Details such as size, volume type, and status are returned in the
98
- * response.
83
+ * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
99
84
  *
100
85
  * @param request - The request {@link GetSnapshotRequest}
101
86
  * @returns A Promise of Snapshot
@@ -110,34 +95,31 @@ export declare class API extends ParentAPI {
110
95
  */
111
96
  waitForSnapshot: (request: Readonly<GetSnapshotRequest>, options?: Readonly<WaitForOptions<Snapshot>>) => Promise<Snapshot>;
112
97
  /**
113
- * Create a snapshot of a volume. To create a snapshot, the volume must be in
114
- * the `in_use` or the `available` status. If your volume is in a transient
115
- * state, you need to wait until the end of the current operation.
98
+ * Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
99
+ If your volume is in a transient state, you need to wait until the end of the current operation.
116
100
  *
117
101
  * @param request - The request {@link CreateSnapshotRequest}
118
102
  * @returns A Promise of Snapshot
119
103
  */
120
104
  createSnapshot: (request: Readonly<CreateSnapshotRequest>) => Promise<Snapshot>;
121
105
  /**
122
- * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
123
- * contain a QCOW2 image. The bucket can be imported into any Availability
124
- * Zone as long as it is in the same region as the bucket.
106
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
107
+ The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
125
108
  *
126
109
  * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
127
110
  * @returns A Promise of Snapshot
128
111
  */
129
112
  importSnapshotFromObjectStorage: (request: Readonly<ImportSnapshotFromObjectStorageRequest>) => Promise<Snapshot>;
130
113
  /**
131
- * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
132
- * exported in QCOW2 format. The snapshot must not be in transient state.
114
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
115
+ The snapshot must not be in transient state.
133
116
  *
134
117
  * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
135
118
  * @returns A Promise of Snapshot
136
119
  */
137
120
  exportSnapshotToObjectStorage: (request: Readonly<ExportSnapshotToObjectStorageRequest>) => Promise<Snapshot>;
138
121
  /**
139
- * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
140
- * want to delete. The snapshot must not be in use.
122
+ * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
141
123
  *
142
124
  * @param request - The request {@link DeleteSnapshotRequest}
143
125
  */
@@ -37,8 +37,7 @@ class API extends API$1 {
37
37
  unmarshalListVolumeTypesResponse
38
38
  );
39
39
  /**
40
- * List volume types. List all available volume types in a specified zone. The
41
- * volume types listed are ordered by name in ascending order.
40
+ * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
42
41
  *
43
42
  * @param request - The request {@link ListVolumeTypesRequest}
44
43
  * @returns A Promise of ListVolumeTypesResponse
@@ -65,25 +64,19 @@ class API extends API$1 {
65
64
  unmarshalListVolumesResponse
66
65
  );
67
66
  /**
68
- * List volumes. List all existing volumes in a specified zone. By default,
69
- * the volumes listed are ordered by creation date in ascending order. This
70
- * can be modified via the `order_by` field.
67
+ * List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
71
68
  *
72
69
  * @param request - The request {@link ListVolumesRequest}
73
70
  * @returns A Promise of ListVolumesResponse
74
71
  */
75
72
  listVolumes = (request = {}) => enrichForPagination("volumes", this.pageOfListVolumes, request);
76
73
  /**
77
- * Create a volume. To create a new volume from scratch, you must specify
78
- * `from_empty` and the `size`. To create a volume from an existing snapshot,
79
- * specify `from_snapshot` and the `snapshot_id` in the request payload
80
- * instead, size is optional and can be specified if you need to extend the
81
- * original size. The volume will take on the same volume class and underlying
82
- * IOPS limitations as the original snapshot.
83
- *
84
- * @param request - The request {@link CreateVolumeRequest}
85
- * @returns A Promise of Volume
86
- */
74
+ * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
75
+ To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
76
+ *
77
+ * @param request - The request {@link CreateVolumeRequest}
78
+ * @returns A Promise of Volume
79
+ */
87
80
  createVolume = (request = {}) => this.client.fetch(
88
81
  {
89
82
  body: JSON.stringify(
@@ -96,8 +89,7 @@ class API extends API$1 {
96
89
  unmarshalVolume
97
90
  );
98
91
  /**
99
- * Get a volume. Retrieve technical information about a specific volume.
100
- * Details such as size, type, and status are returned in the response.
92
+ * Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
101
93
  *
102
94
  * @param request - The request {@link GetVolumeRequest}
103
95
  * @returns A Promise of Volume
@@ -125,8 +117,7 @@ class API extends API$1 {
125
117
  options
126
118
  );
127
119
  /**
128
- * Delete a detached volume. You must specify the `volume_id` of the volume
129
- * you want to delete. The volume must not be in the `in_use` status.
120
+ * Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
130
121
  *
131
122
  * @param request - The request {@link DeleteVolumeRequest}
132
123
  */
@@ -135,14 +126,12 @@ class API extends API$1 {
135
126
  path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`
136
127
  });
137
128
  /**
138
- * Update a volume. Update the technical details of a volume, such as its
139
- * name, tags, or its new size and `volume_type` (within the same Block
140
- * Storage class). You can only resize a volume to a larger size. It is
141
- * currently not possible to change your Block Storage Class.
142
- *
143
- * @param request - The request {@link UpdateVolumeRequest}
144
- * @returns A Promise of Volume
145
- */
129
+ * Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
130
+ You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
131
+ *
132
+ * @param request - The request {@link UpdateVolumeRequest}
133
+ * @returns A Promise of Volume
134
+ */
146
135
  updateVolume = (request) => this.client.fetch(
147
136
  {
148
137
  body: JSON.stringify(
@@ -175,18 +164,14 @@ class API extends API$1 {
175
164
  unmarshalListSnapshotsResponse
176
165
  );
177
166
  /**
178
- * List all snapshots. List all available snapshots in a specified zone. By
179
- * default, the snapshots listed are ordered by creation date in ascending
180
- * order. This can be modified via the `order_by` field.
167
+ * List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
181
168
  *
182
169
  * @param request - The request {@link ListSnapshotsRequest}
183
170
  * @returns A Promise of ListSnapshotsResponse
184
171
  */
185
172
  listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
186
173
  /**
187
- * Get a snapshot. Retrieve technical information about a specific snapshot.
188
- * Details such as size, volume type, and status are returned in the
189
- * response.
174
+ * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
190
175
  *
191
176
  * @param request - The request {@link GetSnapshotRequest}
192
177
  * @returns A Promise of Snapshot
@@ -214,13 +199,12 @@ class API extends API$1 {
214
199
  options
215
200
  );
216
201
  /**
217
- * Create a snapshot of a volume. To create a snapshot, the volume must be in
218
- * the `in_use` or the `available` status. If your volume is in a transient
219
- * state, you need to wait until the end of the current operation.
220
- *
221
- * @param request - The request {@link CreateSnapshotRequest}
222
- * @returns A Promise of Snapshot
223
- */
202
+ * Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
203
+ If your volume is in a transient state, you need to wait until the end of the current operation.
204
+ *
205
+ * @param request - The request {@link CreateSnapshotRequest}
206
+ * @returns A Promise of Snapshot
207
+ */
224
208
  createSnapshot = (request) => this.client.fetch(
225
209
  {
226
210
  body: JSON.stringify(
@@ -233,13 +217,12 @@ class API extends API$1 {
233
217
  unmarshalSnapshot
234
218
  );
235
219
  /**
236
- * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
237
- * contain a QCOW2 image. The bucket can be imported into any Availability
238
- * Zone as long as it is in the same region as the bucket.
239
- *
240
- * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
241
- * @returns A Promise of Snapshot
242
- */
220
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
221
+ The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
222
+ *
223
+ * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
224
+ * @returns A Promise of Snapshot
225
+ */
243
226
  importSnapshotFromObjectStorage = (request) => this.client.fetch(
244
227
  {
245
228
  body: JSON.stringify(
@@ -255,12 +238,12 @@ class API extends API$1 {
255
238
  unmarshalSnapshot
256
239
  );
257
240
  /**
258
- * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
259
- * exported in QCOW2 format. The snapshot must not be in transient state.
260
- *
261
- * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
262
- * @returns A Promise of Snapshot
263
- */
241
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
242
+ The snapshot must not be in transient state.
243
+ *
244
+ * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
245
+ * @returns A Promise of Snapshot
246
+ */
264
247
  exportSnapshotToObjectStorage = (request) => this.client.fetch(
265
248
  {
266
249
  body: JSON.stringify(
@@ -276,8 +259,7 @@ class API extends API$1 {
276
259
  unmarshalSnapshot
277
260
  );
278
261
  /**
279
- * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
280
- * want to delete. The snapshot must not be in use.
262
+ * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
281
263
  *
282
264
  * @param request - The request {@link DeleteSnapshotRequest}
283
265
  */