@scaleway/sdk 1.31.0 → 1.32.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.
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.31.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.
@@ -3834,6 +3836,18 @@ const unmarshalCockpitMetrics = data => {
3834
3836
  timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
3835
3837
  };
3836
3838
  };
3839
+ const unmarshalDatasource = data => {
3840
+ if (!isJSONObject(data)) {
3841
+ throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
3842
+ }
3843
+ return {
3844
+ id: data.id,
3845
+ name: data.name,
3846
+ projectId: data.project_id,
3847
+ type: data.type,
3848
+ url: data.url
3849
+ };
3850
+ };
3837
3851
  const unmarshalListContactPointsResponse = data => {
3838
3852
  if (!isJSONObject(data)) {
3839
3853
  throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
@@ -3905,6 +3919,11 @@ const marshalCreateContactPointRequest = (request, defaults) => ({
3905
3919
  contact_point: request.contactPoint ? marshalContactPoint(request.contactPoint) : undefined,
3906
3920
  project_id: request.projectId ?? defaults.defaultProjectId
3907
3921
  });
3922
+ const marshalCreateDatasourceRequest = (request, defaults) => ({
3923
+ name: request.name,
3924
+ project_id: request.projectId ?? defaults.defaultProjectId,
3925
+ type: request.type ?? 'unknown_datasource_type'
3926
+ });
3908
3927
  const marshalCreateGrafanaUserRequest = (request, defaults) => ({
3909
3928
  login: request.login,
3910
3929
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -3954,13 +3973,13 @@ const jsonContentHeaders$l = {
3954
3973
  /**
3955
3974
  * Cockpit API.
3956
3975
  *
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.
3976
+ * Cockpit's API allows you to activate your Cockpit on your Projects.
3977
+ * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
3978
+ * for dashboarding to visualize them. Cockpit API.
3960
3979
  */
3961
3980
  let API$n = class API extends API$s {
3962
3981
  /**
3963
- * Activate a Cockpit. Activate the Cockpit of the specified Project ID.
3982
+ * Activate the Cockpit of the specified Project ID.
3964
3983
  *
3965
3984
  * @param request - The request {@link ActivateCockpitRequest}
3966
3985
  * @returns A Promise of Cockpit
@@ -3973,7 +3992,7 @@ let API$n = class API extends API$s {
3973
3992
  }, unmarshalCockpit);
3974
3993
 
3975
3994
  /**
3976
- * Get a Cockpit. Retrieve the Cockpit of the specified Project ID.
3995
+ * Retrieve the Cockpit of the specified Project ID.
3977
3996
  *
3978
3997
  * @param request - The request {@link GetCockpitRequest}
3979
3998
  * @returns A Promise of Cockpit
@@ -3994,8 +4013,7 @@ let API$n = class API extends API$s {
3994
4013
  waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
3995
4014
 
3996
4015
  /**
3997
- * Get Cockpit metrics. Get metrics from your Cockpit with the specified
3998
- * Project ID.
4016
+ * Get metrics from your Cockpit with the specified Project ID.
3999
4017
  *
4000
4018
  * @param request - The request {@link GetCockpitMetricsRequest}
4001
4019
  * @returns A Promise of CockpitMetrics
@@ -4007,7 +4025,7 @@ let API$n = class API extends API$s {
4007
4025
  }, unmarshalCockpitMetrics);
4008
4026
 
4009
4027
  /**
4010
- * Deactivate a Cockpit. Deactivate the Cockpit of the specified Project ID.
4028
+ * Deactivate the Cockpit of the specified Project ID.
4011
4029
  *
4012
4030
  * @param request - The request {@link DeactivateCockpitRequest}
4013
4031
  * @returns A Promise of Cockpit
@@ -4020,8 +4038,7 @@ let API$n = class API extends API$s {
4020
4038
  }, unmarshalCockpit);
4021
4039
 
4022
4040
  /**
4023
- * Reset a Grafana. Reset your Cockpit's Grafana associated with the specified
4024
- * Project ID.
4041
+ * Reset your Cockpit's Grafana associated with the specified Project ID.
4025
4042
  *
4026
4043
  * @param request - The request {@link ResetCockpitGrafanaRequest}
4027
4044
  * @returns A Promise of Cockpit
@@ -4034,7 +4051,20 @@ let API$n = class API extends API$s {
4034
4051
  }, unmarshalCockpit);
4035
4052
 
4036
4053
  /**
4037
- * Create a token. Create a token associated with the specified Project ID.
4054
+ * Create a datasource for the specified Project ID and the given type.
4055
+ *
4056
+ * @param request - The request {@link CreateDatasourceRequest}
4057
+ * @returns A Promise of Datasource
4058
+ */
4059
+ createDatasource = request => this.client.fetch({
4060
+ body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
4061
+ headers: jsonContentHeaders$l,
4062
+ method: 'POST',
4063
+ path: `/cockpit/v1beta1/datasources`
4064
+ }, unmarshalDatasource);
4065
+
4066
+ /**
4067
+ * Create a token associated with the specified Project ID.
4038
4068
  *
4039
4069
  * @param request - The request {@link CreateTokenRequest}
4040
4070
  * @returns A Promise of Token
@@ -4052,7 +4082,7 @@ let API$n = class API extends API$s {
4052
4082
  }, unmarshalListTokensResponse$2);
4053
4083
 
4054
4084
  /**
4055
- * List tokens. Get a list of tokens associated with the specified Project ID.
4085
+ * Get a list of tokens associated with the specified Project ID.
4056
4086
  *
4057
4087
  * @param request - The request {@link ListTokensRequest}
4058
4088
  * @returns A Promise of ListTokensResponse
@@ -4060,7 +4090,7 @@ let API$n = class API extends API$s {
4060
4090
  listTokens = (request = {}) => enrichForPagination('tokens', this.pageOfListTokens, request);
4061
4091
 
4062
4092
  /**
4063
- * Get a token. Retrieve the token associated with the specified token ID.
4093
+ * Retrieve the token associated with the specified token ID.
4064
4094
  *
4065
4095
  * @param request - The request {@link GetTokenRequest}
4066
4096
  * @returns A Promise of Token
@@ -4071,7 +4101,7 @@ let API$n = class API extends API$s {
4071
4101
  }, unmarshalToken$2);
4072
4102
 
4073
4103
  /**
4074
- * Delete a token. Delete the token associated with the specified token ID.
4104
+ * Delete the token associated with the specified token ID.
4075
4105
  *
4076
4106
  * @param request - The request {@link DeleteTokenRequest}
4077
4107
  */
@@ -4081,8 +4111,7 @@ let API$n = class API extends API$s {
4081
4111
  });
4082
4112
 
4083
4113
  /**
4084
- * Create a contact point. Create a contact point to receive alerts for the
4085
- * default receiver.
4114
+ * Create a contact point to receive alerts for the default receiver.
4086
4115
  *
4087
4116
  * @param request - The request {@link CreateContactPointRequest}
4088
4117
  * @returns A Promise of ContactPoint
@@ -4100,8 +4129,8 @@ let API$n = class API extends API$s {
4100
4129
  }, unmarshalListContactPointsResponse);
4101
4130
 
4102
4131
  /**
4103
- * List contact points. Get a list of contact points for the Cockpit
4104
- * associated with the specified Project ID.
4132
+ * Get a list of contact points for the Cockpit associated with the specified
4133
+ * Project ID.
4105
4134
  *
4106
4135
  * @param request - The request {@link ListContactPointsRequest}
4107
4136
  * @returns A Promise of ListContactPointsResponse
@@ -4109,8 +4138,7 @@ let API$n = class API extends API$s {
4109
4138
  listContactPoints = (request = {}) => enrichForPagination('contactPoints', this.pageOfListContactPoints, request);
4110
4139
 
4111
4140
  /**
4112
- * Delete an alert contact point. Delete a contact point for the default
4113
- * receiver.
4141
+ * Delete a contact point for the default receiver.
4114
4142
  *
4115
4143
  * @param request - The request {@link DeleteContactPointRequest}
4116
4144
  */
@@ -4122,8 +4150,7 @@ let API$n = class API extends API$s {
4122
4150
  });
4123
4151
 
4124
4152
  /**
4125
- * Enable managed alerts. Enable the sending of managed alerts for the
4126
- * specified Project's Cockpit.
4153
+ * Enable the sending of managed alerts for the specified Project's Cockpit.
4127
4154
  *
4128
4155
  * @param request - The request {@link EnableManagedAlertsRequest}
4129
4156
  */
@@ -4135,8 +4162,7 @@ let API$n = class API extends API$s {
4135
4162
  });
4136
4163
 
4137
4164
  /**
4138
- * Disable managed alerts. Disable the sending of managed alerts for the
4139
- * specified Project's Cockpit.
4165
+ * Disable the sending of managed alerts for the specified Project's Cockpit.
4140
4166
  *
4141
4167
  * @param request - The request {@link DisableManagedAlertsRequest}
4142
4168
  */
@@ -4148,8 +4174,7 @@ let API$n = class API extends API$s {
4148
4174
  });
4149
4175
 
4150
4176
  /**
4151
- * Trigger a test alert. Trigger a test alert to all of the Cockpit's
4152
- * receivers.
4177
+ * Trigger a test alert to all of the Cockpit's receivers.
4153
4178
  *
4154
4179
  * @param request - The request {@link TriggerTestAlertRequest}
4155
4180
  */
@@ -4161,9 +4186,8 @@ let API$n = class API extends API$s {
4161
4186
  });
4162
4187
 
4163
4188
  /**
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.
4189
+ * Create a Grafana user for your Cockpit's Grafana instance. Make sure you
4190
+ * save the automatically-generated password and the Grafana user ID.
4167
4191
  *
4168
4192
  * @param request - The request {@link CreateGrafanaUserRequest}
4169
4193
  * @returns A Promise of GrafanaUser
@@ -4181,8 +4205,8 @@ let API$n = class API extends API$s {
4181
4205
  }, unmarshalListGrafanaUsersResponse);
4182
4206
 
4183
4207
  /**
4184
- * List Grafana users. Get a list of Grafana users who are able to connect to
4185
- * the Cockpit's Grafana instance.
4208
+ * Get a list of Grafana users who are able to connect to the Cockpit's
4209
+ * Grafana instance.
4186
4210
  *
4187
4211
  * @param request - The request {@link ListGrafanaUsersRequest}
4188
4212
  * @returns A Promise of ListGrafanaUsersResponse
@@ -4190,8 +4214,8 @@ let API$n = class API extends API$s {
4190
4214
  listGrafanaUsers = (request = {}) => enrichForPagination('grafanaUsers', this.pageOfListGrafanaUsers, request);
4191
4215
 
4192
4216
  /**
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.
4217
+ * Delete a Grafana user from a Grafana instance, specified by the Cockpit's
4218
+ * Project ID and the Grafana user ID.
4195
4219
  *
4196
4220
  * @param request - The request {@link DeleteGrafanaUserRequest}
4197
4221
  */
@@ -4203,8 +4227,8 @@ let API$n = class API extends API$s {
4203
4227
  });
4204
4228
 
4205
4229
  /**
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.
4230
+ * Reset a Grafana user's password specified by the Cockpit's Project ID and
4231
+ * the Grafana user ID.
4208
4232
  *
4209
4233
  * @param request - The request {@link ResetGrafanaUserPasswordRequest}
4210
4234
  * @returns A Promise of GrafanaUser
@@ -4222,7 +4246,7 @@ let API$n = class API extends API$s {
4222
4246
  }, unmarshalListPlansResponse);
4223
4247
 
4224
4248
  /**
4225
- * List pricing plans. Get a list of all pricing plans available.
4249
+ * Get a list of all pricing plans available.
4226
4250
  *
4227
4251
  * @param request - The request {@link ListPlansRequest}
4228
4252
  * @returns A Promise of ListPlansResponse
@@ -4230,9 +4254,8 @@ let API$n = class API extends API$s {
4230
4254
  listPlans = (request = {}) => enrichForPagination('plans', this.pageOfListPlans, request);
4231
4255
 
4232
4256
  /**
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.
4257
+ * Select your chosen pricing plan for your Cockpit, specifying the Cockpit's
4258
+ * Project ID and the pricing plan's ID in the request.
4236
4259
  *
4237
4260
  * @param request - The request {@link SelectPlanRequest}
4238
4261
  * @returns A Promise of SelectPlanResponse
@@ -11149,7 +11172,7 @@ let API$h = class API extends API$s {
11149
11172
  pageOfListSnapshots = (request = {}) => this.client.fetch({
11150
11173
  method: 'GET',
11151
11174
  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])
11175
+ 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
11176
  }, unmarshalListSnapshotsResponse$1);
11154
11177
 
11155
11178
  /**
@@ -13148,9 +13171,6 @@ var index$g = /*#__PURE__*/Object.freeze({
13148
13171
  // This file was automatically generated. DO NOT EDIT.
13149
13172
  // If you have any remark or suggestion do not hesitate to open an issue.
13150
13173
 
13151
- /** Lists transient statutes of the enum {@link NameStatus}. */
13152
- const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
13153
-
13154
13174
  /** Lists transient statutes of the enum {@link PinStatus}. */
13155
13175
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
13156
13176
 
@@ -13187,22 +13207,6 @@ const unmarshalPinInfo = data => {
13187
13207
  url: data.url
13188
13208
  };
13189
13209
  };
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
13210
  const unmarshalPin = data => {
13207
13211
  if (!isJSONObject(data)) {
13208
13212
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -13232,28 +13236,6 @@ const unmarshalVolume$1 = data => {
13232
13236
  updatedAt: unmarshalDate(data.updated_at)
13233
13237
  };
13234
13238
  };
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
13239
  const unmarshalListPinsResponse = data => {
13258
13240
  if (!isJSONObject(data)) {
13259
13241
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -13284,11 +13266,6 @@ const marshalPinOptions = (request, defaults) => ({
13284
13266
  replication_count: request.replicationCount,
13285
13267
  required_zones: request.requiredZones
13286
13268
  });
13287
- const marshalCreateNameRequest = (request, defaults) => ({
13288
- name: request.name,
13289
- project_id: request.projectId ?? defaults.defaultProjectId,
13290
- value: request.value
13291
- });
13292
13269
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
13293
13270
  cid: request.cid,
13294
13271
  name: request.name,
@@ -13306,12 +13283,6 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13306
13283
  name: request.name,
13307
13284
  project_id: request.projectId ?? defaults.defaultProjectId
13308
13285
  });
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
13286
  const marshalReplacePinRequest = (request, defaults) => ({
13316
13287
  cid: request.cid,
13317
13288
  name: request.name,
@@ -13319,11 +13290,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
13319
13290
  pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
13320
13291
  volume_id: request.volumeId
13321
13292
  });
13322
- const marshalUpdateNameRequest = (request, defaults) => ({
13323
- name: request.name,
13324
- tags: request.tags,
13325
- value: request.value
13326
- });
13327
13293
  const marshalUpdateVolumeRequest = (request, defaults) => ({
13328
13294
  name: request.name,
13329
13295
  tags: request.tags
@@ -13500,101 +13466,6 @@ let API$f = class API extends API$s {
13500
13466
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
13501
13467
  urlParams: urlParams(['volume_id', request.volumeId])
13502
13468
  });
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
13469
  };
13599
13470
 
13600
13471
  // This file was automatically generated. DO NOT EDIT.
@@ -13603,7 +13474,6 @@ let API$f = class API extends API$s {
13603
13474
  var index_gen$d = /*#__PURE__*/Object.freeze({
13604
13475
  __proto__: null,
13605
13476
  API: API$f,
13606
- NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
13607
13477
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
13608
13478
  });
13609
13479
 
@@ -14050,7 +13920,7 @@ let API$e = class API extends API$s {
14050
13920
  pageOfListClusters = (request = {}) => this.client.fetch({
14051
13921
  method: 'GET',
14052
13922
  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])
13923
+ 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
13924
  }, unmarshalListClustersResponse$1);
14055
13925
 
14056
13926
  /**
@@ -14941,6 +14811,7 @@ const unmarshalPrivateNetwork$3 = data => {
14941
14811
  createdAt: unmarshalDate(data.created_at),
14942
14812
  dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
14943
14813
  ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
14814
+ ipamIds: data.ipam_ids,
14944
14815
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
14945
14816
  privateNetworkId: data.private_network_id,
14946
14817
  staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
@@ -20764,11 +20635,11 @@ let API$6 = class API extends API$s {
20764
20635
  pageOfListFolders = (request = {}) => this.client.fetch({
20765
20636
  method: 'GET',
20766
20637
  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])
20638
+ 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
20639
  }, unmarshalListFoldersResponse);
20769
20640
 
20770
20641
  /**
20771
- * List secrets. Retrieve the list of folders created within a Project.
20642
+ * List folders. Retrieve the list of folders created within a Project.
20772
20643
  *
20773
20644
  * @param request - The request {@link ListFoldersRequest}
20774
20645
  * @returns A Promise of ListFoldersResponse