@scaleway/sdk 2.51.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  2. package/dist/api/baremetal/v1/marshalling.gen.cjs +12 -0
  3. package/dist/api/baremetal/v1/marshalling.gen.js +12 -0
  4. package/dist/api/baremetal/v1/types.gen.d.ts +8 -0
  5. package/dist/api/block/v1alpha1/api.gen.cjs +3 -0
  6. package/dist/api/block/v1alpha1/api.gen.js +3 -0
  7. package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
  8. package/dist/api/container/v1beta1/marshalling.gen.cjs +21 -0
  9. package/dist/api/container/v1beta1/marshalling.gen.js +21 -0
  10. package/dist/api/container/v1beta1/types.gen.d.ts +30 -2
  11. package/dist/api/container/v1beta1/validation-rules.gen.cjs +2 -0
  12. package/dist/api/container/v1beta1/validation-rules.gen.d.ts +1 -0
  13. package/dist/api/container/v1beta1/validation-rules.gen.js +2 -0
  14. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +1 -0
  15. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +1 -0
  16. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +2 -0
  17. package/dist/api/iam/v1alpha1/api.gen.cjs +11 -0
  18. package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
  19. package/dist/api/iam/v1alpha1/api.gen.js +12 -1
  20. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  21. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +5 -0
  22. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.js +5 -0
  24. package/dist/api/iam/v1alpha1/types.gen.d.ts +23 -18
  25. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +7 -0
  26. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +6 -0
  27. package/dist/api/iam/v1alpha1/validation-rules.gen.js +8 -1
  28. package/dist/api/jobs/v1alpha1/api.gen.cjs +13 -0
  29. package/dist/api/jobs/v1alpha1/api.gen.d.ts +8 -1
  30. package/dist/api/jobs/v1alpha1/api.gen.js +14 -1
  31. package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
  32. package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +11 -0
  33. package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
  34. package/dist/api/jobs/v1alpha1/marshalling.gen.js +11 -0
  35. package/dist/api/jobs/v1alpha1/types.gen.d.ts +10 -0
  36. package/dist/api/k8s/v1/api.gen.cjs +0 -16
  37. package/dist/api/k8s/v1/api.gen.d.ts +1 -9
  38. package/dist/api/k8s/v1/api.gen.js +0 -16
  39. package/dist/api/k8s/v1/index.gen.d.ts +1 -1
  40. package/dist/api/k8s/v1/types.gen.d.ts +0 -9
  41. package/dist/api/k8s/v1/validation-rules.gen.cjs +8 -16
  42. package/dist/api/k8s/v1/validation-rules.gen.d.ts +0 -8
  43. package/dist/api/k8s/v1/validation-rules.gen.js +8 -16
  44. package/dist/api/mongodb/v1alpha1/api.gen.cjs +8 -0
  45. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -0
  46. package/dist/api/mongodb/v1alpha1/api.gen.js +8 -0
  47. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +2 -1
  48. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +2 -1
  49. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
  50. package/dist/scw/constants.cjs +1 -1
  51. package/dist/scw/constants.d.ts +2 -2
  52. package/dist/scw/constants.js +1 -1
  53. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
1
  export { API, PrivateNetworkAPI } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
3
+ export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -213,6 +213,17 @@ const unmarshalDisk = (data) => {
213
213
  type: data.type
214
214
  };
215
215
  };
216
+ const unmarshalGPU = (data) => {
217
+ if (!json.isJSONObject(data)) {
218
+ throw new TypeError(
219
+ `Unmarshalling the type 'GPU' failed as data isn't a dictionary.`
220
+ );
221
+ }
222
+ return {
223
+ name: data.name,
224
+ vram: data.vram
225
+ };
226
+ };
216
227
  const unmarshalMemory = (data) => {
217
228
  if (!json.isJSONObject(data)) {
218
229
  throw new TypeError(
@@ -283,6 +294,7 @@ const unmarshalOffer = (data) => {
283
294
  disks: marshalling.unmarshalArrayOfObject(data.disks, unmarshalDisk),
284
295
  enable: data.enable,
285
296
  fee: data.fee ? customMarshalling.unmarshalMoney(data.fee) : void 0,
297
+ gpus: marshalling.unmarshalArrayOfObject(data.gpus, unmarshalGPU),
286
298
  id: data.id,
287
299
  incompatibleOsIds: data.incompatible_os_ids,
288
300
  maxBandwidth: data.max_bandwidth,
@@ -211,6 +211,17 @@ const unmarshalDisk = (data) => {
211
211
  type: data.type
212
212
  };
213
213
  };
214
+ const unmarshalGPU = (data) => {
215
+ if (!isJSONObject(data)) {
216
+ throw new TypeError(
217
+ `Unmarshalling the type 'GPU' failed as data isn't a dictionary.`
218
+ );
219
+ }
220
+ return {
221
+ name: data.name,
222
+ vram: data.vram
223
+ };
224
+ };
214
225
  const unmarshalMemory = (data) => {
215
226
  if (!isJSONObject(data)) {
216
227
  throw new TypeError(
@@ -281,6 +292,7 @@ const unmarshalOffer = (data) => {
281
292
  disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
282
293
  enable: data.enable,
283
294
  fee: data.fee ? unmarshalMoney(data.fee) : void 0,
295
+ gpus: unmarshalArrayOfObject(data.gpus, unmarshalGPU),
284
296
  id: data.id,
285
297
  incompatibleOsIds: data.incompatible_os_ids,
286
298
  maxBandwidth: data.max_bandwidth,
@@ -89,6 +89,12 @@ export interface Disk {
89
89
  /** Type of the disk. */
90
90
  type: string;
91
91
  }
92
+ export interface GPU {
93
+ /** Name of the GPU. */
94
+ name: string;
95
+ /** Capacity of the vram in bytes. */
96
+ vram: number;
97
+ }
92
98
  export interface Memory {
93
99
  /** Capacity of the memory in bytes. */
94
100
  capacity: number;
@@ -358,6 +364,8 @@ export interface Offer {
358
364
  sharedBandwidth: boolean;
359
365
  /** Array of tags attached to the offer. */
360
366
  tags: string[];
367
+ /** GPU specifications of the offer. */
368
+ gpus: GPU[];
361
369
  }
362
370
  export interface Option {
363
371
  /** ID of the option. */
@@ -15,9 +15,12 @@ class API extends api.API {
15
15
  static LOCALITIES = [
16
16
  "fr-par-1",
17
17
  "fr-par-2",
18
+ "fr-par-3",
18
19
  "nl-ams-1",
19
20
  "nl-ams-2",
20
21
  "nl-ams-3",
22
+ "pl-waw-1",
23
+ "pl-waw-2",
21
24
  "pl-waw-3"
22
25
  ];
23
26
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
@@ -13,9 +13,12 @@ class API extends API$1 {
13
13
  static LOCALITIES = [
14
14
  "fr-par-1",
15
15
  "fr-par-2",
16
+ "fr-par-3",
16
17
  "nl-ams-1",
17
18
  "nl-ams-2",
18
19
  "nl-ams-3",
20
+ "pl-waw-1",
21
+ "pl-waw-2",
19
22
  "pl-waw-3"
20
23
  ];
21
24
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
3
+ export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerScalingOption, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -4,6 +4,16 @@ const randomName = require("@scaleway/random-name");
4
4
  const json = require("../../../helpers/json.cjs");
5
5
  const marshalling = require("../../../helpers/marshalling.cjs");
6
6
  require("../../../vendor/base64/index.cjs");
7
+ const unmarshalContainerScalingOption = (data) => {
8
+ if (!json.isJSONObject(data)) {
9
+ throw new TypeError(
10
+ `Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`
11
+ );
12
+ }
13
+ return {
14
+ concurrentRequestsThreshold: data.concurrent_requests_threshold
15
+ };
16
+ };
7
17
  const unmarshalSecretHashedValue = (data) => {
8
18
  if (!json.isJSONObject(data)) {
9
19
  throw new TypeError(
@@ -42,6 +52,7 @@ const unmarshalContainer = (data) => {
42
52
  region: data.region,
43
53
  registryImage: data.registry_image,
44
54
  sandbox: data.sandbox,
55
+ scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : void 0,
45
56
  secretEnvironmentVariables: marshalling.unmarshalArrayOfObject(
46
57
  data.secret_environment_variables,
47
58
  unmarshalSecretHashedValue
@@ -246,6 +257,14 @@ const unmarshalListTriggersResponse = (data) => {
246
257
  triggers: marshalling.unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
247
258
  };
248
259
  };
260
+ const marshalContainerScalingOption = (request, defaults) => ({
261
+ ...marshalling.resolveOneOf([
262
+ {
263
+ param: "concurrent_requests_threshold",
264
+ value: request.concurrentRequestsThreshold
265
+ }
266
+ ])
267
+ });
249
268
  const marshalSecret = (request, defaults) => ({
250
269
  key: request.key,
251
270
  value: request.value
@@ -267,6 +286,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
267
286
  protocol: request.protocol,
268
287
  registry_image: request.registryImage,
269
288
  sandbox: request.sandbox,
289
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
270
290
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
271
291
  (elt) => marshalSecret(elt)
272
292
  ) : void 0,
@@ -357,6 +377,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
357
377
  redeploy: request.redeploy,
358
378
  registry_image: request.registryImage,
359
379
  sandbox: request.sandbox,
380
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
360
381
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
361
382
  (elt) => marshalSecret(elt)
362
383
  ) : void 0,
@@ -2,6 +2,16 @@ import randomName from "@scaleway/random-name";
2
2
  import { isJSONObject } from "../../../helpers/json.js";
3
3
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from "../../../helpers/marshalling.js";
4
4
  import "../../../vendor/base64/index.js";
5
+ const unmarshalContainerScalingOption = (data) => {
6
+ if (!isJSONObject(data)) {
7
+ throw new TypeError(
8
+ `Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`
9
+ );
10
+ }
11
+ return {
12
+ concurrentRequestsThreshold: data.concurrent_requests_threshold
13
+ };
14
+ };
5
15
  const unmarshalSecretHashedValue = (data) => {
6
16
  if (!isJSONObject(data)) {
7
17
  throw new TypeError(
@@ -40,6 +50,7 @@ const unmarshalContainer = (data) => {
40
50
  region: data.region,
41
51
  registryImage: data.registry_image,
42
52
  sandbox: data.sandbox,
53
+ scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : void 0,
43
54
  secretEnvironmentVariables: unmarshalArrayOfObject(
44
55
  data.secret_environment_variables,
45
56
  unmarshalSecretHashedValue
@@ -244,6 +255,14 @@ const unmarshalListTriggersResponse = (data) => {
244
255
  triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
245
256
  };
246
257
  };
258
+ const marshalContainerScalingOption = (request, defaults) => ({
259
+ ...resolveOneOf([
260
+ {
261
+ param: "concurrent_requests_threshold",
262
+ value: request.concurrentRequestsThreshold
263
+ }
264
+ ])
265
+ });
247
266
  const marshalSecret = (request, defaults) => ({
248
267
  key: request.key,
249
268
  value: request.value
@@ -265,6 +284,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
265
284
  protocol: request.protocol,
266
285
  registry_image: request.registryImage,
267
286
  sandbox: request.sandbox,
287
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
268
288
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
269
289
  (elt) => marshalSecret(elt)
270
290
  ) : void 0,
@@ -355,6 +375,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
355
375
  redeploy: request.redeploy,
356
376
  registry_image: request.registryImage,
357
377
  sandbox: request.sandbox,
378
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
358
379
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
359
380
  (elt) => marshalSecret(elt)
360
381
  ) : void 0,
@@ -16,6 +16,13 @@ export type NamespaceStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'lock
16
16
  export type TokenStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating';
17
17
  export type TriggerInputType = 'unknown_input_type' | 'sqs' | 'scw_sqs' | 'nats' | 'scw_nats';
18
18
  export type TriggerStatus = 'unknown_status' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
19
+ export interface ContainerScalingOption {
20
+ /**
21
+ * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold' could
22
+ * be set.
23
+ */
24
+ concurrentRequestsThreshold?: number;
25
+ }
19
26
  export interface SecretHashedValue {
20
27
  key: string;
21
28
  hashedValue: string;
@@ -136,6 +143,13 @@ export interface Container {
136
143
  sandbox: ContainerSandbox;
137
144
  /** Local storage limit of the container (in MB). */
138
145
  localStorageLimit: number;
146
+ /**
147
+ * Possible values:
148
+ *
149
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
150
+ * requests being processed per container instance.
151
+ */
152
+ scalingOption?: ContainerScalingOption;
139
153
  /** Region in which the container will be deployed. */
140
154
  region: Region;
141
155
  }
@@ -291,7 +305,7 @@ export type CreateContainerRequest = {
291
305
  * "rg.fr-par.scw.cloud/something/image:tag").
292
306
  */
293
307
  registryImage?: string;
294
- /** Number of maximum concurrent executions of the container. */
308
+ /** @deprecated Number of maximum concurrent executions of the container. */
295
309
  maxConcurrency?: number;
296
310
  /** Protocol the container uses. */
297
311
  protocol?: ContainerProtocol;
@@ -311,6 +325,13 @@ export type CreateContainerRequest = {
311
325
  sandbox?: ContainerSandbox;
312
326
  /** Local storage limit of the container (in MB). */
313
327
  localStorageLimit?: number;
328
+ /**
329
+ * Possible values:
330
+ *
331
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
332
+ * requests being processed per container instance.
333
+ */
334
+ scalingOption?: ContainerScalingOption;
314
335
  };
315
336
  export type CreateCronRequest = {
316
337
  /**
@@ -715,7 +736,7 @@ export type UpdateContainerRequest = {
715
736
  * "rg.fr-par.scw.cloud/something/image:tag").
716
737
  */
717
738
  registryImage?: string;
718
- /** Number of maximum concurrent executions of the container. */
739
+ /** @deprecated Number of maximum concurrent executions of the container. */
719
740
  maxConcurrency?: number;
720
741
  protocol?: ContainerProtocol;
721
742
  port?: number;
@@ -732,6 +753,13 @@ export type UpdateContainerRequest = {
732
753
  sandbox?: ContainerSandbox;
733
754
  /** Local storage limit of the container (in MB). */
734
755
  localStorageLimit?: number;
756
+ /**
757
+ * Possible values:
758
+ *
759
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
760
+ * requests being processed per container instance.
761
+ */
762
+ scalingOption?: ContainerScalingOption;
735
763
  };
736
764
  export type UpdateCronRequest = {
737
765
  /**
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ContainerScalingOption = {};
3
4
  const CreateTriggerRequest = {
4
5
  description: {
5
6
  maxLength: 255
@@ -39,6 +40,7 @@ const UpdateTriggerRequest = {
39
40
  minLength: 1
40
41
  }
41
42
  };
43
+ exports.ContainerScalingOption = ContainerScalingOption;
42
44
  exports.CreateTriggerRequest = CreateTriggerRequest;
43
45
  exports.CreateTriggerRequestMnqNatsClientConfig = CreateTriggerRequestMnqNatsClientConfig;
44
46
  exports.CreateTriggerRequestMnqSqsClientConfig = CreateTriggerRequestMnqSqsClientConfig;
@@ -1,3 +1,4 @@
1
+ export declare const ContainerScalingOption: {};
1
2
  export declare const CreateTriggerRequest: {
2
3
  description: {
3
4
  maxLength: number;
@@ -1,3 +1,4 @@
1
+ const ContainerScalingOption = {};
1
2
  const CreateTriggerRequest = {
2
3
  description: {
3
4
  maxLength: 255
@@ -38,6 +39,7 @@ const UpdateTriggerRequest = {
38
39
  }
39
40
  };
40
41
  export {
42
+ ContainerScalingOption,
41
43
  CreateTriggerRequest,
42
44
  CreateTriggerRequestMnqNatsClientConfig,
43
45
  CreateTriggerRequestMnqSqsClientConfig,
@@ -117,6 +117,7 @@ const unmarshalPipeline = (data) => {
117
117
  errors: marshalling.unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
118
118
  id: data.id,
119
119
  name: data.name,
120
+ organizationId: data.organization_id,
120
121
  projectId: data.project_id,
121
122
  status: data.status,
122
123
  updatedAt: marshalling.unmarshalDate(data.updated_at)
@@ -115,6 +115,7 @@ const unmarshalPipeline = (data) => {
115
115
  errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
116
116
  id: data.id,
117
117
  name: data.name,
118
+ organizationId: data.organization_id,
118
119
  projectId: data.project_id,
119
120
  status: data.status,
120
121
  updatedAt: unmarshalDate(data.updated_at)
@@ -151,6 +151,8 @@ export interface Pipeline {
151
151
  errors: PipelineError[];
152
152
  /** Project ID of the pipeline. */
153
153
  projectId: string;
154
+ /** Organization ID of the pipeline. */
155
+ organizationId: string;
154
156
  /** Date the pipeline was created. */
155
157
  createdAt?: Date;
156
158
  /** Date the pipeline was last updated. */
@@ -196,6 +196,17 @@ class API extends api.API {
196
196
  },
197
197
  marshalling_gen.unmarshalUser
198
198
  );
199
+ updateUserPassword = (request) => this.client.fetch(
200
+ {
201
+ body: JSON.stringify(
202
+ marshalling_gen.marshalUpdateUserPasswordRequest(request, this.client.settings)
203
+ ),
204
+ headers: jsonContentHeaders,
205
+ method: "POST",
206
+ path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/update-password`
207
+ },
208
+ marshalling_gen.unmarshalUser
209
+ );
199
210
  pageOfListApplications = (request = {}) => this.client.fetch(
200
211
  {
201
212
  method: "GET",
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User } from './types.gen';
2
+ import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
3
3
  /**
4
4
  * IAM API.
5
5
  *
@@ -103,6 +103,7 @@ export declare class API extends ParentAPI {
103
103
  * @returns A Promise of User
104
104
  */
105
105
  createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
106
+ updateUserPassword: (request: Readonly<UpdateUserPasswordRequest>) => Promise<User>;
106
107
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
107
108
  /**
108
109
  * List applications of an Organization. List the applications of an
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
2
2
  import { urlParams, validatePathParam, resolveOneOf } from "../../../helpers/marshalling.js";
3
3
  import "../../../vendor/base64/index.js";
4
4
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
5
- import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog } from "./marshalling.gen.js";
5
+ import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserPasswordRequest, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog } from "./marshalling.gen.js";
6
6
  const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
@@ -194,6 +194,17 @@ class API extends API$1 {
194
194
  },
195
195
  unmarshalUser
196
196
  );
197
+ updateUserPassword = (request) => this.client.fetch(
198
+ {
199
+ body: JSON.stringify(
200
+ marshalUpdateUserPasswordRequest(request, this.client.settings)
201
+ ),
202
+ headers: jsonContentHeaders,
203
+ method: "POST",
204
+ path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-password`
205
+ },
206
+ unmarshalUser
207
+ );
197
208
  pageOfListApplications = (request = {}) => this.client.fetch(
198
209
  {
199
210
  method: "GET",
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen';
2
- export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
2
+ export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
3
3
  export * as ValidationRules from './validation-rules.gen';
@@ -485,6 +485,10 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
485
485
  disabled: request.disabled,
486
486
  name: request.name
487
487
  });
488
+ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
489
+ password: request.password,
490
+ send_email: request.sendEmail
491
+ });
488
492
  const marshalUpdateUserRequest = (request, defaults) => ({
489
493
  tags: request.tags
490
494
  });
@@ -505,6 +509,7 @@ exports.marshalUpdateApplicationRequest = marshalUpdateApplicationRequest;
505
509
  exports.marshalUpdateGroupRequest = marshalUpdateGroupRequest;
506
510
  exports.marshalUpdatePolicyRequest = marshalUpdatePolicyRequest;
507
511
  exports.marshalUpdateSSHKeyRequest = marshalUpdateSSHKeyRequest;
512
+ exports.marshalUpdateUserPasswordRequest = marshalUpdateUserPasswordRequest;
508
513
  exports.marshalUpdateUserRequest = marshalUpdateUserRequest;
509
514
  exports.unmarshalAPIKey = unmarshalAPIKey;
510
515
  exports.unmarshalApplication = unmarshalApplication;
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User } from './types.gen';
2
+ import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
3
3
  export declare const unmarshalJWT: (data: unknown) => JWT;
4
4
  export declare const unmarshalAPIKey: (data: unknown) => APIKey;
5
5
  export declare const unmarshalApplication: (data: unknown) => Application;
@@ -39,4 +39,5 @@ export declare const marshalUpdateApplicationRequest: (request: UpdateApplicatio
39
39
  export declare const marshalUpdateGroupRequest: (request: UpdateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
40
40
  export declare const marshalUpdatePolicyRequest: (request: UpdatePolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
41
41
  export declare const marshalUpdateSSHKeyRequest: (request: UpdateSSHKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
42
+ export declare const marshalUpdateUserPasswordRequest: (request: UpdateUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
42
43
  export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -483,6 +483,10 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
483
483
  disabled: request.disabled,
484
484
  name: request.name
485
485
  });
486
+ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
487
+ password: request.password,
488
+ send_email: request.sendEmail
489
+ });
486
490
  const marshalUpdateUserRequest = (request, defaults) => ({
487
491
  tags: request.tags
488
492
  });
@@ -504,6 +508,7 @@ export {
504
508
  marshalUpdateGroupRequest,
505
509
  marshalUpdatePolicyRequest,
506
510
  marshalUpdateSSHKeyRequest,
511
+ marshalUpdateUserPasswordRequest,
507
512
  marshalUpdateUserRequest,
508
513
  unmarshalAPIKey,
509
514
  unmarshalApplication,
@@ -14,6 +14,24 @@ export type LogResourceType = 'unknown_resource_type' | 'api_key' | 'user' | 'ap
14
14
  export type PermissionSetScopeType = 'unknown_scope_type' | 'projects' | 'organization' | 'account_root_user';
15
15
  export type UserStatus = 'unknown_status' | 'invitation_pending' | 'activated';
16
16
  export type UserType = 'unknown_type' | 'guest' | 'owner' | 'member';
17
+ export interface JWT {
18
+ /** JWT ID. */
19
+ jti: string;
20
+ /** ID of the user who issued the JWT. */
21
+ issuerId: string;
22
+ /** ID of the user targeted by the JWT. */
23
+ audienceId: string;
24
+ /** Creation date of the JWT. */
25
+ createdAt?: Date;
26
+ /** Last update date of the JWT. */
27
+ updatedAt?: Date;
28
+ /** Expiration date of the JWT. */
29
+ expiresAt?: Date;
30
+ /** IP address used during the creation of the JWT. */
31
+ ip: string;
32
+ /** User-agent used during the creation of the JWT. */
33
+ userAgent: string;
34
+ }
17
35
  export interface RuleSpecs {
18
36
  /** Names of permission sets bound to the rule. */
19
37
  permissionSetNames?: string[];
@@ -44,24 +62,6 @@ export interface CreateUserRequestMember {
44
62
  /** The member's password. */
45
63
  password: string;
46
64
  }
47
- export interface JWT {
48
- /** JWT ID. */
49
- jti: string;
50
- /** ID of the user who issued the JWT. */
51
- issuerId: string;
52
- /** ID of the user targeted by the JWT. */
53
- audienceId: string;
54
- /** Creation date of the JWT. */
55
- createdAt?: Date;
56
- /** Last update date of the JWT. */
57
- updatedAt?: Date;
58
- /** Expiration date of the JWT. */
59
- expiresAt?: Date;
60
- /** IP address used during the creation of the JWT. */
61
- ip: string;
62
- /** User-agent used during the creation of the JWT. */
63
- userAgent: string;
64
- }
65
65
  export interface APIKey {
66
66
  /** Access key of the API key. */
67
67
  accessKey: string;
@@ -924,6 +924,11 @@ export type UpdateSSHKeyRequest = {
924
924
  /** Enable or disable the SSH key. */
925
925
  disabled?: boolean;
926
926
  };
927
+ export type UpdateUserPasswordRequest = {
928
+ userId: string;
929
+ password: string;
930
+ sendEmail: boolean;
931
+ };
927
932
  export type UpdateUserRequest = {
928
933
  /** ID of the user to update. */
929
934
  userId: string;
@@ -230,6 +230,12 @@ const UpdateSSHKeyRequest = {
230
230
  maxLength: 1e3
231
231
  }
232
232
  };
233
+ const UpdateUserPasswordRequest = {
234
+ password: {
235
+ maxLength: 72,
236
+ minLength: 1
237
+ }
238
+ };
233
239
  exports.CreateAPIKeyRequest = CreateAPIKeyRequest;
234
240
  exports.CreateApplicationRequest = CreateApplicationRequest;
235
241
  exports.CreateGroupRequest = CreateGroupRequest;
@@ -254,3 +260,4 @@ exports.UpdateApplicationRequest = UpdateApplicationRequest;
254
260
  exports.UpdateGroupRequest = UpdateGroupRequest;
255
261
  exports.UpdatePolicyRequest = UpdatePolicyRequest;
256
262
  exports.UpdateSSHKeyRequest = UpdateSSHKeyRequest;
263
+ exports.UpdateUserPasswordRequest = UpdateUserPasswordRequest;
@@ -228,3 +228,9 @@ export declare const UpdateSSHKeyRequest: {
228
228
  maxLength: number;
229
229
  };
230
230
  };
231
+ export declare const UpdateUserPasswordRequest: {
232
+ password: {
233
+ maxLength: number;
234
+ minLength: number;
235
+ };
236
+ };
@@ -228,6 +228,12 @@ const UpdateSSHKeyRequest = {
228
228
  maxLength: 1e3
229
229
  }
230
230
  };
231
+ const UpdateUserPasswordRequest = {
232
+ password: {
233
+ maxLength: 72,
234
+ minLength: 1
235
+ }
236
+ };
231
237
  export {
232
238
  CreateAPIKeyRequest,
233
239
  CreateApplicationRequest,
@@ -252,5 +258,6 @@ export {
252
258
  UpdateApplicationRequest,
253
259
  UpdateGroupRequest,
254
260
  UpdatePolicyRequest,
255
- UpdateSSHKeyRequest
261
+ UpdateSSHKeyRequest,
262
+ UpdateUserPasswordRequest
256
263
  };
@@ -226,5 +226,18 @@ class API extends api.API {
226
226
  },
227
227
  marshalling_gen.unmarshalListJobsResourcesResponse
228
228
  );
229
+ /**
230
+ * Get jobs limits for the console.
231
+ *
232
+ * @param request - The request {@link GetJobsLimitsRequest}
233
+ * @returns A Promise of JobsLimits
234
+ */
235
+ getJobsLimits = (request = {}) => this.client.fetch(
236
+ {
237
+ method: "GET",
238
+ path: `/serverless-jobs/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-limits`
239
+ },
240
+ marshalling_gen.unmarshalJobsLimits
241
+ );
229
242
  }
230
243
  exports.API = API;
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region } from '../../../bridge';
3
- import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, JobDefinition, JobRun, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
3
+ import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, GetJobsLimitsRequest, JobDefinition, JobRun, JobsLimits, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
4
4
  /**
5
5
  * Serverless Jobs API.
6
6
  *
@@ -93,4 +93,11 @@ export declare class API extends ParentAPI {
93
93
  * @returns A Promise of ListJobsResourcesResponse
94
94
  */
95
95
  listJobsResources: (request?: Readonly<ListJobsResourcesRequest>) => Promise<ListJobsResourcesResponse>;
96
+ /**
97
+ * Get jobs limits for the console.
98
+ *
99
+ * @param request - The request {@link GetJobsLimitsRequest}
100
+ * @returns A Promise of JobsLimits
101
+ */
102
+ getJobsLimits: (request?: Readonly<GetJobsLimitsRequest>) => Promise<JobsLimits>;
96
103
  }
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
2
2
  import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
3
3
  import "../../../vendor/base64/index.js";
4
4
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
5
- import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, marshalCreateJobDefinitionSecretsRequest, unmarshalCreateJobDefinitionSecretsResponse, unmarshalSecret, unmarshalListJobDefinitionSecretsResponse, marshalUpdateJobDefinitionSecretRequest, unmarshalJobRun, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse } from "./marshalling.gen.js";
5
+ import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, marshalCreateJobDefinitionSecretsRequest, unmarshalCreateJobDefinitionSecretsResponse, unmarshalSecret, unmarshalListJobDefinitionSecretsResponse, marshalUpdateJobDefinitionSecretRequest, unmarshalJobRun, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse, unmarshalJobsLimits } from "./marshalling.gen.js";
6
6
  const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
@@ -224,6 +224,19 @@ class API extends API$1 {
224
224
  },
225
225
  unmarshalListJobsResourcesResponse
226
226
  );
227
+ /**
228
+ * Get jobs limits for the console.
229
+ *
230
+ * @param request - The request {@link GetJobsLimitsRequest}
231
+ * @returns A Promise of JobsLimits
232
+ */
233
+ getJobsLimits = (request = {}) => this.client.fetch(
234
+ {
235
+ method: "GET",
236
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-limits`
237
+ },
238
+ unmarshalJobsLimits
239
+ );
227
240
  }
228
241
  export {
229
242
  API
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsRequestSecretConfig, CreateJobDefinitionSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, JobDefinition, JobRun, JobRunState, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Resource, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateJobDefinitionSecretRequest, } from './types.gen';
3
+ export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsRequestSecretConfig, CreateJobDefinitionSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, GetJobsLimitsRequest, JobDefinition, JobRun, JobRunState, JobsLimits, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Resource, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateJobDefinitionSecretRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -108,6 +108,16 @@ const unmarshalCreateJobDefinitionSecretsResponse = (data) => {
108
108
  secrets: marshalling.unmarshalArrayOfObject(data.secrets, unmarshalSecret)
109
109
  };
110
110
  };
111
+ const unmarshalJobsLimits = (data) => {
112
+ if (!json.isJSONObject(data)) {
113
+ throw new TypeError(
114
+ `Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`
115
+ );
116
+ }
117
+ return {
118
+ secretsPerJobDefinition: data.secrets_per_job_definition
119
+ };
120
+ };
111
121
  const unmarshalListJobDefinitionSecretsResponse = (data) => {
112
122
  if (!json.isJSONObject(data)) {
113
123
  throw new TypeError(
@@ -245,6 +255,7 @@ exports.marshalUpdateJobDefinitionSecretRequest = marshalUpdateJobDefinitionSecr
245
255
  exports.unmarshalCreateJobDefinitionSecretsResponse = unmarshalCreateJobDefinitionSecretsResponse;
246
256
  exports.unmarshalJobDefinition = unmarshalJobDefinition;
247
257
  exports.unmarshalJobRun = unmarshalJobRun;
258
+ exports.unmarshalJobsLimits = unmarshalJobsLimits;
248
259
  exports.unmarshalListJobDefinitionSecretsResponse = unmarshalListJobDefinitionSecretsResponse;
249
260
  exports.unmarshalListJobDefinitionsResponse = unmarshalListJobDefinitionsResponse;
250
261
  exports.unmarshalListJobRunsResponse = unmarshalListJobRunsResponse;
@@ -1,9 +1,10 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, JobDefinition, JobRun, ListJobDefinitionSecretsResponse, ListJobDefinitionsResponse, ListJobRunsResponse, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
2
+ import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, JobDefinition, JobRun, JobsLimits, ListJobDefinitionSecretsResponse, ListJobDefinitionsResponse, ListJobRunsResponse, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
3
3
  export declare const unmarshalSecret: (data: unknown) => Secret;
4
4
  export declare const unmarshalJobDefinition: (data: unknown) => JobDefinition;
5
5
  export declare const unmarshalJobRun: (data: unknown) => JobRun;
6
6
  export declare const unmarshalCreateJobDefinitionSecretsResponse: (data: unknown) => CreateJobDefinitionSecretsResponse;
7
+ export declare const unmarshalJobsLimits: (data: unknown) => JobsLimits;
7
8
  export declare const unmarshalListJobDefinitionSecretsResponse: (data: unknown) => ListJobDefinitionSecretsResponse;
8
9
  export declare const unmarshalListJobDefinitionsResponse: (data: unknown) => ListJobDefinitionsResponse;
9
10
  export declare const unmarshalListJobRunsResponse: (data: unknown) => ListJobRunsResponse;
@@ -106,6 +106,16 @@ const unmarshalCreateJobDefinitionSecretsResponse = (data) => {
106
106
  secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret)
107
107
  };
108
108
  };
109
+ const unmarshalJobsLimits = (data) => {
110
+ if (!isJSONObject(data)) {
111
+ throw new TypeError(
112
+ `Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`
113
+ );
114
+ }
115
+ return {
116
+ secretsPerJobDefinition: data.secrets_per_job_definition
117
+ };
118
+ };
109
119
  const unmarshalListJobDefinitionSecretsResponse = (data) => {
110
120
  if (!isJSONObject(data)) {
111
121
  throw new TypeError(
@@ -244,6 +254,7 @@ export {
244
254
  unmarshalCreateJobDefinitionSecretsResponse,
245
255
  unmarshalJobDefinition,
246
256
  unmarshalJobRun,
257
+ unmarshalJobsLimits,
247
258
  unmarshalListJobDefinitionSecretsResponse,
248
259
  unmarshalListJobDefinitionsResponse,
249
260
  unmarshalListJobRunsResponse,
@@ -180,6 +180,16 @@ export type GetJobRunRequest = {
180
180
  /** UUID of the job run to get. */
181
181
  jobRunId: string;
182
182
  };
183
+ export type GetJobsLimitsRequest = {
184
+ /**
185
+ * Region to target. If none is passed will use default region from the
186
+ * config.
187
+ */
188
+ region?: Region;
189
+ };
190
+ export interface JobsLimits {
191
+ secretsPerJobDefinition: number;
192
+ }
183
193
  export type ListJobDefinitionSecretsRequest = {
184
194
  /**
185
195
  * Region to target. If none is passed will use default region from the
@@ -211,22 +211,6 @@ class API extends api.API {
211
211
  method: "POST",
212
212
  path: `/k8s/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${marshalling.validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
213
213
  });
214
- /**
215
- * Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
216
- * to Routed IPs and enable Routed IPs for all future nodes.
217
- *
218
- * @param request - The request {@link MigrateClusterToRoutedIPsRequest}
219
- * @returns A Promise of Cluster
220
- */
221
- migrateClusterToRoutedIPs = (request) => this.client.fetch(
222
- {
223
- body: "{}",
224
- headers: jsonContentHeaders,
225
- method: "POST",
226
- path: `/k8s/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${marshalling.validatePathParam("clusterId", request.clusterId)}/migrate-to-routed-ips`
227
- },
228
- marshalling_gen.unmarshalCluster
229
- );
230
214
  /**
231
215
  * Migrate a cluster to SBS CSI. Enable the latest CSI compatible with
232
216
  * Scaleway Block Storage (SBS) and migrate all existing
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
3
- import type { AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigrateClusterToRoutedIPsRequest, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
3
+ import type { AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
4
4
  /**
5
5
  * Kubernetes API.
6
6
  *
@@ -107,14 +107,6 @@ export declare class API extends ParentAPI {
107
107
  * @param request - The request {@link ResetClusterAdminTokenRequest}
108
108
  */
109
109
  resetClusterAdminToken: (request: Readonly<ResetClusterAdminTokenRequest>) => Promise<void>;
110
- /**
111
- * Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
112
- * to Routed IPs and enable Routed IPs for all future nodes.
113
- *
114
- * @param request - The request {@link MigrateClusterToRoutedIPsRequest}
115
- * @returns A Promise of Cluster
116
- */
117
- migrateClusterToRoutedIPs: (request: Readonly<MigrateClusterToRoutedIPsRequest>) => Promise<Cluster>;
118
110
  /**
119
111
  * Migrate a cluster to SBS CSI. Enable the latest CSI compatible with
120
112
  * Scaleway Block Storage (SBS) and migrate all existing
@@ -209,22 +209,6 @@ class API extends API$1 {
209
209
  method: "POST",
210
210
  path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
211
211
  });
212
- /**
213
- * Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
214
- * to Routed IPs and enable Routed IPs for all future nodes.
215
- *
216
- * @param request - The request {@link MigrateClusterToRoutedIPsRequest}
217
- * @returns A Promise of Cluster
218
- */
219
- migrateClusterToRoutedIPs = (request) => this.client.fetch(
220
- {
221
- body: "{}",
222
- headers: jsonContentHeaders,
223
- method: "POST",
224
- path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/migrate-to-routed-ips`
225
- },
226
- unmarshalCluster
227
- );
228
212
  /**
229
213
  * Migrate a cluster to SBS CSI. Enable the latest CSI compatible with
230
214
  * Scaleway Block Storage (SBS) and migrate all existing
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreateExternalNodeRequest, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, ExternalNodeCoreV1Taint, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigrateClusterToRoutedIPsRequest, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen';
3
+ export type { AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreateExternalNodeRequest, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, ExternalNodeCoreV1Taint, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -1000,15 +1000,6 @@ export interface ListVersionsResponse {
1000
1000
  /** Available Kubernetes versions. */
1001
1001
  versions: Version[];
1002
1002
  }
1003
- export type MigrateClusterToRoutedIPsRequest = {
1004
- /**
1005
- * Region to target. If none is passed will use default region from the
1006
- * config.
1007
- */
1008
- region?: Region;
1009
- /** Cluster ID for which the routed ip will be enabled for the nodes. */
1010
- clusterId: string;
1011
- };
1012
1003
  export type MigrateClusterToSBSCSIRequest = {
1013
1004
  /**
1014
1005
  * Region to target. If none is passed will use default region from the
@@ -26,23 +26,19 @@ const CreateClusterRequestAutoscalerConfig = {
26
26
  };
27
27
  const CreateClusterRequestOpenIDConnectConfig = {
28
28
  clientId: {
29
- maxLength: 255,
30
- minLength: 1
29
+ maxLength: 255
31
30
  },
32
31
  groupsPrefix: {
33
- maxLength: 100,
34
- minLength: 1
32
+ maxLength: 100
35
33
  },
36
34
  issuerUrl: {
37
35
  maxLength: 255
38
36
  },
39
37
  usernameClaim: {
40
- maxLength: 100,
41
- minLength: 1
38
+ maxLength: 100
42
39
  },
43
40
  usernamePrefix: {
44
- maxLength: 100,
45
- minLength: 1
41
+ maxLength: 100
46
42
  }
47
43
  };
48
44
  const CreateClusterRequestPoolConfig = {
@@ -132,23 +128,19 @@ const UpdateClusterRequestAutoscalerConfig = {
132
128
  };
133
129
  const UpdateClusterRequestOpenIDConnectConfig = {
134
130
  clientId: {
135
- maxLength: 255,
136
- minLength: 1
131
+ maxLength: 255
137
132
  },
138
133
  groupsPrefix: {
139
- maxLength: 100,
140
- minLength: 1
134
+ maxLength: 100
141
135
  },
142
136
  issuerUrl: {
143
137
  maxLength: 255
144
138
  },
145
139
  usernameClaim: {
146
- maxLength: 100,
147
- minLength: 1
140
+ maxLength: 100
148
141
  },
149
142
  usernamePrefix: {
150
- maxLength: 100,
151
- minLength: 1
143
+ maxLength: 100
152
144
  }
153
145
  };
154
146
  const UpgradeClusterRequest = {
@@ -25,22 +25,18 @@ export declare const CreateClusterRequestAutoscalerConfig: {
25
25
  export declare const CreateClusterRequestOpenIDConnectConfig: {
26
26
  clientId: {
27
27
  maxLength: number;
28
- minLength: number;
29
28
  };
30
29
  groupsPrefix: {
31
30
  maxLength: number;
32
- minLength: number;
33
31
  };
34
32
  issuerUrl: {
35
33
  maxLength: number;
36
34
  };
37
35
  usernameClaim: {
38
36
  maxLength: number;
39
- minLength: number;
40
37
  };
41
38
  usernamePrefix: {
42
39
  maxLength: number;
43
- minLength: number;
44
40
  };
45
41
  };
46
42
  export declare const CreateClusterRequestPoolConfig: {
@@ -131,22 +127,18 @@ export declare const UpdateClusterRequestAutoscalerConfig: {
131
127
  export declare const UpdateClusterRequestOpenIDConnectConfig: {
132
128
  clientId: {
133
129
  maxLength: number;
134
- minLength: number;
135
130
  };
136
131
  groupsPrefix: {
137
132
  maxLength: number;
138
- minLength: number;
139
133
  };
140
134
  issuerUrl: {
141
135
  maxLength: number;
142
136
  };
143
137
  usernameClaim: {
144
138
  maxLength: number;
145
- minLength: number;
146
139
  };
147
140
  usernamePrefix: {
148
141
  maxLength: number;
149
- minLength: number;
150
142
  };
151
143
  };
152
144
  export declare const UpgradeClusterRequest: {
@@ -24,23 +24,19 @@ const CreateClusterRequestAutoscalerConfig = {
24
24
  };
25
25
  const CreateClusterRequestOpenIDConnectConfig = {
26
26
  clientId: {
27
- maxLength: 255,
28
- minLength: 1
27
+ maxLength: 255
29
28
  },
30
29
  groupsPrefix: {
31
- maxLength: 100,
32
- minLength: 1
30
+ maxLength: 100
33
31
  },
34
32
  issuerUrl: {
35
33
  maxLength: 255
36
34
  },
37
35
  usernameClaim: {
38
- maxLength: 100,
39
- minLength: 1
36
+ maxLength: 100
40
37
  },
41
38
  usernamePrefix: {
42
- maxLength: 100,
43
- minLength: 1
39
+ maxLength: 100
44
40
  }
45
41
  };
46
42
  const CreateClusterRequestPoolConfig = {
@@ -130,23 +126,19 @@ const UpdateClusterRequestAutoscalerConfig = {
130
126
  };
131
127
  const UpdateClusterRequestOpenIDConnectConfig = {
132
128
  clientId: {
133
- maxLength: 255,
134
- minLength: 1
129
+ maxLength: 255
135
130
  },
136
131
  groupsPrefix: {
137
- maxLength: 100,
138
- minLength: 1
132
+ maxLength: 100
139
133
  },
140
134
  issuerUrl: {
141
135
  maxLength: 255
142
136
  },
143
137
  usernameClaim: {
144
- maxLength: 100,
145
- minLength: 1
138
+ maxLength: 100
146
139
  },
147
140
  usernamePrefix: {
148
- maxLength: 100,
149
- minLength: 1
141
+ maxLength: 100
150
142
  }
151
143
  };
152
144
  const UpgradeClusterRequest = {
@@ -255,6 +255,14 @@ class API extends api.API {
255
255
  request,
256
256
  options
257
257
  );
258
+ /**
259
+ * Update a Database Instance snapshot. Update the parameters of a snapshot of
260
+ * a Database Instance. You can update the `name` and `expires_at`
261
+ * parameters.
262
+ *
263
+ * @param request - The request {@link UpdateSnapshotRequest}
264
+ * @returns A Promise of Snapshot
265
+ */
258
266
  updateSnapshot = (request) => this.client.fetch(
259
267
  {
260
268
  body: JSON.stringify(
@@ -135,6 +135,14 @@ export declare class API extends ParentAPI {
135
135
  * @returns A Promise of Snapshot
136
136
  */
137
137
  waitForSnapshot: (request: Readonly<GetSnapshotRequest>, options?: Readonly<WaitForOptions<Snapshot>>) => Promise<Snapshot>;
138
+ /**
139
+ * Update a Database Instance snapshot. Update the parameters of a snapshot of
140
+ * a Database Instance. You can update the `name` and `expires_at`
141
+ * parameters.
142
+ *
143
+ * @param request - The request {@link UpdateSnapshotRequest}
144
+ * @returns A Promise of Snapshot
145
+ */
138
146
  updateSnapshot: (request: Readonly<UpdateSnapshotRequest>) => Promise<Snapshot>;
139
147
  /**
140
148
  * Restore a Database Instance snapshot. Restore a given snapshot of a
@@ -253,6 +253,14 @@ class API extends API$1 {
253
253
  request,
254
254
  options
255
255
  );
256
+ /**
257
+ * Update a Database Instance snapshot. Update the parameters of a snapshot of
258
+ * a Database Instance. You can update the `name` and `expires_at`
259
+ * parameters.
260
+ *
261
+ * @param request - The request {@link UpdateSnapshotRequest}
262
+ * @returns A Promise of Snapshot
263
+ */
256
264
  updateSnapshot = (request) => this.client.fetch(
257
265
  {
258
266
  body: JSON.stringify(
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const randomName = require("@scaleway/random-name");
3
4
  const json = require("../../../helpers/json.cjs");
4
5
  const marshalling = require("../../../helpers/marshalling.cjs");
5
6
  require("../../../vendor/base64/index.cjs");
@@ -270,7 +271,7 @@ const marshalEndpointSpec = (request, defaults) => ({
270
271
  });
271
272
  const marshalCreateInstanceRequest = (request, defaults) => ({
272
273
  endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
273
- name: request.name,
274
+ name: request.name || randomName("mgdb"),
274
275
  node_number: request.nodeNumber,
275
276
  node_type: request.nodeType,
276
277
  password: request.password,
@@ -1,3 +1,4 @@
1
+ import randomName from "@scaleway/random-name";
1
2
  import { isJSONObject } from "../../../helpers/json.js";
2
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
3
4
  import "../../../vendor/base64/index.js";
@@ -268,7 +269,7 @@ const marshalEndpointSpec = (request, defaults) => ({
268
269
  });
269
270
  const marshalCreateInstanceRequest = (request, defaults) => ({
270
271
  endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
271
- name: request.name,
272
+ name: request.name || randomName("mgdb"),
272
273
  node_number: request.nodeNumber,
273
274
  node_type: request.nodeType,
274
275
  password: request.password,
@@ -208,7 +208,7 @@ export type CreateInstanceRequest = {
208
208
  /** The Project ID on which the Database Instance will be created. */
209
209
  projectId?: string;
210
210
  /** Name of the Database Instance. */
211
- name: string;
211
+ name?: string;
212
212
  /** Version of the MongoDB™ engine. */
213
213
  version: string;
214
214
  /** Tags to apply to the Database Instance. */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.50.0";
3
+ const version = "v2.51.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.50.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.50.0";
1
+ export declare const version = "v2.51.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.51.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.50.0";
1
+ const version = "v2.51.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.51.0",
3
+ "version": "2.52.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "f030f54904c5ecd2bba58e025318bcc41c910c3b"
42
+ "gitHead": "19a9c06c134f827623abba2a0449225acc7d0360"
43
43
  }