@scaleway/sdk 1.29.0 → 1.30.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.
@@ -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 { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse } from './marshalling.gen.js';
4
+ import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } 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.
@@ -956,6 +956,48 @@ class API extends API$1 {
956
956
  }, unmarshalGetDashboardResponse);
957
957
  };
958
958
  })();
959
+
960
+ /**
961
+ * Get a volume or snapshot's migration plan. Given a volume or snapshot,
962
+ * returns the migration plan for a call to the RPC ApplyBlockMigration. This
963
+ * plan will include zero or one volume, and zero or more snapshots, which
964
+ * will need to be migrated together. This RPC does not perform the actual
965
+ * migration itself, ApplyBlockMigration must be used. The validation_key
966
+ * value returned by this call must be provided to the ApplyBlockMigration
967
+ * call to confirm that all resources listed in the plan should be migrated.
968
+ *
969
+ * @param request - The request {@link PlanBlockMigrationRequest}
970
+ * @returns A Promise of MigrationPlan
971
+ */
972
+ planBlockMigration = (() => {
973
+ var _this26 = this;
974
+ return function (request) {
975
+ if (request === void 0) {
976
+ request = {};
977
+ }
978
+ return _this26.client.fetch({
979
+ body: JSON.stringify(marshalPlanBlockMigrationRequest(request, _this26.client.settings)),
980
+ headers: jsonContentHeaders,
981
+ method: 'POST',
982
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this26.client.settings.defaultZone)}/block-migration/plan`
983
+ }, unmarshalMigrationPlan);
984
+ };
985
+ })();
986
+
987
+ /**
988
+ * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
989
+ * used, this RPC must be preceded by a call to PlanBlockMigration. To migrate
990
+ * all resources mentioned in the MigrationPlan, the validation_key returned
991
+ * in the MigrationPlan must be provided.
992
+ *
993
+ * @param request - The request {@link ApplyBlockMigrationRequest}
994
+ */
995
+ applyBlockMigration = request => this.client.fetch({
996
+ body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
997
+ headers: jsonContentHeaders,
998
+ method: 'POST',
999
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
1000
+ });
959
1001
  }
960
1002
 
961
1003
  export { API };
@@ -773,6 +773,16 @@ const unmarshalListVolumesTypesResponse = data => {
773
773
  volumes: unmarshalMapOfObject(data.volumes, unmarshalVolumeType)
774
774
  };
775
775
  };
776
+ const unmarshalMigrationPlan = data => {
777
+ if (!isJSONObject(data)) {
778
+ throw new TypeError(`Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`);
779
+ }
780
+ return {
781
+ snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
782
+ validationKey: data.validation_key,
783
+ volume: data.volume ? unmarshalVolume(data.volume) : undefined
784
+ };
785
+ };
776
786
  const unmarshalServerActionResponse = data => {
777
787
  if (!isJSONObject(data)) {
778
788
  throw new TypeError(`Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`);
@@ -1040,6 +1050,16 @@ const marshalVolumeTemplate = (request, defaults) => ({
1040
1050
  value: request.organization
1041
1051
  }])
1042
1052
  });
1053
+ const marshalApplyBlockMigrationRequest = (request, defaults) => ({
1054
+ validation_key: request.validationKey,
1055
+ ...resolveOneOf([{
1056
+ param: 'volume_id',
1057
+ value: request.volumeId
1058
+ }, {
1059
+ param: 'snapshot_id',
1060
+ value: request.snapshotId
1061
+ }])
1062
+ });
1043
1063
  const marshalCreateImageRequest = (request, defaults) => ({
1044
1064
  arch: request.arch,
1045
1065
  default_bootscript: request.defaultBootscript,
@@ -1210,6 +1230,15 @@ const marshalExportSnapshotRequest = (request, defaults) => ({
1210
1230
  bucket: request.bucket,
1211
1231
  key: request.key
1212
1232
  });
1233
+ const marshalPlanBlockMigrationRequest = (request, defaults) => ({
1234
+ ...resolveOneOf([{
1235
+ param: 'volume_id',
1236
+ value: request.volumeId
1237
+ }, {
1238
+ param: 'snapshot_id',
1239
+ value: request.snapshotId
1240
+ }])
1241
+ });
1213
1242
  const marshalServerActionRequest = (request, defaults) => ({
1214
1243
  action: request.action ?? 'poweron',
1215
1244
  name: request.name,
@@ -1379,4 +1408,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
1379
1408
  tags: request.tags
1380
1409
  });
1381
1410
 
1382
- export { marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
1411
+ export { marshalApplyBlockMigrationRequest, marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotRequest, marshalPlanBlockMigrationRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalMigrationPlan, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
@@ -172,7 +172,7 @@ class API extends API$1 {
172
172
  }, unmarshalListPinsResponse);
173
173
 
174
174
  /**
175
- * List all pins within a volume. Retrieve information about all pins into a
175
+ * List all pins within a volume. Retrieve information about all pins within a
176
176
  * volume.
177
177
  *
178
178
  * @param request - The request {@link ListPinsRequest}
@@ -192,12 +192,27 @@ class API extends API$1 {
192
192
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
193
193
  urlParams: urlParams(['volume_id', request.volumeId])
194
194
  });
195
+
196
+ /**
197
+ * Create a new name. You can use the `ipfs key` command to list and generate
198
+ * more names and their respective keys.
199
+ *
200
+ * @param request - The request {@link CreateNameRequest}
201
+ * @returns A Promise of Name
202
+ */
195
203
  createName = request => this.client.fetch({
196
204
  body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
197
205
  headers: jsonContentHeaders,
198
206
  method: 'POST',
199
207
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
200
208
  }, unmarshalName);
209
+
210
+ /**
211
+ * Get information about a name. Retrieve information about a specific name.
212
+ *
213
+ * @param request - The request {@link GetNameRequest}
214
+ * @returns A Promise of Name
215
+ */
201
216
  getName = request => this.client.fetch({
202
217
  method: 'GET',
203
218
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -211,6 +226,12 @@ class API extends API$1 {
211
226
  * @returns A Promise of Name
212
227
  */
213
228
  waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
229
+
230
+ /**
231
+ * Delete an existing name. Delete a name by its ID.
232
+ *
233
+ * @param request - The request {@link DeleteNameRequest}
234
+ */
214
235
  deleteName = request => this.client.fetch({
215
236
  method: 'DELETE',
216
237
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -228,6 +249,14 @@ class API extends API$1 {
228
249
  }, unmarshalListNamesResponse);
229
250
  };
230
251
  })();
252
+
253
+ /**
254
+ * List all names by a Project ID. Retrieve information about all names from a
255
+ * Project ID.
256
+ *
257
+ * @param request - The request {@link ListNamesRequest}
258
+ * @returns A Promise of ListNamesResponse
259
+ */
231
260
  listNames = (() => {
232
261
  var _this4 = this;
233
262
  return function (request) {
@@ -237,16 +266,37 @@ class API extends API$1 {
237
266
  return enrichForPagination('names', _this4.pageOfListNames, request);
238
267
  };
239
268
  })();
269
+
270
+ /**
271
+ * Update name information. Update name information (CID, tag, name...).
272
+ *
273
+ * @param request - The request {@link UpdateNameRequest}
274
+ * @returns A Promise of Name
275
+ */
240
276
  updateName = request => this.client.fetch({
241
277
  body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
242
278
  headers: jsonContentHeaders,
243
279
  method: 'PATCH',
244
280
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
245
281
  }, unmarshalName);
282
+
283
+ /**
284
+ * Export your private key. Export a private key by its ID.
285
+ *
286
+ * @param request - The request {@link ExportKeyNameRequest}
287
+ * @returns A Promise of ExportKeyNameResponse
288
+ */
246
289
  exportKeyName = request => this.client.fetch({
247
290
  method: 'GET',
248
291
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
249
292
  }, unmarshalExportKeyNameResponse);
293
+
294
+ /**
295
+ * Import your private key. Import a private key.
296
+ *
297
+ * @param request - The request {@link ImportKeyNameRequest}
298
+ * @returns A Promise of Name
299
+ */
250
300
  importKeyName = request => this.client.fetch({
251
301
  body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
252
302
  headers: jsonContentHeaders,
@@ -39,7 +39,6 @@ const unmarshalName = data => {
39
39
  throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
40
40
  }
41
41
  return {
42
- cid: data.cid,
43
42
  createdAt: unmarshalDate(data.created_at),
44
43
  key: data.key,
45
44
  name: data.name,
@@ -47,7 +46,8 @@ const unmarshalName = data => {
47
46
  projectId: data.project_id,
48
47
  status: data.status,
49
48
  tags: data.tags,
50
- updatedAt: unmarshalDate(data.updated_at)
49
+ updatedAt: unmarshalDate(data.updated_at),
50
+ value: data.value
51
51
  };
52
52
  };
53
53
  const unmarshalPin = data => {
@@ -132,9 +132,9 @@ const marshalPinOptions = (request, defaults) => ({
132
132
  required_zones: request.requiredZones
133
133
  });
134
134
  const marshalCreateNameRequest = (request, defaults) => ({
135
- cid: request.cid,
136
135
  name: request.name,
137
- project_id: request.projectId ?? defaults.defaultProjectId
136
+ project_id: request.projectId ?? defaults.defaultProjectId,
137
+ value: request.value
138
138
  });
139
139
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
140
140
  cid: request.cid,
@@ -156,7 +156,8 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
156
156
  const marshalImportKeyNameRequest = (request, defaults) => ({
157
157
  name: request.name,
158
158
  private_key: request.privateKey,
159
- project_id: request.projectId ?? defaults.defaultProjectId
159
+ project_id: request.projectId ?? defaults.defaultProjectId,
160
+ value: request.value
160
161
  });
161
162
  const marshalReplacePinRequest = (request, defaults) => ({
162
163
  cid: request.cid,
@@ -166,9 +167,9 @@ const marshalReplacePinRequest = (request, defaults) => ({
166
167
  volume_id: request.volumeId
167
168
  });
168
169
  const marshalUpdateNameRequest = (request, defaults) => ({
169
- cid: request.cid,
170
170
  name: request.name,
171
- tags: request.tags
171
+ tags: request.tags,
172
+ value: request.value
172
173
  });
173
174
  const marshalUpdateVolumeRequest = (request, defaults) => ({
174
175
  name: request.name,
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.28.0';
500
+ const version = 'v1.29.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -10315,6 +10315,16 @@ const unmarshalListVolumesTypesResponse = data => {
10315
10315
  volumes: unmarshalMapOfObject(data.volumes, unmarshalVolumeType)
10316
10316
  };
10317
10317
  };
10318
+ const unmarshalMigrationPlan = data => {
10319
+ if (!isJSONObject(data)) {
10320
+ throw new TypeError(`Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`);
10321
+ }
10322
+ return {
10323
+ snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot$1),
10324
+ validationKey: data.validation_key,
10325
+ volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
10326
+ };
10327
+ };
10318
10328
  const unmarshalServerActionResponse = data => {
10319
10329
  if (!isJSONObject(data)) {
10320
10330
  throw new TypeError(`Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`);
@@ -10579,6 +10589,16 @@ const marshalVolumeTemplate = (request, defaults) => ({
10579
10589
  value: request.organization
10580
10590
  }])
10581
10591
  });
10592
+ const marshalApplyBlockMigrationRequest = (request, defaults) => ({
10593
+ validation_key: request.validationKey,
10594
+ ...resolveOneOf([{
10595
+ param: 'volume_id',
10596
+ value: request.volumeId
10597
+ }, {
10598
+ param: 'snapshot_id',
10599
+ value: request.snapshotId
10600
+ }])
10601
+ });
10582
10602
  const marshalCreateImageRequest = (request, defaults) => ({
10583
10603
  arch: request.arch,
10584
10604
  default_bootscript: request.defaultBootscript,
@@ -10743,6 +10763,15 @@ const marshalExportSnapshotRequest = (request, defaults) => ({
10743
10763
  bucket: request.bucket,
10744
10764
  key: request.key
10745
10765
  });
10766
+ const marshalPlanBlockMigrationRequest = (request, defaults) => ({
10767
+ ...resolveOneOf([{
10768
+ param: 'volume_id',
10769
+ value: request.volumeId
10770
+ }, {
10771
+ param: 'snapshot_id',
10772
+ value: request.snapshotId
10773
+ }])
10774
+ });
10746
10775
  const marshalServerActionRequest = (request, defaults) => ({
10747
10776
  action: request.action ?? 'poweron',
10748
10777
  name: request.name,
@@ -11653,6 +11682,40 @@ let API$h = class API extends API$s {
11653
11682
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/dashboard`,
11654
11683
  urlParams: urlParams(['organization', request.organization], ['project', request.project])
11655
11684
  }, unmarshalGetDashboardResponse);
11685
+
11686
+ /**
11687
+ * Get a volume or snapshot's migration plan. Given a volume or snapshot,
11688
+ * returns the migration plan for a call to the RPC ApplyBlockMigration. This
11689
+ * plan will include zero or one volume, and zero or more snapshots, which
11690
+ * will need to be migrated together. This RPC does not perform the actual
11691
+ * migration itself, ApplyBlockMigration must be used. The validation_key
11692
+ * value returned by this call must be provided to the ApplyBlockMigration
11693
+ * call to confirm that all resources listed in the plan should be migrated.
11694
+ *
11695
+ * @param request - The request {@link PlanBlockMigrationRequest}
11696
+ * @returns A Promise of MigrationPlan
11697
+ */
11698
+ planBlockMigration = (request = {}) => this.client.fetch({
11699
+ body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
11700
+ headers: jsonContentHeaders$f,
11701
+ method: 'POST',
11702
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
11703
+ }, unmarshalMigrationPlan);
11704
+
11705
+ /**
11706
+ * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
11707
+ * used, this RPC must be preceded by a call to PlanBlockMigration. To migrate
11708
+ * all resources mentioned in the MigrationPlan, the validation_key returned
11709
+ * in the MigrationPlan must be provided.
11710
+ *
11711
+ * @param request - The request {@link ApplyBlockMigrationRequest}
11712
+ */
11713
+ applyBlockMigration = request => this.client.fetch({
11714
+ body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
11715
+ headers: jsonContentHeaders$f,
11716
+ method: 'POST',
11717
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
11718
+ });
11656
11719
  };
11657
11720
 
11658
11721
  // This file was automatically generated. DO NOT EDIT.
@@ -13125,7 +13188,6 @@ const unmarshalName = data => {
13125
13188
  throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
13126
13189
  }
13127
13190
  return {
13128
- cid: data.cid,
13129
13191
  createdAt: unmarshalDate(data.created_at),
13130
13192
  key: data.key,
13131
13193
  name: data.name,
@@ -13133,7 +13195,8 @@ const unmarshalName = data => {
13133
13195
  projectId: data.project_id,
13134
13196
  status: data.status,
13135
13197
  tags: data.tags,
13136
- updatedAt: unmarshalDate(data.updated_at)
13198
+ updatedAt: unmarshalDate(data.updated_at),
13199
+ value: data.value
13137
13200
  };
13138
13201
  };
13139
13202
  const unmarshalPin = data => {
@@ -13218,9 +13281,9 @@ const marshalPinOptions = (request, defaults) => ({
13218
13281
  required_zones: request.requiredZones
13219
13282
  });
13220
13283
  const marshalCreateNameRequest = (request, defaults) => ({
13221
- cid: request.cid,
13222
13284
  name: request.name,
13223
- project_id: request.projectId ?? defaults.defaultProjectId
13285
+ project_id: request.projectId ?? defaults.defaultProjectId,
13286
+ value: request.value
13224
13287
  });
13225
13288
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
13226
13289
  cid: request.cid,
@@ -13242,7 +13305,8 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13242
13305
  const marshalImportKeyNameRequest = (request, defaults) => ({
13243
13306
  name: request.name,
13244
13307
  private_key: request.privateKey,
13245
- project_id: request.projectId ?? defaults.defaultProjectId
13308
+ project_id: request.projectId ?? defaults.defaultProjectId,
13309
+ value: request.value
13246
13310
  });
13247
13311
  const marshalReplacePinRequest = (request, defaults) => ({
13248
13312
  cid: request.cid,
@@ -13252,9 +13316,9 @@ const marshalReplacePinRequest = (request, defaults) => ({
13252
13316
  volume_id: request.volumeId
13253
13317
  });
13254
13318
  const marshalUpdateNameRequest = (request, defaults) => ({
13255
- cid: request.cid,
13256
13319
  name: request.name,
13257
- tags: request.tags
13320
+ tags: request.tags,
13321
+ value: request.value
13258
13322
  });
13259
13323
  const marshalUpdateVolumeRequest = (request, defaults) => ({
13260
13324
  name: request.name,
@@ -13412,7 +13476,7 @@ let API$f = class API extends API$s {
13412
13476
  }, unmarshalListPinsResponse);
13413
13477
 
13414
13478
  /**
13415
- * List all pins within a volume. Retrieve information about all pins into a
13479
+ * List all pins within a volume. Retrieve information about all pins within a
13416
13480
  * volume.
13417
13481
  *
13418
13482
  * @param request - The request {@link ListPinsRequest}
@@ -13432,12 +13496,27 @@ let API$f = class API extends API$s {
13432
13496
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
13433
13497
  urlParams: urlParams(['volume_id', request.volumeId])
13434
13498
  });
13499
+
13500
+ /**
13501
+ * Create a new name. You can use the `ipfs key` command to list and generate
13502
+ * more names and their respective keys.
13503
+ *
13504
+ * @param request - The request {@link CreateNameRequest}
13505
+ * @returns A Promise of Name
13506
+ */
13435
13507
  createName = request => this.client.fetch({
13436
13508
  body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
13437
13509
  headers: jsonContentHeaders$d,
13438
13510
  method: 'POST',
13439
13511
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
13440
13512
  }, unmarshalName);
13513
+
13514
+ /**
13515
+ * Get information about a name. Retrieve information about a specific name.
13516
+ *
13517
+ * @param request - The request {@link GetNameRequest}
13518
+ * @returns A Promise of Name
13519
+ */
13441
13520
  getName = request => this.client.fetch({
13442
13521
  method: 'GET',
13443
13522
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -13451,6 +13530,12 @@ let API$f = class API extends API$s {
13451
13530
  * @returns A Promise of Name
13452
13531
  */
13453
13532
  waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
13533
+
13534
+ /**
13535
+ * Delete an existing name. Delete a name by its ID.
13536
+ *
13537
+ * @param request - The request {@link DeleteNameRequest}
13538
+ */
13454
13539
  deleteName = request => this.client.fetch({
13455
13540
  method: 'DELETE',
13456
13541
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -13460,17 +13545,46 @@ let API$f = class API extends API$s {
13460
13545
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
13461
13546
  urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
13462
13547
  }, unmarshalListNamesResponse);
13548
+
13549
+ /**
13550
+ * List all names by a Project ID. Retrieve information about all names from a
13551
+ * Project ID.
13552
+ *
13553
+ * @param request - The request {@link ListNamesRequest}
13554
+ * @returns A Promise of ListNamesResponse
13555
+ */
13463
13556
  listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
13557
+
13558
+ /**
13559
+ * Update name information. Update name information (CID, tag, name...).
13560
+ *
13561
+ * @param request - The request {@link UpdateNameRequest}
13562
+ * @returns A Promise of Name
13563
+ */
13464
13564
  updateName = request => this.client.fetch({
13465
13565
  body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
13466
13566
  headers: jsonContentHeaders$d,
13467
13567
  method: 'PATCH',
13468
13568
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13469
13569
  }, unmarshalName);
13570
+
13571
+ /**
13572
+ * Export your private key. Export a private key by its ID.
13573
+ *
13574
+ * @param request - The request {@link ExportKeyNameRequest}
13575
+ * @returns A Promise of ExportKeyNameResponse
13576
+ */
13470
13577
  exportKeyName = request => this.client.fetch({
13471
13578
  method: 'GET',
13472
13579
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
13473
13580
  }, unmarshalExportKeyNameResponse);
13581
+
13582
+ /**
13583
+ * Import your private key. Import a private key.
13584
+ *
13585
+ * @param request - The request {@link ImportKeyNameRequest}
13586
+ * @returns A Promise of Name
13587
+ */
13474
13588
  importKeyName = request => this.client.fetch({
13475
13589
  body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
13476
13590
  headers: jsonContentHeaders$d,
package/dist/index.d.ts CHANGED
@@ -9692,6 +9692,24 @@ interface ListVolumesTypesResponse {
9692
9692
  /** Map of volume types. */
9693
9693
  volumes: Record<string, VolumeType$1>;
9694
9694
  }
9695
+ /** Migration plan. */
9696
+ interface MigrationPlan {
9697
+ /**
9698
+ * A volume which will be migrated to SBS together with the snapshots, if
9699
+ * present.
9700
+ */
9701
+ volume?: Volume$2;
9702
+ /**
9703
+ * A list of snapshots which will be migrated to SBS together and with the
9704
+ * volume, if present.
9705
+ */
9706
+ snapshots: Snapshot$1[];
9707
+ /**
9708
+ * A value to be passed to ApplyBlockMigrationRequest, to confirm that the
9709
+ * execution of the plan is being requested.
9710
+ */
9711
+ validationKey: string;
9712
+ }
9695
9713
  /** Placement group. */
9696
9714
  interface PlacementGroup {
9697
9715
  /** Placement group unique ID. */
@@ -10950,6 +10968,45 @@ type GetDashboardRequest = {
10950
10968
  organization?: string;
10951
10969
  project?: string;
10952
10970
  };
10971
+ type PlanBlockMigrationRequest = {
10972
+ /** Zone to target. If none is passed will use default zone from the config. */
10973
+ zone?: Zone;
10974
+ /**
10975
+ * The volume for which the migration plan will be generated.
10976
+ *
10977
+ * One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
10978
+ */
10979
+ volumeId?: string;
10980
+ /**
10981
+ * The snapshot for which the migration plan will be generated.
10982
+ *
10983
+ * One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
10984
+ */
10985
+ snapshotId?: string;
10986
+ };
10987
+ type ApplyBlockMigrationRequest = {
10988
+ /** Zone to target. If none is passed will use default zone from the config. */
10989
+ zone?: Zone;
10990
+ /**
10991
+ * The volume to migrate, along with potentially other resources, according to
10992
+ * the migration plan generated with a call to PlanBlockMigration.
10993
+ *
10994
+ * One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
10995
+ */
10996
+ volumeId?: string;
10997
+ /**
10998
+ * The snapshot to migrate, along with potentially other resources, according
10999
+ * to the migration plan generated with a call to PlanBlockMigration.
11000
+ *
11001
+ * One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
11002
+ */
11003
+ snapshotId?: string;
11004
+ /**
11005
+ * A value to be retrieved from a call to PlanBlockMigration, to confirm that
11006
+ * the volume and/or snapshots specified in said plan should be migrated.
11007
+ */
11008
+ validationKey: string;
11009
+ };
10953
11010
 
10954
11011
  /** Set image response. */
10955
11012
  interface SetImageResponse {
@@ -11684,6 +11741,28 @@ declare class API$h extends API$s {
11684
11741
  */
11685
11742
  getBootscript: (request: Readonly<GetBootscriptRequest>) => Promise<GetBootscriptResponse>;
11686
11743
  getDashboard: (request?: Readonly<GetDashboardRequest>) => Promise<GetDashboardResponse>;
11744
+ /**
11745
+ * Get a volume or snapshot's migration plan. Given a volume or snapshot,
11746
+ * returns the migration plan for a call to the RPC ApplyBlockMigration. This
11747
+ * plan will include zero or one volume, and zero or more snapshots, which
11748
+ * will need to be migrated together. This RPC does not perform the actual
11749
+ * migration itself, ApplyBlockMigration must be used. The validation_key
11750
+ * value returned by this call must be provided to the ApplyBlockMigration
11751
+ * call to confirm that all resources listed in the plan should be migrated.
11752
+ *
11753
+ * @param request - The request {@link PlanBlockMigrationRequest}
11754
+ * @returns A Promise of MigrationPlan
11755
+ */
11756
+ planBlockMigration: (request?: Readonly<PlanBlockMigrationRequest>) => Promise<MigrationPlan>;
11757
+ /**
11758
+ * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
11759
+ * used, this RPC must be preceded by a call to PlanBlockMigration. To migrate
11760
+ * all resources mentioned in the MigrationPlan, the validation_key returned
11761
+ * in the MigrationPlan must be provided.
11762
+ *
11763
+ * @param request - The request {@link ApplyBlockMigrationRequest}
11764
+ */
11765
+ applyBlockMigration: (request: Readonly<ApplyBlockMigrationRequest>) => Promise<void>;
11687
11766
  }
11688
11767
 
11689
11768
  type UpdateSnapshotRequest$1 = {
@@ -11925,6 +12004,7 @@ declare const VOLUME_SERVER_TRANSIENT_STATUSES: VolumeServerState[];
11925
12004
  /** Lists transient statutes of the enum {@link VolumeState}. */
11926
12005
  declare const VOLUME_TRANSIENT_STATUSES: VolumeState[];
11927
12006
 
12007
+ type index$i_ApplyBlockMigrationRequest = ApplyBlockMigrationRequest;
11928
12008
  type index$i_Arch = Arch;
11929
12009
  type index$i_AttachVolumeRequest = AttachVolumeRequest;
11930
12010
  type index$i_AttachVolumeResponse = AttachVolumeResponse;
@@ -12007,11 +12087,13 @@ type index$i_ListServersTypesRequest = ListServersTypesRequest;
12007
12087
  type index$i_ListServersTypesResponse = ListServersTypesResponse;
12008
12088
  type index$i_ListVolumesTypesRequest = ListVolumesTypesRequest;
12009
12089
  type index$i_ListVolumesTypesResponse = ListVolumesTypesResponse;
12090
+ type index$i_MigrationPlan = MigrationPlan;
12010
12091
  declare const index$i_PRIVATE_NIC_TRANSIENT_STATUSES: typeof PRIVATE_NIC_TRANSIENT_STATUSES;
12011
12092
  type index$i_PlacementGroup = PlacementGroup;
12012
12093
  type index$i_PlacementGroupPolicyMode = PlacementGroupPolicyMode;
12013
12094
  type index$i_PlacementGroupPolicyType = PlacementGroupPolicyType;
12014
12095
  type index$i_PlacementGroupServer = PlacementGroupServer;
12096
+ type index$i_PlanBlockMigrationRequest = PlanBlockMigrationRequest;
12015
12097
  type index$i_PrivateNIC = PrivateNIC;
12016
12098
  type index$i_PrivateNICState = PrivateNICState;
12017
12099
  declare const index$i_SECURITY_GROUP_TRANSIENT_STATUSES: typeof SECURITY_GROUP_TRANSIENT_STATUSES;
@@ -12087,7 +12169,7 @@ type index$i_VolumeTypeCapabilities = VolumeTypeCapabilities;
12087
12169
  type index$i_VolumeTypeConstraints = VolumeTypeConstraints;
12088
12170
  type index$i_VolumeVolumeType = VolumeVolumeType;
12089
12171
  declare namespace index$i {
12090
- export { InstanceV1UtilsAPI as API, type index$i_Arch as Arch, type index$i_AttachVolumeRequest as AttachVolumeRequest, type index$i_AttachVolumeResponse as AttachVolumeResponse, type index$i_BootType as BootType, type index$i_Bootscript as Bootscript, type index$i_CreateImageRequest as CreateImageRequest, type index$i_CreateImageResponse as CreateImageResponse, type CreateIpRequest$1 as CreateIpRequest, type index$i_CreateIpResponse as CreateIpResponse, type index$i_CreatePlacementGroupRequest as CreatePlacementGroupRequest, type index$i_CreatePlacementGroupResponse as CreatePlacementGroupResponse, type index$i_CreatePrivateNICRequest as CreatePrivateNICRequest, type index$i_CreatePrivateNICResponse as CreatePrivateNICResponse, type index$i_CreateSecurityGroupRequest as CreateSecurityGroupRequest, type index$i_CreateSecurityGroupResponse as CreateSecurityGroupResponse, type index$i_CreateSecurityGroupRuleRequest as CreateSecurityGroupRuleRequest, type index$i_CreateSecurityGroupRuleResponse as CreateSecurityGroupRuleResponse, type index$i_CreateServerRequest as CreateServerRequest, type index$i_CreateServerResponse as CreateServerResponse, type CreateSnapshotRequest$1 as CreateSnapshotRequest, type index$i_CreateSnapshotResponse as CreateSnapshotResponse, type CreateVolumeRequest$1 as CreateVolumeRequest, type index$i_CreateVolumeResponse as CreateVolumeResponse, type index$i_Dashboard as Dashboard, type DeleteImageRequest$1 as DeleteImageRequest, type index$i_DeleteIpRequest as DeleteIpRequest, type index$i_DeletePlacementGroupRequest as DeletePlacementGroupRequest, type index$i_DeletePrivateNICRequest as DeletePrivateNICRequest, type index$i_DeleteSecurityGroupRequest as DeleteSecurityGroupRequest, type index$i_DeleteSecurityGroupRuleRequest as DeleteSecurityGroupRuleRequest, type index$i_DeleteServerRequest as DeleteServerRequest, type index$i_DeleteServerUserDataRequest as DeleteServerUserDataRequest, type DeleteSnapshotRequest$1 as DeleteSnapshotRequest, type DeleteVolumeRequest$1 as DeleteVolumeRequest, type index$i_DetachVolumeRequest as DetachVolumeRequest, type index$i_DetachVolumeResponse as DetachVolumeResponse, type index$i_ExportSnapshotRequest as ExportSnapshotRequest, type index$i_ExportSnapshotResponse as ExportSnapshotResponse, type index$i_GetBootscriptRequest as GetBootscriptRequest, type index$i_GetBootscriptResponse as GetBootscriptResponse, type index$i_GetDashboardRequest as GetDashboardRequest, type index$i_GetDashboardResponse as GetDashboardResponse, type GetImageRequest$3 as GetImageRequest, type GetImageResponse$1 as GetImageResponse, type GetIpRequest$1 as GetIpRequest, type index$i_GetIpResponse as GetIpResponse, type index$i_GetPlacementGroupRequest as GetPlacementGroupRequest, type index$i_GetPlacementGroupResponse as GetPlacementGroupResponse, type index$i_GetPlacementGroupServersRequest as GetPlacementGroupServersRequest, type index$i_GetPlacementGroupServersResponse as GetPlacementGroupServersResponse, type index$i_GetPrivateNICRequest as GetPrivateNICRequest, type index$i_GetPrivateNICResponse as GetPrivateNICResponse, type index$i_GetSecurityGroupRequest as GetSecurityGroupRequest, type index$i_GetSecurityGroupResponse as GetSecurityGroupResponse, type index$i_GetSecurityGroupRuleRequest as GetSecurityGroupRuleRequest, type index$i_GetSecurityGroupRuleResponse as GetSecurityGroupRuleResponse, type index$i_GetServerRequest as GetServerRequest, type index$i_GetServerResponse as GetServerResponse, type index$i_GetServerTypesAvailabilityRequest as GetServerTypesAvailabilityRequest, type index$i_GetServerTypesAvailabilityResponse as GetServerTypesAvailabilityResponse, type index$i_GetServerTypesAvailabilityResponseAvailability as GetServerTypesAvailabilityResponseAvailability, type index$i_GetServerUserDataRequest as GetServerUserDataRequest, type GetSnapshotRequest$1 as GetSnapshotRequest, type index$i_GetSnapshotResponse as GetSnapshotResponse, type GetVolumeRequest$1 as GetVolumeRequest, type index$i_GetVolumeResponse as GetVolumeResponse, IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES, index$i_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES, type Image$3 as Image, type index$i_ImageState as ImageState, type Ip$1 as Ip, type index$i_IpState as IpState, type index$i_IpType as IpType, type index$i_ListBootscriptsRequest as ListBootscriptsRequest, type index$i_ListBootscriptsResponse as ListBootscriptsResponse, type index$i_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest, type ListImagesRequest$3 as ListImagesRequest, type ListImagesResponse$3 as ListImagesResponse, type index$i_ListIpsRequest as ListIpsRequest, type ListIpsResponse$1 as ListIpsResponse, type index$i_ListPlacementGroupsRequest as ListPlacementGroupsRequest, type index$i_ListPlacementGroupsResponse as ListPlacementGroupsResponse, type index$i_ListPrivateNICsRequest as ListPrivateNICsRequest, type index$i_ListPrivateNICsResponse as ListPrivateNICsResponse, type index$i_ListSecurityGroupRulesRequest as ListSecurityGroupRulesRequest, type index$i_ListSecurityGroupRulesResponse as ListSecurityGroupRulesResponse, type index$i_ListSecurityGroupsRequest as ListSecurityGroupsRequest, type index$i_ListSecurityGroupsResponse as ListSecurityGroupsResponse, type index$i_ListServerActionsRequest as ListServerActionsRequest, type index$i_ListServerActionsResponse as ListServerActionsResponse, type index$i_ListServerUserDataRequest as ListServerUserDataRequest, type index$i_ListServerUserDataResponse as ListServerUserDataResponse, type index$i_ListServersRequest as ListServersRequest, type index$i_ListServersRequestOrder as ListServersRequestOrder, type index$i_ListServersResponse as ListServersResponse, type index$i_ListServersTypesRequest as ListServersTypesRequest, type index$i_ListServersTypesResponse as ListServersTypesResponse, type ListSnapshotsRequest$1 as ListSnapshotsRequest, type ListSnapshotsResponse$1 as ListSnapshotsResponse, type ListVolumesRequest$1 as ListVolumesRequest, type ListVolumesResponse$1 as ListVolumesResponse, type index$i_ListVolumesTypesRequest as ListVolumesTypesRequest, type index$i_ListVolumesTypesResponse as ListVolumesTypesResponse, index$i_PRIVATE_NIC_TRANSIENT_STATUSES as PRIVATE_NIC_TRANSIENT_STATUSES, type index$i_PlacementGroup as PlacementGroup, type index$i_PlacementGroupPolicyMode as PlacementGroupPolicyMode, type index$i_PlacementGroupPolicyType as PlacementGroupPolicyType, type index$i_PlacementGroupServer as PlacementGroupServer, type index$i_PrivateNIC as PrivateNIC, type index$i_PrivateNICState as PrivateNICState, index$i_SECURITY_GROUP_TRANSIENT_STATUSES as SECURITY_GROUP_TRANSIENT_STATUSES, index$i_SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES$1 as SNAPSHOT_TRANSIENT_STATUSES, type index$i_SecurityGroup as SecurityGroup, type index$i_SecurityGroupPolicy as SecurityGroupPolicy, type index$i_SecurityGroupRule as SecurityGroupRule, type index$i_SecurityGroupRuleAction as SecurityGroupRuleAction, type index$i_SecurityGroupRuleDirection as SecurityGroupRuleDirection, type index$i_SecurityGroupRuleProtocol as SecurityGroupRuleProtocol, type index$i_SecurityGroupState as SecurityGroupState, type index$i_SecurityGroupSummary as SecurityGroupSummary, type index$i_SecurityGroupTemplate as SecurityGroupTemplate, type index$i_Server as Server, type index$i_ServerAction as ServerAction, type index$i_ServerActionRequest as ServerActionRequest, type index$i_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate, type index$i_ServerActionResponse as ServerActionResponse, type index$i_ServerIp as ServerIp, type index$i_ServerIpIpFamily as ServerIpIpFamily, type index$i_ServerIpProvisioningMode as ServerIpProvisioningMode, type index$i_ServerIpv6 as ServerIpv6, type index$i_ServerLocation as ServerLocation, type index$i_ServerMaintenance as ServerMaintenance, type index$i_ServerState as ServerState, type index$i_ServerSummary as ServerSummary, type index$i_ServerType as ServerType, type index$i_ServerTypeCapabilities as ServerTypeCapabilities, type index$i_ServerTypeNetwork as ServerTypeNetwork, type index$i_ServerTypeNetworkInterface as ServerTypeNetworkInterface, type index$i_ServerTypeVolumeConstraintSizes as ServerTypeVolumeConstraintSizes, type index$i_ServerTypeVolumeConstraintsByType as ServerTypeVolumeConstraintsByType, type index$i_ServerTypesAvailability as ServerTypesAvailability, type index$i_SetPlacementGroupRequest as SetPlacementGroupRequest, type index$i_SetPlacementGroupResponse as SetPlacementGroupResponse, type index$i_SetPlacementGroupServersRequest as SetPlacementGroupServersRequest, type index$i_SetPlacementGroupServersResponse as SetPlacementGroupServersResponse, type index$i_SetSecurityGroupRulesRequest as SetSecurityGroupRulesRequest, type index$i_SetSecurityGroupRulesRequestRule as SetSecurityGroupRulesRequestRule, type index$i_SetSecurityGroupRulesResponse as SetSecurityGroupRulesResponse, type index$i_SetServerUserDataRequest as SetServerUserDataRequest, type Snapshot$1 as Snapshot, type index$i_SnapshotBaseVolume as SnapshotBaseVolume, type index$i_SnapshotState as SnapshotState, type index$i_SnapshotVolumeType as SnapshotVolumeType, index$i_TASK_TRANSIENT_STATUSES as TASK_TRANSIENT_STATUSES, type index$i_Task as Task, type index$i_TaskStatus as TaskStatus, type UpdateImageRequest$1 as UpdateImageRequest, type index$i_UpdateImageResponse as UpdateImageResponse, type UpdateIpRequest$1 as UpdateIpRequest, type index$i_UpdateIpResponse as UpdateIpResponse, type index$i_UpdatePlacementGroupRequest as UpdatePlacementGroupRequest, type index$i_UpdatePlacementGroupResponse as UpdatePlacementGroupResponse, type index$i_UpdatePlacementGroupServersRequest as UpdatePlacementGroupServersRequest, type index$i_UpdatePlacementGroupServersResponse as UpdatePlacementGroupServersResponse, type index$i_UpdatePrivateNICRequest as UpdatePrivateNICRequest, type index$i_UpdateSecurityGroupRequest as UpdateSecurityGroupRequest, type index$i_UpdateSecurityGroupResponse as UpdateSecurityGroupResponse, type index$i_UpdateSecurityGroupRuleRequest as UpdateSecurityGroupRuleRequest, type index$i_UpdateSecurityGroupRuleResponse as UpdateSecurityGroupRuleResponse, type index$i_UpdateServerRequest as UpdateServerRequest, type index$i_UpdateServerResponse as UpdateServerResponse, type UpdateSnapshotRequest$1 as UpdateSnapshotRequest, type index$i_UpdateSnapshotResponse as UpdateSnapshotResponse, type UpdateVolumeRequest$1 as UpdateVolumeRequest, type index$i_UpdateVolumeResponse as UpdateVolumeResponse, index$i_VOLUME_SERVER_TRANSIENT_STATUSES as VOLUME_SERVER_TRANSIENT_STATUSES, index$i_VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES, type Volume$2 as Volume, type index$i_VolumeServer as VolumeServer, type index$i_VolumeServerState as VolumeServerState, type index$i_VolumeServerTemplate as VolumeServerTemplate, type index$i_VolumeServerVolumeType as VolumeServerVolumeType, type index$i_VolumeState as VolumeState, type index$i_VolumeSummary as VolumeSummary, type index$i_VolumeTemplate as VolumeTemplate, type VolumeType$1 as VolumeType, type index$i_VolumeTypeCapabilities as VolumeTypeCapabilities, type index$i_VolumeTypeConstraints as VolumeTypeConstraints, type index$i_VolumeVolumeType as VolumeVolumeType };
12172
+ export { InstanceV1UtilsAPI as API, type index$i_ApplyBlockMigrationRequest as ApplyBlockMigrationRequest, type index$i_Arch as Arch, type index$i_AttachVolumeRequest as AttachVolumeRequest, type index$i_AttachVolumeResponse as AttachVolumeResponse, type index$i_BootType as BootType, type index$i_Bootscript as Bootscript, type index$i_CreateImageRequest as CreateImageRequest, type index$i_CreateImageResponse as CreateImageResponse, type CreateIpRequest$1 as CreateIpRequest, type index$i_CreateIpResponse as CreateIpResponse, type index$i_CreatePlacementGroupRequest as CreatePlacementGroupRequest, type index$i_CreatePlacementGroupResponse as CreatePlacementGroupResponse, type index$i_CreatePrivateNICRequest as CreatePrivateNICRequest, type index$i_CreatePrivateNICResponse as CreatePrivateNICResponse, type index$i_CreateSecurityGroupRequest as CreateSecurityGroupRequest, type index$i_CreateSecurityGroupResponse as CreateSecurityGroupResponse, type index$i_CreateSecurityGroupRuleRequest as CreateSecurityGroupRuleRequest, type index$i_CreateSecurityGroupRuleResponse as CreateSecurityGroupRuleResponse, type index$i_CreateServerRequest as CreateServerRequest, type index$i_CreateServerResponse as CreateServerResponse, type CreateSnapshotRequest$1 as CreateSnapshotRequest, type index$i_CreateSnapshotResponse as CreateSnapshotResponse, type CreateVolumeRequest$1 as CreateVolumeRequest, type index$i_CreateVolumeResponse as CreateVolumeResponse, type index$i_Dashboard as Dashboard, type DeleteImageRequest$1 as DeleteImageRequest, type index$i_DeleteIpRequest as DeleteIpRequest, type index$i_DeletePlacementGroupRequest as DeletePlacementGroupRequest, type index$i_DeletePrivateNICRequest as DeletePrivateNICRequest, type index$i_DeleteSecurityGroupRequest as DeleteSecurityGroupRequest, type index$i_DeleteSecurityGroupRuleRequest as DeleteSecurityGroupRuleRequest, type index$i_DeleteServerRequest as DeleteServerRequest, type index$i_DeleteServerUserDataRequest as DeleteServerUserDataRequest, type DeleteSnapshotRequest$1 as DeleteSnapshotRequest, type DeleteVolumeRequest$1 as DeleteVolumeRequest, type index$i_DetachVolumeRequest as DetachVolumeRequest, type index$i_DetachVolumeResponse as DetachVolumeResponse, type index$i_ExportSnapshotRequest as ExportSnapshotRequest, type index$i_ExportSnapshotResponse as ExportSnapshotResponse, type index$i_GetBootscriptRequest as GetBootscriptRequest, type index$i_GetBootscriptResponse as GetBootscriptResponse, type index$i_GetDashboardRequest as GetDashboardRequest, type index$i_GetDashboardResponse as GetDashboardResponse, type GetImageRequest$3 as GetImageRequest, type GetImageResponse$1 as GetImageResponse, type GetIpRequest$1 as GetIpRequest, type index$i_GetIpResponse as GetIpResponse, type index$i_GetPlacementGroupRequest as GetPlacementGroupRequest, type index$i_GetPlacementGroupResponse as GetPlacementGroupResponse, type index$i_GetPlacementGroupServersRequest as GetPlacementGroupServersRequest, type index$i_GetPlacementGroupServersResponse as GetPlacementGroupServersResponse, type index$i_GetPrivateNICRequest as GetPrivateNICRequest, type index$i_GetPrivateNICResponse as GetPrivateNICResponse, type index$i_GetSecurityGroupRequest as GetSecurityGroupRequest, type index$i_GetSecurityGroupResponse as GetSecurityGroupResponse, type index$i_GetSecurityGroupRuleRequest as GetSecurityGroupRuleRequest, type index$i_GetSecurityGroupRuleResponse as GetSecurityGroupRuleResponse, type index$i_GetServerRequest as GetServerRequest, type index$i_GetServerResponse as GetServerResponse, type index$i_GetServerTypesAvailabilityRequest as GetServerTypesAvailabilityRequest, type index$i_GetServerTypesAvailabilityResponse as GetServerTypesAvailabilityResponse, type index$i_GetServerTypesAvailabilityResponseAvailability as GetServerTypesAvailabilityResponseAvailability, type index$i_GetServerUserDataRequest as GetServerUserDataRequest, type GetSnapshotRequest$1 as GetSnapshotRequest, type index$i_GetSnapshotResponse as GetSnapshotResponse, type GetVolumeRequest$1 as GetVolumeRequest, type index$i_GetVolumeResponse as GetVolumeResponse, IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES, index$i_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES, type Image$3 as Image, type index$i_ImageState as ImageState, type Ip$1 as Ip, type index$i_IpState as IpState, type index$i_IpType as IpType, type index$i_ListBootscriptsRequest as ListBootscriptsRequest, type index$i_ListBootscriptsResponse as ListBootscriptsResponse, type index$i_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest, type ListImagesRequest$3 as ListImagesRequest, type ListImagesResponse$3 as ListImagesResponse, type index$i_ListIpsRequest as ListIpsRequest, type ListIpsResponse$1 as ListIpsResponse, type index$i_ListPlacementGroupsRequest as ListPlacementGroupsRequest, type index$i_ListPlacementGroupsResponse as ListPlacementGroupsResponse, type index$i_ListPrivateNICsRequest as ListPrivateNICsRequest, type index$i_ListPrivateNICsResponse as ListPrivateNICsResponse, type index$i_ListSecurityGroupRulesRequest as ListSecurityGroupRulesRequest, type index$i_ListSecurityGroupRulesResponse as ListSecurityGroupRulesResponse, type index$i_ListSecurityGroupsRequest as ListSecurityGroupsRequest, type index$i_ListSecurityGroupsResponse as ListSecurityGroupsResponse, type index$i_ListServerActionsRequest as ListServerActionsRequest, type index$i_ListServerActionsResponse as ListServerActionsResponse, type index$i_ListServerUserDataRequest as ListServerUserDataRequest, type index$i_ListServerUserDataResponse as ListServerUserDataResponse, type index$i_ListServersRequest as ListServersRequest, type index$i_ListServersRequestOrder as ListServersRequestOrder, type index$i_ListServersResponse as ListServersResponse, type index$i_ListServersTypesRequest as ListServersTypesRequest, type index$i_ListServersTypesResponse as ListServersTypesResponse, type ListSnapshotsRequest$1 as ListSnapshotsRequest, type ListSnapshotsResponse$1 as ListSnapshotsResponse, type ListVolumesRequest$1 as ListVolumesRequest, type ListVolumesResponse$1 as ListVolumesResponse, type index$i_ListVolumesTypesRequest as ListVolumesTypesRequest, type index$i_ListVolumesTypesResponse as ListVolumesTypesResponse, type index$i_MigrationPlan as MigrationPlan, index$i_PRIVATE_NIC_TRANSIENT_STATUSES as PRIVATE_NIC_TRANSIENT_STATUSES, type index$i_PlacementGroup as PlacementGroup, type index$i_PlacementGroupPolicyMode as PlacementGroupPolicyMode, type index$i_PlacementGroupPolicyType as PlacementGroupPolicyType, type index$i_PlacementGroupServer as PlacementGroupServer, type index$i_PlanBlockMigrationRequest as PlanBlockMigrationRequest, type index$i_PrivateNIC as PrivateNIC, type index$i_PrivateNICState as PrivateNICState, index$i_SECURITY_GROUP_TRANSIENT_STATUSES as SECURITY_GROUP_TRANSIENT_STATUSES, index$i_SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES$1 as SNAPSHOT_TRANSIENT_STATUSES, type index$i_SecurityGroup as SecurityGroup, type index$i_SecurityGroupPolicy as SecurityGroupPolicy, type index$i_SecurityGroupRule as SecurityGroupRule, type index$i_SecurityGroupRuleAction as SecurityGroupRuleAction, type index$i_SecurityGroupRuleDirection as SecurityGroupRuleDirection, type index$i_SecurityGroupRuleProtocol as SecurityGroupRuleProtocol, type index$i_SecurityGroupState as SecurityGroupState, type index$i_SecurityGroupSummary as SecurityGroupSummary, type index$i_SecurityGroupTemplate as SecurityGroupTemplate, type index$i_Server as Server, type index$i_ServerAction as ServerAction, type index$i_ServerActionRequest as ServerActionRequest, type index$i_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate, type index$i_ServerActionResponse as ServerActionResponse, type index$i_ServerIp as ServerIp, type index$i_ServerIpIpFamily as ServerIpIpFamily, type index$i_ServerIpProvisioningMode as ServerIpProvisioningMode, type index$i_ServerIpv6 as ServerIpv6, type index$i_ServerLocation as ServerLocation, type index$i_ServerMaintenance as ServerMaintenance, type index$i_ServerState as ServerState, type index$i_ServerSummary as ServerSummary, type index$i_ServerType as ServerType, type index$i_ServerTypeCapabilities as ServerTypeCapabilities, type index$i_ServerTypeNetwork as ServerTypeNetwork, type index$i_ServerTypeNetworkInterface as ServerTypeNetworkInterface, type index$i_ServerTypeVolumeConstraintSizes as ServerTypeVolumeConstraintSizes, type index$i_ServerTypeVolumeConstraintsByType as ServerTypeVolumeConstraintsByType, type index$i_ServerTypesAvailability as ServerTypesAvailability, type index$i_SetPlacementGroupRequest as SetPlacementGroupRequest, type index$i_SetPlacementGroupResponse as SetPlacementGroupResponse, type index$i_SetPlacementGroupServersRequest as SetPlacementGroupServersRequest, type index$i_SetPlacementGroupServersResponse as SetPlacementGroupServersResponse, type index$i_SetSecurityGroupRulesRequest as SetSecurityGroupRulesRequest, type index$i_SetSecurityGroupRulesRequestRule as SetSecurityGroupRulesRequestRule, type index$i_SetSecurityGroupRulesResponse as SetSecurityGroupRulesResponse, type index$i_SetServerUserDataRequest as SetServerUserDataRequest, type Snapshot$1 as Snapshot, type index$i_SnapshotBaseVolume as SnapshotBaseVolume, type index$i_SnapshotState as SnapshotState, type index$i_SnapshotVolumeType as SnapshotVolumeType, index$i_TASK_TRANSIENT_STATUSES as TASK_TRANSIENT_STATUSES, type index$i_Task as Task, type index$i_TaskStatus as TaskStatus, type UpdateImageRequest$1 as UpdateImageRequest, type index$i_UpdateImageResponse as UpdateImageResponse, type UpdateIpRequest$1 as UpdateIpRequest, type index$i_UpdateIpResponse as UpdateIpResponse, type index$i_UpdatePlacementGroupRequest as UpdatePlacementGroupRequest, type index$i_UpdatePlacementGroupResponse as UpdatePlacementGroupResponse, type index$i_UpdatePlacementGroupServersRequest as UpdatePlacementGroupServersRequest, type index$i_UpdatePlacementGroupServersResponse as UpdatePlacementGroupServersResponse, type index$i_UpdatePrivateNICRequest as UpdatePrivateNICRequest, type index$i_UpdateSecurityGroupRequest as UpdateSecurityGroupRequest, type index$i_UpdateSecurityGroupResponse as UpdateSecurityGroupResponse, type index$i_UpdateSecurityGroupRuleRequest as UpdateSecurityGroupRuleRequest, type index$i_UpdateSecurityGroupRuleResponse as UpdateSecurityGroupRuleResponse, type index$i_UpdateServerRequest as UpdateServerRequest, type index$i_UpdateServerResponse as UpdateServerResponse, type UpdateSnapshotRequest$1 as UpdateSnapshotRequest, type index$i_UpdateSnapshotResponse as UpdateSnapshotResponse, type UpdateVolumeRequest$1 as UpdateVolumeRequest, type index$i_UpdateVolumeResponse as UpdateVolumeResponse, index$i_VOLUME_SERVER_TRANSIENT_STATUSES as VOLUME_SERVER_TRANSIENT_STATUSES, index$i_VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES, type Volume$2 as Volume, type index$i_VolumeServer as VolumeServer, type index$i_VolumeServerState as VolumeServerState, type index$i_VolumeServerTemplate as VolumeServerTemplate, type index$i_VolumeServerVolumeType as VolumeServerVolumeType, type index$i_VolumeState as VolumeState, type index$i_VolumeSummary as VolumeSummary, type index$i_VolumeTemplate as VolumeTemplate, type VolumeType$1 as VolumeType, type index$i_VolumeTypeCapabilities as VolumeTypeCapabilities, type index$i_VolumeTypeConstraints as VolumeTypeConstraints, type index$i_VolumeVolumeType as VolumeVolumeType };
12091
12173
  }
12092
12174
 
12093
12175
  declare namespace index$h {
@@ -13487,8 +13569,8 @@ interface Name {
13487
13569
  tags: string[];
13488
13570
  name: string;
13489
13571
  key: string;
13490
- cid: string;
13491
13572
  status: NameStatus;
13573
+ value: string;
13492
13574
  }
13493
13575
  interface Pin {
13494
13576
  pinId: string;
@@ -13654,7 +13736,7 @@ type CreateNameRequest = {
13654
13736
  region?: Region;
13655
13737
  projectId?: string;
13656
13738
  name: string;
13657
- cid: string;
13739
+ value: string;
13658
13740
  };
13659
13741
  type GetNameRequest = {
13660
13742
  /**
@@ -13693,7 +13775,7 @@ type UpdateNameRequest = {
13693
13775
  nameId: string;
13694
13776
  name?: string;
13695
13777
  tags?: string[];
13696
- cid?: string;
13778
+ value?: string;
13697
13779
  };
13698
13780
  type ExportKeyNameRequest = {
13699
13781
  /**
@@ -13712,6 +13794,7 @@ type ImportKeyNameRequest = {
13712
13794
  projectId?: string;
13713
13795
  name: string;
13714
13796
  privateKey: string;
13797
+ value: string;
13715
13798
  };
13716
13799
 
13717
13800
  /** IPFS Pinning service API. */
@@ -13809,7 +13892,7 @@ declare class API$f extends API$s {
13809
13892
  waitForPin: (request: Readonly<GetPinRequest>, options?: Readonly<WaitForOptions<Pin>>) => Promise<Pin>;
13810
13893
  protected pageOfListPins: (request: Readonly<ListPinsRequest>) => Promise<ListPinsResponse>;
13811
13894
  /**
13812
- * List all pins within a volume. Retrieve information about all pins into a
13895
+ * List all pins within a volume. Retrieve information about all pins within a
13813
13896
  * volume.
13814
13897
  *
13815
13898
  * @param request - The request {@link ListPinsRequest}
@@ -13827,7 +13910,20 @@ declare class API$f extends API$s {
13827
13910
  * @param request - The request {@link DeletePinRequest}
13828
13911
  */
13829
13912
  deletePin: (request: Readonly<DeletePinRequest>) => Promise<void>;
13913
+ /**
13914
+ * Create a new name. You can use the `ipfs key` command to list and generate
13915
+ * more names and their respective keys.
13916
+ *
13917
+ * @param request - The request {@link CreateNameRequest}
13918
+ * @returns A Promise of Name
13919
+ */
13830
13920
  createName: (request: Readonly<CreateNameRequest>) => Promise<Name>;
13921
+ /**
13922
+ * Get information about a name. Retrieve information about a specific name.
13923
+ *
13924
+ * @param request - The request {@link GetNameRequest}
13925
+ * @returns A Promise of Name
13926
+ */
13831
13927
  getName: (request: Readonly<GetNameRequest>) => Promise<Name>;
13832
13928
  /**
13833
13929
  * Waits for {@link Name} to be in a final state.
@@ -13837,14 +13933,44 @@ declare class API$f extends API$s {
13837
13933
  * @returns A Promise of Name
13838
13934
  */
13839
13935
  waitForName: (request: Readonly<GetNameRequest>, options?: Readonly<WaitForOptions<Name>>) => Promise<Name>;
13936
+ /**
13937
+ * Delete an existing name. Delete a name by its ID.
13938
+ *
13939
+ * @param request - The request {@link DeleteNameRequest}
13940
+ */
13840
13941
  deleteName: (request: Readonly<DeleteNameRequest>) => Promise<void>;
13841
13942
  protected pageOfListNames: (request?: Readonly<ListNamesRequest>) => Promise<ListNamesResponse>;
13943
+ /**
13944
+ * List all names by a Project ID. Retrieve information about all names from a
13945
+ * Project ID.
13946
+ *
13947
+ * @param request - The request {@link ListNamesRequest}
13948
+ * @returns A Promise of ListNamesResponse
13949
+ */
13842
13950
  listNames: (request?: Readonly<ListNamesRequest>) => Promise<ListNamesResponse> & {
13843
13951
  all: () => Promise<Name[]>;
13844
13952
  [Symbol.asyncIterator]: () => AsyncGenerator<Name[], void, void>;
13845
13953
  };
13954
+ /**
13955
+ * Update name information. Update name information (CID, tag, name...).
13956
+ *
13957
+ * @param request - The request {@link UpdateNameRequest}
13958
+ * @returns A Promise of Name
13959
+ */
13846
13960
  updateName: (request: Readonly<UpdateNameRequest>) => Promise<Name>;
13961
+ /**
13962
+ * Export your private key. Export a private key by its ID.
13963
+ *
13964
+ * @param request - The request {@link ExportKeyNameRequest}
13965
+ * @returns A Promise of ExportKeyNameResponse
13966
+ */
13847
13967
  exportKeyName: (request: Readonly<ExportKeyNameRequest>) => Promise<ExportKeyNameResponse>;
13968
+ /**
13969
+ * Import your private key. Import a private key.
13970
+ *
13971
+ * @param request - The request {@link ImportKeyNameRequest}
13972
+ * @returns A Promise of Name
13973
+ */
13848
13974
  importKeyName: (request: Readonly<ImportKeyNameRequest>) => Promise<Name>;
13849
13975
  }
13850
13976
 
@@ -1,4 +1,4 @@
1
- const version = 'v1.28.0';
1
+ const version = 'v1.29.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": "1.29.0",
3
+ "version": "1.30.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "e013092926ce4f0c69f7d59c040037584c1e422b"
38
+ "gitHead": "71a473f179e49fc595117cb9e175584d4e0696e5"
39
39
  }