@scaleway/sdk 2.69.0 → 2.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
- package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
- package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
- package/dist/api/block/v1/api.gen.cjs +6 -2
- package/dist/api/block/v1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/block/v1alpha1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/container/v1beta1/api.gen.cjs +18 -6
- package/dist/api/container/v1beta1/api.gen.js +18 -6
- package/dist/api/dedibox/v1/api.gen.cjs +9 -3
- package/dist/api/dedibox/v1/api.gen.js +9 -3
- package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
- package/dist/api/domain/v2beta1/api.gen.js +3 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/api.gen.cjs +18 -6
- package/dist/api/function/v1beta1/api.gen.js +18 -6
- package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +1 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +21 -14
- package/dist/api/iam/v1alpha1/marshalling.gen.js +21 -14
- package/dist/api/iam/v1alpha1/types.gen.d.ts +32 -6
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +38 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +36 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +38 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +278 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +278 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +397 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
- package/dist/api/inference/v1beta1/api.gen.js +3 -1
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -1
- package/dist/api/instance/v1/marshalling.gen.js +13 -1
- package/dist/api/instance/v1/types.gen.d.ts +10 -2
- package/dist/api/k8s/v1/api.gen.cjs +3 -1
- package/dist/api/k8s/v1/api.gen.js +3 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
- package/dist/api/rdb/v1/api.gen.cjs +6 -2
- package/dist/api/rdb/v1/api.gen.js +6 -2
- package/dist/api/redis/v1/api.gen.cjs +3 -1
- package/dist/api/redis/v1/api.gen.js +3 -1
- package/dist/api/registry/v1/api.gen.cjs +9 -3
- package/dist/api/registry/v1/api.gen.js +9 -3
- package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
- package/dist/api/secret/v1beta1/api.gen.js +32 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +157 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/vpc/v2/api.gen.cjs +33 -0
- package/dist/api/vpc/v2/api.gen.d.ts +17 -1
- package/dist/api/vpc/v2/api.gen.js +34 -1
- package/dist/api/vpc/v2/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +59 -0
- package/dist/api/vpc/v2/types.gen.d.ts +80 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v1/api.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v2/api.gen.js +3 -1
- package/dist/api/webhosting/v1/api.gen.cjs +6 -2
- package/dist/api/webhosting/v1/api.gen.js +6 -2
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +27 -2
- package/dist/api/webhosting/v1/marshalling.gen.js +27 -2
- package/dist/api/webhosting/v1/types.gen.d.ts +64 -15
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -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(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,
|
|
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;
|
|
@@ -21,8 +21,8 @@ const unmarshalContactPoint = (data) => {
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
email: data.email ? unmarshalContactPointEmail(data.email) : void 0,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
region: data.region,
|
|
25
|
+
sendResolvedNotifications: data.send_resolved_notifications
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const unmarshalDataSource = (data) => {
|
|
@@ -311,7 +311,7 @@ const marshalContactPointEmail = (request, defaults) => ({
|
|
|
311
311
|
});
|
|
312
312
|
const marshalRegionalApiCreateContactPointRequest = (request, defaults) => ({
|
|
313
313
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
314
|
-
|
|
314
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
315
315
|
...marshalling.resolveOneOf([
|
|
316
316
|
{
|
|
317
317
|
param: "email",
|
|
@@ -356,7 +356,7 @@ const marshalRegionalApiTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
356
356
|
});
|
|
357
357
|
const marshalRegionalApiUpdateContactPointRequest = (request, defaults) => ({
|
|
358
358
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
359
|
-
|
|
359
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
360
360
|
...marshalling.resolveOneOf([
|
|
361
361
|
{
|
|
362
362
|
param: "email",
|
|
@@ -19,8 +19,8 @@ const unmarshalContactPoint = (data) => {
|
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
21
|
email: data.email ? unmarshalContactPointEmail(data.email) : void 0,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
region: data.region,
|
|
23
|
+
sendResolvedNotifications: data.send_resolved_notifications
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const unmarshalDataSource = (data) => {
|
|
@@ -309,7 +309,7 @@ const marshalContactPointEmail = (request, defaults) => ({
|
|
|
309
309
|
});
|
|
310
310
|
const marshalRegionalApiCreateContactPointRequest = (request, defaults) => ({
|
|
311
311
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
312
|
-
|
|
312
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
313
313
|
...resolveOneOf([
|
|
314
314
|
{
|
|
315
315
|
param: "email",
|
|
@@ -354,7 +354,7 @@ const marshalRegionalApiTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
354
354
|
});
|
|
355
355
|
const marshalRegionalApiUpdateContactPointRequest = (request, defaults) => ({
|
|
356
356
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
357
|
-
|
|
357
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
358
358
|
...resolveOneOf([
|
|
359
359
|
{
|
|
360
360
|
param: "email",
|
|
@@ -43,7 +43,7 @@ export interface ContactPoint {
|
|
|
43
43
|
/** Region. */
|
|
44
44
|
region: ScwRegion;
|
|
45
45
|
/** Send an email notification when an alert is marked as resolved. */
|
|
46
|
-
|
|
46
|
+
sendResolvedNotifications: boolean;
|
|
47
47
|
}
|
|
48
48
|
/** Data source. */
|
|
49
49
|
export interface DataSource {
|
|
@@ -343,7 +343,7 @@ export type RegionalApiCreateContactPointRequest = {
|
|
|
343
343
|
*/
|
|
344
344
|
email?: ContactPointEmail;
|
|
345
345
|
/** Send an email notification when an alert is marked as resolved. */
|
|
346
|
-
|
|
346
|
+
sendResolvedNotifications?: boolean;
|
|
347
347
|
};
|
|
348
348
|
/** Create a data source. */
|
|
349
349
|
export type RegionalApiCreateDataSourceRequest = {
|
|
@@ -612,7 +612,7 @@ export type RegionalApiUpdateContactPointRequest = {
|
|
|
612
612
|
*/
|
|
613
613
|
email?: ContactPointEmail;
|
|
614
614
|
/** Enable or disable notifications when alert is resolved. */
|
|
615
|
-
|
|
615
|
+
sendResolvedNotifications?: boolean;
|
|
616
616
|
};
|
|
617
617
|
/** Update a data source name. */
|
|
618
618
|
export type RegionalApiUpdateDataSourceRequest = {
|