@scaleway/sdk 2.70.0 → 2.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +6 -5
  2. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
  4. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/api.gen.js +3 -1
  6. package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
  7. package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
  8. package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
  9. package/dist/api/block/v1/api.gen.cjs +6 -2
  10. package/dist/api/block/v1/api.gen.js +6 -2
  11. package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
  12. package/dist/api/block/v1alpha1/api.gen.js +6 -2
  13. package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
  14. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
  15. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
  16. package/dist/api/container/v1beta1/api.gen.cjs +18 -6
  17. package/dist/api/container/v1beta1/api.gen.js +18 -6
  18. package/dist/api/dedibox/v1/api.gen.cjs +9 -3
  19. package/dist/api/dedibox/v1/api.gen.js +9 -3
  20. package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
  21. package/dist/api/domain/v2beta1/api.gen.js +3 -1
  22. package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
  23. package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
  24. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
  25. package/dist/api/function/v1beta1/api.gen.cjs +18 -6
  26. package/dist/api/function/v1beta1/api.gen.js +18 -6
  27. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  28. package/dist/api/iam/v1alpha1/api.gen.cjs +8 -14
  29. package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -14
  30. package/dist/api/iam/v1alpha1/api.gen.js +8 -14
  31. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
  32. package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
  33. package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -1
  34. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
  35. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
  36. package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
  37. package/dist/api/inference/v1/api.gen.cjs +6 -2
  38. package/dist/api/inference/v1/api.gen.js +6 -2
  39. package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
  40. package/dist/api/inference/v1/marshalling.gen.js +4 -4
  41. package/dist/api/inference/v1/types.gen.d.ts +32 -30
  42. package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
  43. package/dist/api/inference/v1beta1/api.gen.js +3 -1
  44. package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
  45. package/dist/api/instance/v1/marshalling.gen.js +0 -1
  46. package/dist/api/instance/v1/types.gen.d.ts +0 -2
  47. package/dist/api/k8s/v1/api.gen.cjs +3 -1
  48. package/dist/api/k8s/v1/api.gen.js +3 -1
  49. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  50. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  51. package/dist/api/k8s/v1/types.gen.d.ts +5 -0
  52. package/dist/api/lb/v1/types.gen.d.ts +3 -3
  53. package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
  54. package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
  55. package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
  56. package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
  57. package/dist/api/rdb/v1/api.gen.cjs +6 -2
  58. package/dist/api/rdb/v1/api.gen.js +6 -2
  59. package/dist/api/redis/v1/api.gen.cjs +3 -1
  60. package/dist/api/redis/v1/api.gen.js +3 -1
  61. package/dist/api/registry/v1/api.gen.cjs +9 -3
  62. package/dist/api/registry/v1/api.gen.js +9 -3
  63. package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
  64. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  65. package/dist/api/secret/v1beta1/api.gen.js +32 -0
  66. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  67. package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
  68. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
  69. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
  70. package/dist/api/vpc/v2/api.gen.cjs +33 -0
  71. package/dist/api/vpc/v2/api.gen.d.ts +17 -1
  72. package/dist/api/vpc/v2/api.gen.js +34 -1
  73. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  74. package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
  75. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  76. package/dist/api/vpc/v2/marshalling.gen.js +59 -0
  77. package/dist/api/vpc/v2/types.gen.d.ts +80 -0
  78. package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
  79. package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
  80. package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
  81. package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
  82. package/dist/api/vpcgw/v1/api.gen.js +3 -1
  83. package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
  84. package/dist/api/vpcgw/v2/api.gen.js +3 -1
  85. package/dist/api/webhosting/v1/api.gen.cjs +6 -2
  86. package/dist/api/webhosting/v1/api.gen.js +6 -2
  87. package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
  88. package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
  89. package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
  90. package/dist/package.json.cjs +76 -0
  91. package/dist/package.json.js +76 -0
  92. package/dist/scw/constants.cjs +2 -1
  93. package/dist/scw/constants.d.ts +2 -2
  94. package/dist/scw/constants.js +2 -1
  95. package/package.json +2 -3
package/README.md CHANGED
@@ -3,9 +3,10 @@
3
3
  This SDK enables you to interact with Scaleway APIs.
4
4
 
5
5
  **🔗  Important links:**
6
- * [Reference documentation](https://scaleway.github.io/scaleway-sdk-js)
7
- * [Example projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
8
- * [Developers website](https://developers.scaleway.com) (API documentation)
6
+
7
+ - [Reference documentation](https://scaleway.github.io/scaleway-sdk-js)
8
+ - [Example projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
9
+ - [Developers website](https://developers.scaleway.com) (API documentation)
9
10
 
10
11
  ## Getting Started
11
12
 
@@ -30,8 +31,8 @@ const api = new Registry.v1.API(client)
30
31
  **For a simpler setup**, you could retrieve the profile from either the configuration file or the environment variables:
31
32
 
32
33
  ```ts
33
- import {
34
- loadProfileFromConfigurationFile,
34
+ import {
35
+ loadProfileFromConfigurationFile,
35
36
  // loadProfileFromEnvironmentValues,
36
37
  } from '@scaleway/configuration-loader'
37
38
 
@@ -148,7 +148,9 @@ class API extends api.API {
148
148
  * @returns A Promise of Server
149
149
  */
150
150
  waitForServer = (request, options) => intervalRetrier.waitForResource(
151
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status))),
151
+ options?.stop ?? ((res) => Promise.resolve(
152
+ !content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status)
153
+ )),
152
154
  this.getServer,
153
155
  request,
154
156
  options
@@ -146,7 +146,9 @@ class API extends API$1 {
146
146
  * @returns A Promise of Server
147
147
  */
148
148
  waitForServer = (request, options) => waitForResource(
149
- options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
149
+ options?.stop ?? ((res) => Promise.resolve(
150
+ !SERVER_TRANSIENT_STATUSES.includes(res.status)
151
+ )),
150
152
  this.getServer,
151
153
  request,
152
154
  options
@@ -71,7 +71,9 @@ class API extends api.API {
71
71
  * @returns A Promise of Server
72
72
  */
73
73
  waitForServer = (request, options) => intervalRetrier.waitForResource(
74
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status))),
74
+ options?.stop ?? ((res) => Promise.resolve(
75
+ !content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status)
76
+ )),
75
77
  this.getServer,
76
78
  request,
77
79
  options
@@ -69,7 +69,9 @@ class API extends API$1 {
69
69
  * @returns A Promise of Server
70
70
  */
71
71
  waitForServer = (request, options) => waitForResource(
72
- options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
72
+ options?.stop ?? ((res) => Promise.resolve(
73
+ !SERVER_TRANSIENT_STATUSES.includes(res.status)
74
+ )),
73
75
  this.getServer,
74
76
  request,
75
77
  options
@@ -12,7 +12,8 @@ const unmarshalSchemaPartition = (data) => {
12
12
  return {
13
13
  label: data.label,
14
14
  number: data.number,
15
- size: data.size
15
+ size: data.size,
16
+ useAllAvailableSpace: data.use_all_available_space
16
17
  };
17
18
  };
18
19
  const unmarshalSchemaPool = (data) => {
@@ -578,7 +579,8 @@ const marshalAddOptionServerRequest = (request, defaults) => ({
578
579
  const marshalSchemaPartition = (request, defaults) => ({
579
580
  label: request.label,
580
581
  number: request.number,
581
- size: request.size
582
+ size: request.size,
583
+ use_all_available_space: request.useAllAvailableSpace
582
584
  });
583
585
  const marshalSchemaPool = (request, defaults) => ({
584
586
  devices: request.devices,
@@ -10,7 +10,8 @@ const unmarshalSchemaPartition = (data) => {
10
10
  return {
11
11
  label: data.label,
12
12
  number: data.number,
13
- size: data.size
13
+ size: data.size,
14
+ useAllAvailableSpace: data.use_all_available_space
14
15
  };
15
16
  };
16
17
  const unmarshalSchemaPool = (data) => {
@@ -576,7 +577,8 @@ const marshalAddOptionServerRequest = (request, defaults) => ({
576
577
  const marshalSchemaPartition = (request, defaults) => ({
577
578
  label: request.label,
578
579
  number: request.number,
579
- size: request.size
580
+ size: request.size,
581
+ use_all_available_space: request.useAllAvailableSpace
580
582
  });
581
583
  const marshalSchemaPool = (request, defaults) => ({
582
584
  devices: request.devices,
@@ -22,6 +22,7 @@ export interface SchemaPartition {
22
22
  label: SchemaPartitionLabel;
23
23
  number: number;
24
24
  size: number;
25
+ useAllAvailableSpace: boolean;
25
26
  }
26
27
  export interface SchemaPool {
27
28
  name: string;
@@ -490,7 +491,7 @@ export interface Setting {
490
491
  /** Defines whether the setting is enabled. */
491
492
  enabled: boolean;
492
493
  }
493
- export type AddOptionServerRequest = {
494
+ export interface AddOptionServerRequest {
494
495
  /** Zone to target. If none is passed will use default zone from the config. */
495
496
  zone?: ScwZone;
496
497
  /** ID of the server. */
@@ -499,7 +500,7 @@ export type AddOptionServerRequest = {
499
500
  optionId: string;
500
501
  /** Auto expire the option after this date. */
501
502
  expiresAt?: Date;
502
- };
503
+ }
503
504
  export interface BMCAccess {
504
505
  /** URL to access to the server console. */
505
506
  url: string;
@@ -519,7 +520,7 @@ export interface BMCAccess {
519
520
  */
520
521
  expiresAt?: Date;
521
522
  }
522
- export type CreateServerRequest = {
523
+ export interface CreateServerRequest {
523
524
  /** Zone to target. If none is passed will use default zone from the config. */
524
525
  zone?: ScwZone;
525
526
  /** Offer ID of the new server. */
@@ -551,70 +552,70 @@ export type CreateServerRequest = {
551
552
  install?: CreateServerRequestInstall;
552
553
  /** IDs of options to enable on server. */
553
554
  optionIds?: string[];
554
- };
555
- export type DeleteOptionServerRequest = {
555
+ }
556
+ export interface DeleteOptionServerRequest {
556
557
  /** Zone to target. If none is passed will use default zone from the config. */
557
558
  zone?: ScwZone;
558
559
  /** ID of the server. */
559
560
  serverId: string;
560
561
  /** ID of the option to delete. */
561
562
  optionId: string;
562
- };
563
- export type DeleteServerRequest = {
563
+ }
564
+ export interface DeleteServerRequest {
564
565
  /** Zone to target. If none is passed will use default zone from the config. */
565
566
  zone?: ScwZone;
566
567
  /** ID of the server to delete. */
567
568
  serverId: string;
568
- };
569
- export type GetBMCAccessRequest = {
569
+ }
570
+ export interface GetBMCAccessRequest {
570
571
  /** Zone to target. If none is passed will use default zone from the config. */
571
572
  zone?: ScwZone;
572
573
  /** ID of the server. */
573
574
  serverId: string;
574
- };
575
- export type GetDefaultPartitioningSchemaRequest = {
575
+ }
576
+ export interface GetDefaultPartitioningSchemaRequest {
576
577
  /** Zone to target. If none is passed will use default zone from the config. */
577
578
  zone?: ScwZone;
578
579
  /** ID of the offer. */
579
580
  offerId: string;
580
581
  /** ID of the OS. */
581
582
  osId: string;
582
- };
583
- export type GetOSRequest = {
583
+ }
584
+ export interface GetOSRequest {
584
585
  /** Zone to target. If none is passed will use default zone from the config. */
585
586
  zone?: ScwZone;
586
587
  /** ID of the OS. */
587
588
  osId: string;
588
- };
589
- export type GetOfferRequest = {
589
+ }
590
+ export interface GetOfferRequest {
590
591
  /** Zone to target. If none is passed will use default zone from the config. */
591
592
  zone?: ScwZone;
592
593
  /** ID of the researched Offer. */
593
594
  offerId: string;
594
- };
595
- export type GetOptionRequest = {
595
+ }
596
+ export interface GetOptionRequest {
596
597
  /** Zone to target. If none is passed will use default zone from the config. */
597
598
  zone?: ScwZone;
598
599
  /** ID of the option. */
599
600
  optionId: string;
600
- };
601
- export type GetServerMetricsRequest = {
601
+ }
602
+ export interface GetServerMetricsRequest {
602
603
  /** Zone to target. If none is passed will use default zone from the config. */
603
604
  zone?: ScwZone;
604
605
  /** Server ID to get the metrics. */
605
606
  serverId: string;
606
- };
607
+ }
607
608
  export interface GetServerMetricsResponse {
608
609
  /** Timeseries object representing pings on the server. */
609
610
  pings?: TimeSeries;
610
611
  }
611
- export type GetServerRequest = {
612
+ export interface GetServerRequest {
612
613
  /** Zone to target. If none is passed will use default zone from the config. */
613
614
  zone?: ScwZone;
614
615
  /** ID of the server. */
615
616
  serverId: string;
616
- };
617
- export type InstallServerRequest = {
617
+ }
618
+ export interface InstallServerRequest {
618
619
  /** Zone to target. If none is passed will use default zone from the config. */
619
620
  zone?: ScwZone;
620
621
  /** Server ID to install. */
@@ -635,8 +636,8 @@ export type InstallServerRequest = {
635
636
  servicePassword?: string;
636
637
  /** Partitioning schema. */
637
638
  partitioningSchema?: Schema;
638
- };
639
- export type ListOSRequest = {
639
+ }
640
+ export interface ListOSRequest {
640
641
  /** Zone to target. If none is passed will use default zone from the config. */
641
642
  zone?: ScwZone;
642
643
  /** Page number. */
@@ -645,14 +646,14 @@ export type ListOSRequest = {
645
646
  pageSize?: number;
646
647
  /** Offer IDs to filter OSes for. */
647
648
  offerId?: string;
648
- };
649
+ }
649
650
  export interface ListOSResponse {
650
651
  /** Total count of matching OS. */
651
652
  totalCount: number;
652
653
  /** OS that match filters. */
653
654
  os: OS[];
654
655
  }
655
- export type ListOffersRequest = {
656
+ export interface ListOffersRequest {
656
657
  /** Zone to target. If none is passed will use default zone from the config. */
657
658
  zone?: ScwZone;
658
659
  /** Page number. */
@@ -663,14 +664,14 @@ export type ListOffersRequest = {
663
664
  subscriptionPeriod?: OfferSubscriptionPeriod;
664
665
  /** Offer name to filter offers by. */
665
666
  name?: string;
666
- };
667
+ }
667
668
  export interface ListOffersResponse {
668
669
  /** Total count of matching offers. */
669
670
  totalCount: number;
670
671
  /** Offers that match filters. */
671
672
  offers: Offer[];
672
673
  }
673
- export type ListOptionsRequest = {
674
+ export interface ListOptionsRequest {
674
675
  /** Zone to target. If none is passed will use default zone from the config. */
675
676
  zone?: ScwZone;
676
677
  /** Page number. */
@@ -681,14 +682,14 @@ export type ListOptionsRequest = {
681
682
  offerId?: string;
682
683
  /** Name to filter options for. */
683
684
  name?: string;
684
- };
685
+ }
685
686
  export interface ListOptionsResponse {
686
687
  /** Total count of matching options. */
687
688
  totalCount: number;
688
689
  /** Options that match filters. */
689
690
  options: Option[];
690
691
  }
691
- export type ListServerEventsRequest = {
692
+ export interface ListServerEventsRequest {
692
693
  /** Zone to target. If none is passed will use default zone from the config. */
693
694
  zone?: ScwZone;
694
695
  /** ID of the server events searched. */
@@ -699,7 +700,7 @@ export type ListServerEventsRequest = {
699
700
  pageSize?: number;
700
701
  /** Order of the server events. */
701
702
  orderBy?: ListServerEventsRequestOrderBy;
702
- };
703
+ }
703
704
  export interface ListServerEventsResponse {
704
705
  /** Total count of matching events. */
705
706
  totalCount: number;
@@ -710,7 +711,7 @@ export interface ListServerPrivateNetworksResponse {
710
711
  serverPrivateNetworks: ServerPrivateNetwork[];
711
712
  totalCount: number;
712
713
  }
713
- export type ListServersRequest = {
714
+ export interface ListServersRequest {
714
715
  /** Zone to target. If none is passed will use default zone from the config. */
715
716
  zone?: ScwZone;
716
717
  /** Page number. */
@@ -731,14 +732,14 @@ export type ListServersRequest = {
731
732
  projectId?: string;
732
733
  /** Option ID to filter for. */
733
734
  optionId?: string;
734
- };
735
+ }
735
736
  export interface ListServersResponse {
736
737
  /** Total count of matching servers. */
737
738
  totalCount: number;
738
739
  /** Array of Elastic Metal server objects matching the filters in the request. */
739
740
  servers: Server[];
740
741
  }
741
- export type ListSettingsRequest = {
742
+ export interface ListSettingsRequest {
742
743
  /** Zone to target. If none is passed will use default zone from the config. */
743
744
  zone?: ScwZone;
744
745
  /** Page number. */
@@ -749,36 +750,36 @@ export type ListSettingsRequest = {
749
750
  orderBy?: ListSettingsRequestOrderBy;
750
751
  /** ID of the Project. */
751
752
  projectId?: string;
752
- };
753
+ }
753
754
  export interface ListSettingsResponse {
754
755
  /** Total count of matching settings. */
755
756
  totalCount: number;
756
757
  /** Settings that match filters. */
757
758
  settings: Setting[];
758
759
  }
759
- export type MigrateServerToMonthlyOfferRequest = {
760
+ export interface MigrateServerToMonthlyOfferRequest {
760
761
  /** Zone to target. If none is passed will use default zone from the config. */
761
762
  zone?: ScwZone;
762
763
  /** ID of the server. */
763
764
  serverId: string;
764
- };
765
- export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
765
+ }
766
+ export interface PrivateNetworkApiAddServerPrivateNetworkRequest {
766
767
  /** Zone to target. If none is passed will use default zone from the config. */
767
768
  zone?: ScwZone;
768
769
  /** The ID of the server. */
769
770
  serverId: string;
770
771
  /** The ID of the Private Network. */
771
772
  privateNetworkId: string;
772
- };
773
- export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
773
+ }
774
+ export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest {
774
775
  /** Zone to target. If none is passed will use default zone from the config. */
775
776
  zone?: ScwZone;
776
777
  /** The ID of the server. */
777
778
  serverId: string;
778
779
  /** The ID of the Private Network. */
779
780
  privateNetworkId: string;
780
- };
781
- export type PrivateNetworkApiListServerPrivateNetworksRequest = {
781
+ }
782
+ export interface PrivateNetworkApiListServerPrivateNetworksRequest {
782
783
  /** Zone to target. If none is passed will use default zone from the config. */
783
784
  zone?: ScwZone;
784
785
  /** The sort order for the returned Private Networks. */
@@ -795,55 +796,55 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
795
796
  organizationId?: string;
796
797
  /** Filter Private Networks by Project ID. */
797
798
  projectId?: string;
798
- };
799
- export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
799
+ }
800
+ export interface PrivateNetworkApiSetServerPrivateNetworksRequest {
800
801
  /** Zone to target. If none is passed will use default zone from the config. */
801
802
  zone?: ScwZone;
802
803
  /** The ID of the server. */
803
804
  serverId: string;
804
805
  /** The IDs of the Private Networks. */
805
806
  privateNetworkIds: string[];
806
- };
807
- export type RebootServerRequest = {
807
+ }
808
+ export interface RebootServerRequest {
808
809
  /** Zone to target. If none is passed will use default zone from the config. */
809
810
  zone?: ScwZone;
810
811
  /** ID of the server to reboot. */
811
812
  serverId: string;
812
813
  /** The type of boot. */
813
814
  bootType?: ServerBootType;
814
- };
815
+ }
815
816
  export interface SetServerPrivateNetworksResponse {
816
817
  serverPrivateNetworks: ServerPrivateNetwork[];
817
818
  }
818
- export type StartBMCAccessRequest = {
819
+ export interface StartBMCAccessRequest {
819
820
  /** Zone to target. If none is passed will use default zone from the config. */
820
821
  zone?: ScwZone;
821
822
  /** ID of the server. */
822
823
  serverId: string;
823
824
  /** The IP authorized to connect to the server. */
824
825
  ip: string;
825
- };
826
- export type StartServerRequest = {
826
+ }
827
+ export interface StartServerRequest {
827
828
  /** Zone to target. If none is passed will use default zone from the config. */
828
829
  zone?: ScwZone;
829
830
  /** ID of the server to start. */
830
831
  serverId: string;
831
832
  /** The type of boot. */
832
833
  bootType?: ServerBootType;
833
- };
834
- export type StopBMCAccessRequest = {
834
+ }
835
+ export interface StopBMCAccessRequest {
835
836
  /** Zone to target. If none is passed will use default zone from the config. */
836
837
  zone?: ScwZone;
837
838
  /** ID of the server. */
838
839
  serverId: string;
839
- };
840
- export type StopServerRequest = {
840
+ }
841
+ export interface StopServerRequest {
841
842
  /** Zone to target. If none is passed will use default zone from the config. */
842
843
  zone?: ScwZone;
843
844
  /** ID of the server to stop. */
844
845
  serverId: string;
845
- };
846
- export type UpdateIPRequest = {
846
+ }
847
+ export interface UpdateIPRequest {
847
848
  /** Zone to target. If none is passed will use default zone from the config. */
848
849
  zone?: ScwZone;
849
850
  /** ID of the server. */
@@ -852,8 +853,8 @@ export type UpdateIPRequest = {
852
853
  ipId: string;
853
854
  /** New reverse IP to update, not updated if null. */
854
855
  reverse?: string;
855
- };
856
- export type UpdateServerRequest = {
856
+ }
857
+ export interface UpdateServerRequest {
857
858
  /** Zone to target. If none is passed will use default zone from the config. */
858
859
  zone?: ScwZone;
859
860
  /** ID of the server to update. */
@@ -867,16 +868,16 @@ export type UpdateServerRequest = {
867
868
  description?: string;
868
869
  /** Tags associated with the server, not updated if null. */
869
870
  tags?: string[];
870
- };
871
- export type UpdateSettingRequest = {
871
+ }
872
+ export interface UpdateSettingRequest {
872
873
  /** Zone to target. If none is passed will use default zone from the config. */
873
874
  zone?: ScwZone;
874
875
  /** ID of the setting. */
875
876
  settingId: string;
876
877
  /** Defines whether the setting is enabled. */
877
878
  enabled?: boolean;
878
- };
879
- export type ValidatePartitioningSchemaRequest = {
879
+ }
880
+ export interface ValidatePartitioningSchemaRequest {
880
881
  /** Zone to target. If none is passed will use default zone from the config. */
881
882
  zone?: ScwZone;
882
883
  /** Partitioning schema. */
@@ -885,4 +886,4 @@ export type ValidatePartitioningSchemaRequest = {
885
886
  offerId: string;
886
887
  /** OS ID. */
887
888
  osId: string;
888
- };
889
+ }
@@ -118,7 +118,9 @@ class API extends api.API {
118
118
  * @returns A Promise of Volume
119
119
  */
120
120
  waitForVolume = (request, options) => intervalRetrier.waitForResource(
121
- options?.stop ?? ((res) => Promise.resolve(!content_gen.VOLUME_TRANSIENT_STATUSES.includes(res.status))),
121
+ options?.stop ?? ((res) => Promise.resolve(
122
+ !content_gen.VOLUME_TRANSIENT_STATUSES.includes(res.status)
123
+ )),
122
124
  this.getVolume,
123
125
  request,
124
126
  options
@@ -205,7 +207,9 @@ class API extends api.API {
205
207
  * @returns A Promise of Snapshot
206
208
  */
207
209
  waitForSnapshot = (request, options) => intervalRetrier.waitForResource(
208
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
210
+ options?.stop ?? ((res) => Promise.resolve(
211
+ !content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
212
+ )),
209
213
  this.getSnapshot,
210
214
  request,
211
215
  options
@@ -116,7 +116,9 @@ class API extends API$1 {
116
116
  * @returns A Promise of Volume
117
117
  */
118
118
  waitForVolume = (request, options) => waitForResource(
119
- options?.stop ?? ((res) => Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))),
119
+ options?.stop ?? ((res) => Promise.resolve(
120
+ !VOLUME_TRANSIENT_STATUSES.includes(res.status)
121
+ )),
120
122
  this.getVolume,
121
123
  request,
122
124
  options
@@ -203,7 +205,9 @@ class API extends API$1 {
203
205
  * @returns A Promise of Snapshot
204
206
  */
205
207
  waitForSnapshot = (request, options) => waitForResource(
206
- options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
208
+ options?.stop ?? ((res) => Promise.resolve(
209
+ !SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
210
+ )),
207
211
  this.getSnapshot,
208
212
  request,
209
213
  options
@@ -118,7 +118,9 @@ class API extends api.API {
118
118
  * @returns A Promise of Volume
119
119
  */
120
120
  waitForVolume = (request, options) => intervalRetrier.waitForResource(
121
- options?.stop ?? ((res) => Promise.resolve(!content_gen.VOLUME_TRANSIENT_STATUSES.includes(res.status))),
121
+ options?.stop ?? ((res) => Promise.resolve(
122
+ !content_gen.VOLUME_TRANSIENT_STATUSES.includes(res.status)
123
+ )),
122
124
  this.getVolume,
123
125
  request,
124
126
  options
@@ -205,7 +207,9 @@ class API extends api.API {
205
207
  * @returns A Promise of Snapshot
206
208
  */
207
209
  waitForSnapshot = (request, options) => intervalRetrier.waitForResource(
208
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
210
+ options?.stop ?? ((res) => Promise.resolve(
211
+ !content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
212
+ )),
209
213
  this.getSnapshot,
210
214
  request,
211
215
  options
@@ -116,7 +116,9 @@ class API extends API$1 {
116
116
  * @returns A Promise of Volume
117
117
  */
118
118
  waitForVolume = (request, options) => waitForResource(
119
- options?.stop ?? ((res) => Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))),
119
+ options?.stop ?? ((res) => Promise.resolve(
120
+ !VOLUME_TRANSIENT_STATUSES.includes(res.status)
121
+ )),
120
122
  this.getVolume,
121
123
  request,
122
124
  options
@@ -203,7 +205,9 @@ class API extends API$1 {
203
205
  * @returns A Promise of Snapshot
204
206
  */
205
207
  waitForSnapshot = (request, options) => waitForResource(
206
- options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
208
+ options?.stop ?? ((res) => Promise.resolve(
209
+ !SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
210
+ )),
207
211
  this.getSnapshot,
208
212
  request,
209
213
  options
@@ -204,6 +204,5 @@ exports.marshalUpdateVolumeRequest = marshalUpdateVolumeRequest;
204
204
  exports.unmarshalListSnapshotsResponse = unmarshalListSnapshotsResponse;
205
205
  exports.unmarshalListVolumeTypesResponse = unmarshalListVolumeTypesResponse;
206
206
  exports.unmarshalListVolumesResponse = unmarshalListVolumesResponse;
207
- exports.unmarshalReference = unmarshalReference;
208
207
  exports.unmarshalSnapshot = unmarshalSnapshot;
209
208
  exports.unmarshalVolume = unmarshalVolume;
@@ -1,6 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Reference, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
3
- export declare const unmarshalReference: (data: unknown) => Reference;
2
+ import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
4
3
  export declare const unmarshalSnapshot: (data: unknown) => Snapshot;
5
4
  export declare const unmarshalVolume: (data: unknown) => Volume;
6
5
  export declare const unmarshalListSnapshotsResponse: (data: unknown) => ListSnapshotsResponse;
@@ -203,7 +203,6 @@ export {
203
203
  unmarshalListSnapshotsResponse,
204
204
  unmarshalListVolumeTypesResponse,
205
205
  unmarshalListVolumesResponse,
206
- unmarshalReference,
207
206
  unmarshalSnapshot,
208
207
  unmarshalVolume
209
208
  };
@@ -63,7 +63,9 @@ class API extends api.API {
63
63
  * @returns A Promise of Namespace
64
64
  */
65
65
  waitForNamespace = (request, options) => intervalRetrier.waitForResource(
66
- options?.stop ?? ((res) => Promise.resolve(!content_gen.NAMESPACE_TRANSIENT_STATUSES.includes(res.status))),
66
+ options?.stop ?? ((res) => Promise.resolve(
67
+ !content_gen.NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
68
+ )),
67
69
  this.getNamespace,
68
70
  request,
69
71
  options
@@ -164,7 +166,9 @@ class API extends api.API {
164
166
  * @returns A Promise of Container
165
167
  */
166
168
  waitForContainer = (request, options) => intervalRetrier.waitForResource(
167
- options?.stop ?? ((res) => Promise.resolve(!content_gen.CONTAINER_TRANSIENT_STATUSES.includes(res.status))),
169
+ options?.stop ?? ((res) => Promise.resolve(
170
+ !content_gen.CONTAINER_TRANSIENT_STATUSES.includes(res.status)
171
+ )),
168
172
  this.getContainer,
169
173
  request,
170
174
  options
@@ -276,7 +280,9 @@ class API extends api.API {
276
280
  * @returns A Promise of Cron
277
281
  */
278
282
  waitForCron = (request, options) => intervalRetrier.waitForResource(
279
- options?.stop ?? ((res) => Promise.resolve(!content_gen.CRON_TRANSIENT_STATUSES.includes(res.status))),
283
+ options?.stop ?? ((res) => Promise.resolve(
284
+ !content_gen.CRON_TRANSIENT_STATUSES.includes(res.status)
285
+ )),
280
286
  this.getCron,
281
287
  request,
282
288
  options
@@ -373,7 +379,9 @@ class API extends api.API {
373
379
  * @returns A Promise of Domain
374
380
  */
375
381
  waitForDomain = (request, options) => intervalRetrier.waitForResource(
376
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
382
+ options?.stop ?? ((res) => Promise.resolve(
383
+ !content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status)
384
+ )),
377
385
  this.getDomain,
378
386
  request,
379
387
  options
@@ -447,7 +455,9 @@ class API extends api.API {
447
455
  * @returns A Promise of Token
448
456
  */
449
457
  waitForToken = (request, options) => intervalRetrier.waitForResource(
450
- options?.stop ?? ((res) => Promise.resolve(!content_gen.TOKEN_TRANSIENT_STATUSES.includes(res.status))),
458
+ options?.stop ?? ((res) => Promise.resolve(
459
+ !content_gen.TOKEN_TRANSIENT_STATUSES.includes(res.status)
460
+ )),
451
461
  this.getToken,
452
462
  request,
453
463
  options
@@ -528,7 +538,9 @@ class API extends api.API {
528
538
  * @returns A Promise of Trigger
529
539
  */
530
540
  waitForTrigger = (request, options) => intervalRetrier.waitForResource(
531
- options?.stop ?? ((res) => Promise.resolve(!content_gen.TRIGGER_TRANSIENT_STATUSES.includes(res.status))),
541
+ options?.stop ?? ((res) => Promise.resolve(
542
+ !content_gen.TRIGGER_TRANSIENT_STATUSES.includes(res.status)
543
+ )),
532
544
  this.getTrigger,
533
545
  request,
534
546
  options