@scaleway/sdk 1.31.0 → 1.32.1

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.
package/dist/index.cjs CHANGED
@@ -497,10 +497,12 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.30.0';
500
+ const version = 'v1.32.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
- const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
503
+ const isBrowser = () =>
504
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
505
+ typeof window !== 'undefined' && typeof window.document !== 'undefined';
504
506
 
505
507
  /**
506
508
  * Composes request interceptors.
@@ -1743,11 +1745,13 @@ function validatePathParam(name, param) {
1743
1745
  * @internal
1744
1746
  */
1745
1747
  const resolveOneOf = (list, isRequired = false) => {
1746
- const elt = list.find(obj => obj.value) || list.find(obj => obj.default);
1747
- const value = elt?.value || elt?.default;
1748
- if (value) return {
1749
- [elt.param]: value
1750
- };
1748
+ const elt = list.find(obj => obj.value !== undefined) ?? list.find(obj => obj.default !== undefined);
1749
+ const value = elt?.value ?? elt?.default;
1750
+ if (elt && value !== undefined) {
1751
+ return {
1752
+ [elt.param]: value
1753
+ };
1754
+ }
1751
1755
  if (isRequired) {
1752
1756
  const keyList = list.map(obj => obj.param).join(' or ');
1753
1757
  throw new TypeError(`one of ${keyList} must be indicated in the request`);
@@ -3834,6 +3838,18 @@ const unmarshalCockpitMetrics = data => {
3834
3838
  timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
3835
3839
  };
3836
3840
  };
3841
+ const unmarshalDatasource = data => {
3842
+ if (!isJSONObject(data)) {
3843
+ throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
3844
+ }
3845
+ return {
3846
+ id: data.id,
3847
+ name: data.name,
3848
+ projectId: data.project_id,
3849
+ type: data.type,
3850
+ url: data.url
3851
+ };
3852
+ };
3837
3853
  const unmarshalListContactPointsResponse = data => {
3838
3854
  if (!isJSONObject(data)) {
3839
3855
  throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
@@ -3905,6 +3921,11 @@ const marshalCreateContactPointRequest = (request, defaults) => ({
3905
3921
  contact_point: request.contactPoint ? marshalContactPoint(request.contactPoint) : undefined,
3906
3922
  project_id: request.projectId ?? defaults.defaultProjectId
3907
3923
  });
3924
+ const marshalCreateDatasourceRequest = (request, defaults) => ({
3925
+ name: request.name,
3926
+ project_id: request.projectId ?? defaults.defaultProjectId,
3927
+ type: request.type ?? 'unknown_datasource_type'
3928
+ });
3908
3929
  const marshalCreateGrafanaUserRequest = (request, defaults) => ({
3909
3930
  login: request.login,
3910
3931
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -3954,13 +3975,13 @@ const jsonContentHeaders$l = {
3954
3975
  /**
3955
3976
  * Cockpit API.
3956
3977
  *
3957
- * Cockpit API. Cockpit's API allows you to activate your Cockpit on your
3958
- * Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated
3959
- * Grafana for dashboarding to visualize them.
3978
+ * Cockpit's API allows you to activate your Cockpit on your Projects.
3979
+ * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
3980
+ * for dashboarding to visualize them. Cockpit API.
3960
3981
  */
3961
3982
  let API$n = class API extends API$s {
3962
3983
  /**
3963
- * Activate a Cockpit. Activate the Cockpit of the specified Project ID.
3984
+ * Activate the Cockpit of the specified Project ID.
3964
3985
  *
3965
3986
  * @param request - The request {@link ActivateCockpitRequest}
3966
3987
  * @returns A Promise of Cockpit
@@ -3973,7 +3994,7 @@ let API$n = class API extends API$s {
3973
3994
  }, unmarshalCockpit);
3974
3995
 
3975
3996
  /**
3976
- * Get a Cockpit. Retrieve the Cockpit of the specified Project ID.
3997
+ * Retrieve the Cockpit of the specified Project ID.
3977
3998
  *
3978
3999
  * @param request - The request {@link GetCockpitRequest}
3979
4000
  * @returns A Promise of Cockpit
@@ -3994,8 +4015,7 @@ let API$n = class API extends API$s {
3994
4015
  waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
3995
4016
 
3996
4017
  /**
3997
- * Get Cockpit metrics. Get metrics from your Cockpit with the specified
3998
- * Project ID.
4018
+ * Get metrics from your Cockpit with the specified Project ID.
3999
4019
  *
4000
4020
  * @param request - The request {@link GetCockpitMetricsRequest}
4001
4021
  * @returns A Promise of CockpitMetrics
@@ -4007,7 +4027,7 @@ let API$n = class API extends API$s {
4007
4027
  }, unmarshalCockpitMetrics);
4008
4028
 
4009
4029
  /**
4010
- * Deactivate a Cockpit. Deactivate the Cockpit of the specified Project ID.
4030
+ * Deactivate the Cockpit of the specified Project ID.
4011
4031
  *
4012
4032
  * @param request - The request {@link DeactivateCockpitRequest}
4013
4033
  * @returns A Promise of Cockpit
@@ -4020,8 +4040,7 @@ let API$n = class API extends API$s {
4020
4040
  }, unmarshalCockpit);
4021
4041
 
4022
4042
  /**
4023
- * Reset a Grafana. Reset your Cockpit's Grafana associated with the specified
4024
- * Project ID.
4043
+ * Reset your Cockpit's Grafana associated with the specified Project ID.
4025
4044
  *
4026
4045
  * @param request - The request {@link ResetCockpitGrafanaRequest}
4027
4046
  * @returns A Promise of Cockpit
@@ -4034,7 +4053,20 @@ let API$n = class API extends API$s {
4034
4053
  }, unmarshalCockpit);
4035
4054
 
4036
4055
  /**
4037
- * Create a token. Create a token associated with the specified Project ID.
4056
+ * Create a datasource for the specified Project ID and the given type.
4057
+ *
4058
+ * @param request - The request {@link CreateDatasourceRequest}
4059
+ * @returns A Promise of Datasource
4060
+ */
4061
+ createDatasource = request => this.client.fetch({
4062
+ body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
4063
+ headers: jsonContentHeaders$l,
4064
+ method: 'POST',
4065
+ path: `/cockpit/v1beta1/datasources`
4066
+ }, unmarshalDatasource);
4067
+
4068
+ /**
4069
+ * Create a token associated with the specified Project ID.
4038
4070
  *
4039
4071
  * @param request - The request {@link CreateTokenRequest}
4040
4072
  * @returns A Promise of Token
@@ -4052,7 +4084,7 @@ let API$n = class API extends API$s {
4052
4084
  }, unmarshalListTokensResponse$2);
4053
4085
 
4054
4086
  /**
4055
- * List tokens. Get a list of tokens associated with the specified Project ID.
4087
+ * Get a list of tokens associated with the specified Project ID.
4056
4088
  *
4057
4089
  * @param request - The request {@link ListTokensRequest}
4058
4090
  * @returns A Promise of ListTokensResponse
@@ -4060,7 +4092,7 @@ let API$n = class API extends API$s {
4060
4092
  listTokens = (request = {}) => enrichForPagination('tokens', this.pageOfListTokens, request);
4061
4093
 
4062
4094
  /**
4063
- * Get a token. Retrieve the token associated with the specified token ID.
4095
+ * Retrieve the token associated with the specified token ID.
4064
4096
  *
4065
4097
  * @param request - The request {@link GetTokenRequest}
4066
4098
  * @returns A Promise of Token
@@ -4071,7 +4103,7 @@ let API$n = class API extends API$s {
4071
4103
  }, unmarshalToken$2);
4072
4104
 
4073
4105
  /**
4074
- * Delete a token. Delete the token associated with the specified token ID.
4106
+ * Delete the token associated with the specified token ID.
4075
4107
  *
4076
4108
  * @param request - The request {@link DeleteTokenRequest}
4077
4109
  */
@@ -4081,8 +4113,7 @@ let API$n = class API extends API$s {
4081
4113
  });
4082
4114
 
4083
4115
  /**
4084
- * Create a contact point. Create a contact point to receive alerts for the
4085
- * default receiver.
4116
+ * Create a contact point to receive alerts for the default receiver.
4086
4117
  *
4087
4118
  * @param request - The request {@link CreateContactPointRequest}
4088
4119
  * @returns A Promise of ContactPoint
@@ -4100,8 +4131,8 @@ let API$n = class API extends API$s {
4100
4131
  }, unmarshalListContactPointsResponse);
4101
4132
 
4102
4133
  /**
4103
- * List contact points. Get a list of contact points for the Cockpit
4104
- * associated with the specified Project ID.
4134
+ * Get a list of contact points for the Cockpit associated with the specified
4135
+ * Project ID.
4105
4136
  *
4106
4137
  * @param request - The request {@link ListContactPointsRequest}
4107
4138
  * @returns A Promise of ListContactPointsResponse
@@ -4109,8 +4140,7 @@ let API$n = class API extends API$s {
4109
4140
  listContactPoints = (request = {}) => enrichForPagination('contactPoints', this.pageOfListContactPoints, request);
4110
4141
 
4111
4142
  /**
4112
- * Delete an alert contact point. Delete a contact point for the default
4113
- * receiver.
4143
+ * Delete a contact point for the default receiver.
4114
4144
  *
4115
4145
  * @param request - The request {@link DeleteContactPointRequest}
4116
4146
  */
@@ -4122,8 +4152,7 @@ let API$n = class API extends API$s {
4122
4152
  });
4123
4153
 
4124
4154
  /**
4125
- * Enable managed alerts. Enable the sending of managed alerts for the
4126
- * specified Project's Cockpit.
4155
+ * Enable the sending of managed alerts for the specified Project's Cockpit.
4127
4156
  *
4128
4157
  * @param request - The request {@link EnableManagedAlertsRequest}
4129
4158
  */
@@ -4135,8 +4164,7 @@ let API$n = class API extends API$s {
4135
4164
  });
4136
4165
 
4137
4166
  /**
4138
- * Disable managed alerts. Disable the sending of managed alerts for the
4139
- * specified Project's Cockpit.
4167
+ * Disable the sending of managed alerts for the specified Project's Cockpit.
4140
4168
  *
4141
4169
  * @param request - The request {@link DisableManagedAlertsRequest}
4142
4170
  */
@@ -4148,8 +4176,7 @@ let API$n = class API extends API$s {
4148
4176
  });
4149
4177
 
4150
4178
  /**
4151
- * Trigger a test alert. Trigger a test alert to all of the Cockpit's
4152
- * receivers.
4179
+ * Trigger a test alert to all of the Cockpit's receivers.
4153
4180
  *
4154
4181
  * @param request - The request {@link TriggerTestAlertRequest}
4155
4182
  */
@@ -4161,9 +4188,8 @@ let API$n = class API extends API$s {
4161
4188
  });
4162
4189
 
4163
4190
  /**
4164
- * Create a Grafana user. Create a Grafana user for your Cockpit's Grafana
4165
- * instance. Make sure you save the automatically-generated password and the
4166
- * Grafana user ID.
4191
+ * Create a Grafana user for your Cockpit's Grafana instance. Make sure you
4192
+ * save the automatically-generated password and the Grafana user ID.
4167
4193
  *
4168
4194
  * @param request - The request {@link CreateGrafanaUserRequest}
4169
4195
  * @returns A Promise of GrafanaUser
@@ -4181,8 +4207,8 @@ let API$n = class API extends API$s {
4181
4207
  }, unmarshalListGrafanaUsersResponse);
4182
4208
 
4183
4209
  /**
4184
- * List Grafana users. Get a list of Grafana users who are able to connect to
4185
- * the Cockpit's Grafana instance.
4210
+ * Get a list of Grafana users who are able to connect to the Cockpit's
4211
+ * Grafana instance.
4186
4212
  *
4187
4213
  * @param request - The request {@link ListGrafanaUsersRequest}
4188
4214
  * @returns A Promise of ListGrafanaUsersResponse
@@ -4190,8 +4216,8 @@ let API$n = class API extends API$s {
4190
4216
  listGrafanaUsers = (request = {}) => enrichForPagination('grafanaUsers', this.pageOfListGrafanaUsers, request);
4191
4217
 
4192
4218
  /**
4193
- * Delete a Grafana user. Delete a Grafana user from a Grafana instance,
4194
- * specified by the Cockpit's Project ID and the Grafana user ID.
4219
+ * Delete a Grafana user from a Grafana instance, specified by the Cockpit's
4220
+ * Project ID and the Grafana user ID.
4195
4221
  *
4196
4222
  * @param request - The request {@link DeleteGrafanaUserRequest}
4197
4223
  */
@@ -4203,8 +4229,8 @@ let API$n = class API extends API$s {
4203
4229
  });
4204
4230
 
4205
4231
  /**
4206
- * Reset a Grafana user's password. Reset a Grafana user's password specified
4207
- * by the Cockpit's Project ID and the Grafana user ID.
4232
+ * Reset a Grafana user's password specified by the Cockpit's Project ID and
4233
+ * the Grafana user ID.
4208
4234
  *
4209
4235
  * @param request - The request {@link ResetGrafanaUserPasswordRequest}
4210
4236
  * @returns A Promise of GrafanaUser
@@ -4222,7 +4248,7 @@ let API$n = class API extends API$s {
4222
4248
  }, unmarshalListPlansResponse);
4223
4249
 
4224
4250
  /**
4225
- * List pricing plans. Get a list of all pricing plans available.
4251
+ * Get a list of all pricing plans available.
4226
4252
  *
4227
4253
  * @param request - The request {@link ListPlansRequest}
4228
4254
  * @returns A Promise of ListPlansResponse
@@ -4230,9 +4256,8 @@ let API$n = class API extends API$s {
4230
4256
  listPlans = (request = {}) => enrichForPagination('plans', this.pageOfListPlans, request);
4231
4257
 
4232
4258
  /**
4233
- * Select pricing plan. Select your chosen pricing plan for your Cockpit,
4234
- * specifying the Cockpit's Project ID and the pricing plan's ID in the
4235
- * request.
4259
+ * Select your chosen pricing plan for your Cockpit, specifying the Cockpit's
4260
+ * Project ID and the pricing plan's ID in the request.
4236
4261
  *
4237
4262
  * @param request - The request {@link SelectPlanRequest}
4238
4263
  * @returns A Promise of SelectPlanResponse
@@ -11149,7 +11174,7 @@ let API$h = class API extends API$s {
11149
11174
  pageOfListSnapshots = (request = {}) => this.client.fetch({
11150
11175
  method: 'GET',
11151
11176
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`,
11152
- urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags])
11177
+ urlParams: urlParams(['base_volume_id', request.baseVolumeId], ['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags])
11153
11178
  }, unmarshalListSnapshotsResponse$1);
11154
11179
 
11155
11180
  /**
@@ -13148,9 +13173,6 @@ var index$g = /*#__PURE__*/Object.freeze({
13148
13173
  // This file was automatically generated. DO NOT EDIT.
13149
13174
  // If you have any remark or suggestion do not hesitate to open an issue.
13150
13175
 
13151
- /** Lists transient statutes of the enum {@link NameStatus}. */
13152
- const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
13153
-
13154
13176
  /** Lists transient statutes of the enum {@link PinStatus}. */
13155
13177
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
13156
13178
 
@@ -13187,22 +13209,6 @@ const unmarshalPinInfo = data => {
13187
13209
  url: data.url
13188
13210
  };
13189
13211
  };
13190
- const unmarshalName = data => {
13191
- if (!isJSONObject(data)) {
13192
- throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
13193
- }
13194
- return {
13195
- createdAt: unmarshalDate(data.created_at),
13196
- key: data.key,
13197
- name: data.name,
13198
- nameId: data.name_id,
13199
- projectId: data.project_id,
13200
- status: data.status,
13201
- tags: data.tags,
13202
- updatedAt: unmarshalDate(data.updated_at),
13203
- value: data.value
13204
- };
13205
- };
13206
13212
  const unmarshalPin = data => {
13207
13213
  if (!isJSONObject(data)) {
13208
13214
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -13232,28 +13238,6 @@ const unmarshalVolume$1 = data => {
13232
13238
  updatedAt: unmarshalDate(data.updated_at)
13233
13239
  };
13234
13240
  };
13235
- const unmarshalExportKeyNameResponse = data => {
13236
- if (!isJSONObject(data)) {
13237
- throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
13238
- }
13239
- return {
13240
- createdAt: unmarshalDate(data.created_at),
13241
- nameId: data.name_id,
13242
- privateKey: data.private_key,
13243
- projectId: data.project_id,
13244
- publicKey: data.public_key,
13245
- updatedAt: unmarshalDate(data.updated_at)
13246
- };
13247
- };
13248
- const unmarshalListNamesResponse = data => {
13249
- if (!isJSONObject(data)) {
13250
- throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
13251
- }
13252
- return {
13253
- names: unmarshalArrayOfObject(data.names, unmarshalName),
13254
- totalCount: data.total_count
13255
- };
13256
- };
13257
13241
  const unmarshalListPinsResponse = data => {
13258
13242
  if (!isJSONObject(data)) {
13259
13243
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -13284,11 +13268,6 @@ const marshalPinOptions = (request, defaults) => ({
13284
13268
  replication_count: request.replicationCount,
13285
13269
  required_zones: request.requiredZones
13286
13270
  });
13287
- const marshalCreateNameRequest = (request, defaults) => ({
13288
- name: request.name,
13289
- project_id: request.projectId ?? defaults.defaultProjectId,
13290
- value: request.value
13291
- });
13292
13271
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
13293
13272
  cid: request.cid,
13294
13273
  name: request.name,
@@ -13306,12 +13285,6 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13306
13285
  name: request.name,
13307
13286
  project_id: request.projectId ?? defaults.defaultProjectId
13308
13287
  });
13309
- const marshalImportKeyNameRequest = (request, defaults) => ({
13310
- name: request.name,
13311
- private_key: request.privateKey,
13312
- project_id: request.projectId ?? defaults.defaultProjectId,
13313
- value: request.value
13314
- });
13315
13288
  const marshalReplacePinRequest = (request, defaults) => ({
13316
13289
  cid: request.cid,
13317
13290
  name: request.name,
@@ -13319,11 +13292,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
13319
13292
  pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
13320
13293
  volume_id: request.volumeId
13321
13294
  });
13322
- const marshalUpdateNameRequest = (request, defaults) => ({
13323
- name: request.name,
13324
- tags: request.tags,
13325
- value: request.value
13326
- });
13327
13295
  const marshalUpdateVolumeRequest = (request, defaults) => ({
13328
13296
  name: request.name,
13329
13297
  tags: request.tags
@@ -13500,101 +13468,6 @@ let API$f = class API extends API$s {
13500
13468
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
13501
13469
  urlParams: urlParams(['volume_id', request.volumeId])
13502
13470
  });
13503
-
13504
- /**
13505
- * Create a new name. You can use the `ipfs key` command to list and generate
13506
- * more names and their respective keys.
13507
- *
13508
- * @param request - The request {@link CreateNameRequest}
13509
- * @returns A Promise of Name
13510
- */
13511
- createName = request => this.client.fetch({
13512
- body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
13513
- headers: jsonContentHeaders$d,
13514
- method: 'POST',
13515
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
13516
- }, unmarshalName);
13517
-
13518
- /**
13519
- * Get information about a name. Retrieve information about a specific name.
13520
- *
13521
- * @param request - The request {@link GetNameRequest}
13522
- * @returns A Promise of Name
13523
- */
13524
- getName = request => this.client.fetch({
13525
- method: 'GET',
13526
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13527
- }, unmarshalName);
13528
-
13529
- /**
13530
- * Waits for {@link Name} to be in a final state.
13531
- *
13532
- * @param request - The request {@link GetNameRequest}
13533
- * @param options - The waiting options
13534
- * @returns A Promise of Name
13535
- */
13536
- waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
13537
-
13538
- /**
13539
- * Delete an existing name. Delete a name by its ID.
13540
- *
13541
- * @param request - The request {@link DeleteNameRequest}
13542
- */
13543
- deleteName = request => this.client.fetch({
13544
- method: 'DELETE',
13545
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13546
- });
13547
- pageOfListNames = (request = {}) => this.client.fetch({
13548
- method: 'GET',
13549
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
13550
- 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])
13551
- }, unmarshalListNamesResponse);
13552
-
13553
- /**
13554
- * List all names by a Project ID. Retrieve information about all names from a
13555
- * Project ID.
13556
- *
13557
- * @param request - The request {@link ListNamesRequest}
13558
- * @returns A Promise of ListNamesResponse
13559
- */
13560
- listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
13561
-
13562
- /**
13563
- * Update name information. Update name information (CID, tag, name...).
13564
- *
13565
- * @param request - The request {@link UpdateNameRequest}
13566
- * @returns A Promise of Name
13567
- */
13568
- updateName = request => this.client.fetch({
13569
- body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
13570
- headers: jsonContentHeaders$d,
13571
- method: 'PATCH',
13572
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13573
- }, unmarshalName);
13574
-
13575
- /**
13576
- * Export your private key. Export a private key by its ID.
13577
- *
13578
- * @param request - The request {@link ExportKeyNameRequest}
13579
- * @returns A Promise of ExportKeyNameResponse
13580
- */
13581
- exportKeyName = request => this.client.fetch({
13582
- method: 'GET',
13583
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
13584
- }, unmarshalExportKeyNameResponse);
13585
-
13586
- /**
13587
- * Import your private key. Import a private key.
13588
- *
13589
- * @param request - The request {@link ImportKeyNameRequest}
13590
- * @returns A Promise of Name
13591
- */
13592
- importKeyName = request => this.client.fetch({
13593
- body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
13594
- headers: jsonContentHeaders$d,
13595
- method: 'POST',
13596
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
13597
- }, unmarshalName);
13598
13471
  };
13599
13472
 
13600
13473
  // This file was automatically generated. DO NOT EDIT.
@@ -13603,7 +13476,6 @@ let API$f = class API extends API$s {
13603
13476
  var index_gen$d = /*#__PURE__*/Object.freeze({
13604
13477
  __proto__: null,
13605
13478
  API: API$f,
13606
- NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
13607
13479
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
13608
13480
  });
13609
13481
 
@@ -14050,7 +13922,7 @@ let API$e = class API extends API$s {
14050
13922
  pageOfListClusters = (request = {}) => this.client.fetch({
14051
13923
  method: 'GET',
14052
13924
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters`,
14053
- urlParams: urlParams(['name', request.name], ['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], ['status', request.status ?? 'unknown'], ['type', request.type])
13925
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_id', request.privateNetworkId], ['project_id', request.projectId], ['status', request.status ?? 'unknown'], ['type', request.type])
14054
13926
  }, unmarshalListClustersResponse$1);
14055
13927
 
14056
13928
  /**
@@ -14941,6 +14813,7 @@ const unmarshalPrivateNetwork$3 = data => {
14941
14813
  createdAt: unmarshalDate(data.created_at),
14942
14814
  dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
14943
14815
  ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
14816
+ ipamIds: data.ipam_ids,
14944
14817
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
14945
14818
  privateNetworkId: data.private_network_id,
14946
14819
  staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
@@ -20764,11 +20637,11 @@ let API$6 = class API extends API$s {
20764
20637
  pageOfListFolders = (request = {}) => this.client.fetch({
20765
20638
  method: 'GET',
20766
20639
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/folders`,
20767
- urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
20640
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId])
20768
20641
  }, unmarshalListFoldersResponse);
20769
20642
 
20770
20643
  /**
20771
- * List secrets. Retrieve the list of folders created within a Project.
20644
+ * List folders. Retrieve the list of folders created within a Project.
20772
20645
  *
20773
20646
  * @param request - The request {@link ListFoldersRequest}
20774
20647
  * @returns A Promise of ListFoldersResponse