@scaleway/sdk 2.65.0 → 2.66.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/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -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 +42 -41
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +5 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/secret/v1beta1/api.gen.js +5 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v1/types.gen.d.ts +44 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Money, Zone } from '../../../bridge';
|
|
1
|
+
import type { Money, Zone as ScwZone } from '../../../bridge';
|
|
2
2
|
export type AttachFailoverIPToMacAddressRequestMacType = 'mac_type_unknown' | 'vmware' | 'kvm' | 'xen';
|
|
3
3
|
export type BMCAccessStatus = 'unknown' | 'creating' | 'created' | 'deleting';
|
|
4
4
|
export type BackupStatus = 'unknown_backup_status' | 'uninitialized' | 'inactive' | 'ready';
|
|
@@ -404,7 +404,7 @@ export interface Server {
|
|
|
404
404
|
/** Network interfaces of the server. */
|
|
405
405
|
interfaces: NetworkInterface[];
|
|
406
406
|
/** The zone in which is the server. */
|
|
407
|
-
zone:
|
|
407
|
+
zone: ScwZone;
|
|
408
408
|
/** Options subscribe on the server. */
|
|
409
409
|
options: ServerOption[];
|
|
410
410
|
/** Service level of the server. */
|
|
@@ -459,7 +459,7 @@ export interface RpnSanServer {
|
|
|
459
459
|
/** RPN SANs linked to the RPN SAN server. */
|
|
460
460
|
sans: RpnSan[];
|
|
461
461
|
/** The RPN SAN server zone. */
|
|
462
|
-
zone:
|
|
462
|
+
zone: ScwZone;
|
|
463
463
|
}
|
|
464
464
|
export interface RpnV2Group {
|
|
465
465
|
/** RPN V2 group ID. */
|
|
@@ -686,7 +686,7 @@ export interface RpnServerCapability {
|
|
|
686
686
|
/** Server datacenter name. */
|
|
687
687
|
datacenterName: string;
|
|
688
688
|
/** Server zone. */
|
|
689
|
-
zone:
|
|
689
|
+
zone: ScwZone;
|
|
690
690
|
/** Private IP address (if rpn compatiblle). */
|
|
691
691
|
ipAddress?: string;
|
|
692
692
|
/** Supported rpn version. */
|
|
@@ -754,7 +754,7 @@ export interface ServerSummary {
|
|
|
754
754
|
/** Network interfaces of the server. */
|
|
755
755
|
interfaces: NetworkInterface[];
|
|
756
756
|
/** The zone in which is the server. */
|
|
757
|
-
zone:
|
|
757
|
+
zone: ScwZone;
|
|
758
758
|
/** Service level of the server. */
|
|
759
759
|
level?: ServiceLevel;
|
|
760
760
|
/** Whether the server is outsourced or not. */
|
|
@@ -832,7 +832,7 @@ export interface UpdatableRaidArray {
|
|
|
832
832
|
}
|
|
833
833
|
export type AttachFailoverIPToMacAddressRequest = {
|
|
834
834
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
835
|
-
zone?:
|
|
835
|
+
zone?: ScwZone;
|
|
836
836
|
/** ID of the failover IP. */
|
|
837
837
|
ipId: number;
|
|
838
838
|
/** A mac type. */
|
|
@@ -842,7 +842,7 @@ export type AttachFailoverIPToMacAddressRequest = {
|
|
|
842
842
|
};
|
|
843
843
|
export type AttachFailoverIPsRequest = {
|
|
844
844
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
845
|
-
zone?:
|
|
845
|
+
zone?: ScwZone;
|
|
846
846
|
/** ID of the server. */
|
|
847
847
|
serverId: number;
|
|
848
848
|
/** List of ID of failovers IP to attach. */
|
|
@@ -930,13 +930,13 @@ export interface CanOrderResponse {
|
|
|
930
930
|
}
|
|
931
931
|
export type CancelServerInstallRequest = {
|
|
932
932
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
933
|
-
zone?:
|
|
933
|
+
zone?: ScwZone;
|
|
934
934
|
/** Server ID of the server to cancel install. */
|
|
935
935
|
serverId: number;
|
|
936
936
|
};
|
|
937
937
|
export type CreateFailoverIPsRequest = {
|
|
938
938
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
939
|
-
zone?:
|
|
939
|
+
zone?: ScwZone;
|
|
940
940
|
/** Failover IP offer ID. */
|
|
941
941
|
offerId: number;
|
|
942
942
|
/** Project ID. */
|
|
@@ -950,7 +950,7 @@ export interface CreateFailoverIPsResponse {
|
|
|
950
950
|
}
|
|
951
951
|
export type CreateServerRequest = {
|
|
952
952
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
953
|
-
zone?:
|
|
953
|
+
zone?: ScwZone;
|
|
954
954
|
/** Offer ID of the new server. */
|
|
955
955
|
offerId: number;
|
|
956
956
|
/** Server option IDs of the new server. */
|
|
@@ -962,43 +962,43 @@ export type CreateServerRequest = {
|
|
|
962
962
|
};
|
|
963
963
|
export type DeleteFailoverIPRequest = {
|
|
964
964
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
965
|
-
zone?:
|
|
965
|
+
zone?: ScwZone;
|
|
966
966
|
/** ID of the failover IP to delete. */
|
|
967
967
|
ipId: number;
|
|
968
968
|
};
|
|
969
969
|
export type DeleteServerRequest = {
|
|
970
970
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
971
|
-
zone?:
|
|
971
|
+
zone?: ScwZone;
|
|
972
972
|
/** Server ID to delete. */
|
|
973
973
|
serverId: number;
|
|
974
974
|
};
|
|
975
975
|
export type DeleteServiceRequest = {
|
|
976
976
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
977
|
-
zone?:
|
|
977
|
+
zone?: ScwZone;
|
|
978
978
|
/** ID of the service. */
|
|
979
979
|
serviceId: number;
|
|
980
980
|
};
|
|
981
981
|
export type DetachFailoverIPFromMacAddressRequest = {
|
|
982
982
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
983
|
-
zone?:
|
|
983
|
+
zone?: ScwZone;
|
|
984
984
|
/** ID of the failover IP. */
|
|
985
985
|
ipId: number;
|
|
986
986
|
};
|
|
987
987
|
export type DetachFailoverIPsRequest = {
|
|
988
988
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
989
|
-
zone?:
|
|
989
|
+
zone?: ScwZone;
|
|
990
990
|
/** List of IDs of failovers IP to detach. */
|
|
991
991
|
fipsIds: number[];
|
|
992
992
|
};
|
|
993
993
|
export type GetBMCAccessRequest = {
|
|
994
994
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
995
|
-
zone?:
|
|
995
|
+
zone?: ScwZone;
|
|
996
996
|
/** ID of the server to get BMC access. */
|
|
997
997
|
serverId: number;
|
|
998
998
|
};
|
|
999
999
|
export type GetFailoverIPRequest = {
|
|
1000
1000
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1001
|
-
zone?:
|
|
1001
|
+
zone?: ScwZone;
|
|
1002
1002
|
/** ID of the failover IP. */
|
|
1003
1003
|
ipId: number;
|
|
1004
1004
|
};
|
|
@@ -1010,7 +1010,7 @@ export interface GetIPv6BlockQuotasResponse {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
export type GetOSRequest = {
|
|
1012
1012
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1013
|
-
zone?:
|
|
1013
|
+
zone?: ScwZone;
|
|
1014
1014
|
/** ID of the OS. */
|
|
1015
1015
|
osId: number;
|
|
1016
1016
|
/** ID of the server. */
|
|
@@ -1020,7 +1020,7 @@ export type GetOSRequest = {
|
|
|
1020
1020
|
};
|
|
1021
1021
|
export type GetOfferRequest = {
|
|
1022
1022
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1023
|
-
zone?:
|
|
1023
|
+
zone?: ScwZone;
|
|
1024
1024
|
/** ID of offer. */
|
|
1025
1025
|
offerId: number;
|
|
1026
1026
|
/** Project ID. */
|
|
@@ -1028,18 +1028,18 @@ export type GetOfferRequest = {
|
|
|
1028
1028
|
};
|
|
1029
1029
|
export type GetOrderedServiceRequest = {
|
|
1030
1030
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1031
|
-
zone?:
|
|
1031
|
+
zone?: ScwZone;
|
|
1032
1032
|
orderedServiceId: number;
|
|
1033
1033
|
};
|
|
1034
1034
|
export type GetRaidRequest = {
|
|
1035
1035
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1036
|
-
zone?:
|
|
1036
|
+
zone?: ScwZone;
|
|
1037
1037
|
/** ID of the server. */
|
|
1038
1038
|
serverId: number;
|
|
1039
1039
|
};
|
|
1040
1040
|
export type GetRemainingQuotaRequest = {
|
|
1041
1041
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1042
|
-
zone?:
|
|
1042
|
+
zone?: ScwZone;
|
|
1043
1043
|
/** Project ID. */
|
|
1044
1044
|
projectId?: string;
|
|
1045
1045
|
};
|
|
@@ -1055,7 +1055,7 @@ export interface GetRemainingQuotaResponse {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
export type GetRescueRequest = {
|
|
1057
1057
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1058
|
-
zone?:
|
|
1058
|
+
zone?: ScwZone;
|
|
1059
1059
|
/** ID of the server to get rescue. */
|
|
1060
1060
|
serverId: number;
|
|
1061
1061
|
};
|
|
@@ -1067,13 +1067,13 @@ export interface GetRpnStatusResponse {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
export type GetServerBackupRequest = {
|
|
1069
1069
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1070
|
-
zone?:
|
|
1070
|
+
zone?: ScwZone;
|
|
1071
1071
|
/** Server ID of the backup. */
|
|
1072
1072
|
serverId: number;
|
|
1073
1073
|
};
|
|
1074
1074
|
export type GetServerDefaultPartitioningRequest = {
|
|
1075
1075
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1076
|
-
zone?:
|
|
1076
|
+
zone?: ScwZone;
|
|
1077
1077
|
/** ID of the server. */
|
|
1078
1078
|
serverId: number;
|
|
1079
1079
|
/** OS ID of the default partitioning. */
|
|
@@ -1081,19 +1081,19 @@ export type GetServerDefaultPartitioningRequest = {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
export type GetServerInstallRequest = {
|
|
1083
1083
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1084
|
-
zone?:
|
|
1084
|
+
zone?: ScwZone;
|
|
1085
1085
|
/** Server ID of the server to install. */
|
|
1086
1086
|
serverId: number;
|
|
1087
1087
|
};
|
|
1088
1088
|
export type GetServerRequest = {
|
|
1089
1089
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1090
|
-
zone?:
|
|
1090
|
+
zone?: ScwZone;
|
|
1091
1091
|
/** ID of the server. */
|
|
1092
1092
|
serverId: number;
|
|
1093
1093
|
};
|
|
1094
1094
|
export type GetServiceRequest = {
|
|
1095
1095
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1096
|
-
zone?:
|
|
1096
|
+
zone?: ScwZone;
|
|
1097
1097
|
/** ID of the service. */
|
|
1098
1098
|
serviceId: number;
|
|
1099
1099
|
};
|
|
@@ -1149,7 +1149,7 @@ export type IPv6BlockApiUpdateIPv6BlockRequest = {
|
|
|
1149
1149
|
};
|
|
1150
1150
|
export type InstallServerRequest = {
|
|
1151
1151
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1152
|
-
zone?:
|
|
1152
|
+
zone?: ScwZone;
|
|
1153
1153
|
/** Server ID to install. */
|
|
1154
1154
|
serverId: number;
|
|
1155
1155
|
/** OS ID to install on the server. */
|
|
@@ -1186,7 +1186,7 @@ export interface Invoice {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
export type ListFailoverIPsRequest = {
|
|
1188
1188
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1189
|
-
zone?:
|
|
1189
|
+
zone?: ScwZone;
|
|
1190
1190
|
/** Page number. */
|
|
1191
1191
|
page?: number;
|
|
1192
1192
|
/** Number of failovers IP per page. */
|
|
@@ -1227,7 +1227,7 @@ export interface ListIpsResponse {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
export type ListOSRequest = {
|
|
1229
1229
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1230
|
-
zone?:
|
|
1230
|
+
zone?: ScwZone;
|
|
1231
1231
|
/** Page number. */
|
|
1232
1232
|
page?: number;
|
|
1233
1233
|
/** Number of OS per page. */
|
|
@@ -1249,7 +1249,7 @@ export interface ListOSResponse {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
export type ListOffersRequest = {
|
|
1251
1251
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1252
|
-
zone?:
|
|
1252
|
+
zone?: ScwZone;
|
|
1253
1253
|
/** Page number. */
|
|
1254
1254
|
page?: number;
|
|
1255
1255
|
/** Number of offer per page. */
|
|
@@ -1351,7 +1351,7 @@ export interface ListRpnV2MembersResponse {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
export type ListServerDisksRequest = {
|
|
1353
1353
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1354
|
-
zone?:
|
|
1354
|
+
zone?: ScwZone;
|
|
1355
1355
|
/** Server ID of the server disks. */
|
|
1356
1356
|
serverId: number;
|
|
1357
1357
|
/** Page number. */
|
|
@@ -1369,7 +1369,7 @@ export interface ListServerDisksResponse {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
export type ListServerEventsRequest = {
|
|
1371
1371
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1372
|
-
zone?:
|
|
1372
|
+
zone?: ScwZone;
|
|
1373
1373
|
/** Server ID of the server events. */
|
|
1374
1374
|
serverId: number;
|
|
1375
1375
|
/** Page number. */
|
|
@@ -1387,7 +1387,7 @@ export interface ListServerEventsResponse {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
export type ListServersRequest = {
|
|
1389
1389
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1390
|
-
zone?:
|
|
1390
|
+
zone?: ScwZone;
|
|
1391
1391
|
/** Page number. */
|
|
1392
1392
|
page?: number;
|
|
1393
1393
|
/** Number of server per page. */
|
|
@@ -1407,7 +1407,7 @@ export interface ListServersResponse {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
export type ListServicesRequest = {
|
|
1409
1409
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1410
|
-
zone?:
|
|
1410
|
+
zone?: ScwZone;
|
|
1411
1411
|
/** Page number. */
|
|
1412
1412
|
page?: number;
|
|
1413
1413
|
/** Number of service per page. */
|
|
@@ -1425,7 +1425,7 @@ export interface ListServicesResponse {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
export type ListSubscribableServerOptionsRequest = {
|
|
1427
1427
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1428
|
-
zone?:
|
|
1428
|
+
zone?: ScwZone;
|
|
1429
1429
|
/** Server ID of the subscribable server options. */
|
|
1430
1430
|
serverId: number;
|
|
1431
1431
|
/** Page number. */
|
|
@@ -1479,7 +1479,7 @@ export interface Raid {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
export type RebootServerRequest = {
|
|
1481
1481
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1482
|
-
zone?:
|
|
1482
|
+
zone?: ScwZone;
|
|
1483
1483
|
/** Server ID to reboot. */
|
|
1484
1484
|
serverId: number;
|
|
1485
1485
|
};
|
|
@@ -1794,7 +1794,7 @@ export interface ServerInstall {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
export type StartBMCAccessRequest = {
|
|
1796
1796
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1797
|
-
zone?:
|
|
1797
|
+
zone?: ScwZone;
|
|
1798
1798
|
/** ID of the server to start the BMC access. */
|
|
1799
1799
|
serverId: number;
|
|
1800
1800
|
/** The IP authorized to connect to the given server. */
|
|
@@ -1802,7 +1802,7 @@ export type StartBMCAccessRequest = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
export type StartRescueRequest = {
|
|
1804
1804
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1805
|
-
zone?:
|
|
1805
|
+
zone?: ScwZone;
|
|
1806
1806
|
/** ID of the server to start rescue. */
|
|
1807
1807
|
serverId: number;
|
|
1808
1808
|
/** OS ID to use to start rescue. */
|
|
@@ -1810,31 +1810,31 @@ export type StartRescueRequest = {
|
|
|
1810
1810
|
};
|
|
1811
1811
|
export type StartServerRequest = {
|
|
1812
1812
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1813
|
-
zone?:
|
|
1813
|
+
zone?: ScwZone;
|
|
1814
1814
|
/** Server ID to start. */
|
|
1815
1815
|
serverId: number;
|
|
1816
1816
|
};
|
|
1817
1817
|
export type StopBMCAccessRequest = {
|
|
1818
1818
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1819
|
-
zone?:
|
|
1819
|
+
zone?: ScwZone;
|
|
1820
1820
|
/** ID of the server to stop BMC access. */
|
|
1821
1821
|
serverId: number;
|
|
1822
1822
|
};
|
|
1823
1823
|
export type StopRescueRequest = {
|
|
1824
1824
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1825
|
-
zone?:
|
|
1825
|
+
zone?: ScwZone;
|
|
1826
1826
|
/** ID of the server to stop rescue. */
|
|
1827
1827
|
serverId: number;
|
|
1828
1828
|
};
|
|
1829
1829
|
export type StopServerRequest = {
|
|
1830
1830
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1831
|
-
zone?:
|
|
1831
|
+
zone?: ScwZone;
|
|
1832
1832
|
/** Server ID to stop. */
|
|
1833
1833
|
serverId: number;
|
|
1834
1834
|
};
|
|
1835
1835
|
export type SubscribeServerOptionRequest = {
|
|
1836
1836
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1837
|
-
zone?:
|
|
1837
|
+
zone?: ScwZone;
|
|
1838
1838
|
/** Server ID to subscribe server option. */
|
|
1839
1839
|
serverId: number;
|
|
1840
1840
|
/** Option ID to subscribe. */
|
|
@@ -1842,7 +1842,7 @@ export type SubscribeServerOptionRequest = {
|
|
|
1842
1842
|
};
|
|
1843
1843
|
export type SubscribeStorageOptionsRequest = {
|
|
1844
1844
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1845
|
-
zone?:
|
|
1845
|
+
zone?: ScwZone;
|
|
1846
1846
|
/** Server ID of the storage options to subscribe. */
|
|
1847
1847
|
serverId: number;
|
|
1848
1848
|
/** Option IDs of the storage options to subscribe. */
|
|
@@ -1854,7 +1854,7 @@ export interface SubscribeStorageOptionsResponse {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
export type UpdateRaidRequest = {
|
|
1856
1856
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1857
|
-
zone?:
|
|
1857
|
+
zone?: ScwZone;
|
|
1858
1858
|
/** ID of the server. */
|
|
1859
1859
|
serverId: number;
|
|
1860
1860
|
/** RAIDs to update. */
|
|
@@ -1862,7 +1862,7 @@ export type UpdateRaidRequest = {
|
|
|
1862
1862
|
};
|
|
1863
1863
|
export type UpdateReverseRequest = {
|
|
1864
1864
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1865
|
-
zone?:
|
|
1865
|
+
zone?: ScwZone;
|
|
1866
1866
|
/** ID of the IP. */
|
|
1867
1867
|
ipId: number;
|
|
1868
1868
|
/** Reverse to apply on the IP. */
|
|
@@ -1870,7 +1870,7 @@ export type UpdateReverseRequest = {
|
|
|
1870
1870
|
};
|
|
1871
1871
|
export type UpdateServerBackupRequest = {
|
|
1872
1872
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1873
|
-
zone?:
|
|
1873
|
+
zone?: ScwZone;
|
|
1874
1874
|
/** Server ID to update backup. */
|
|
1875
1875
|
serverId: number;
|
|
1876
1876
|
/** Password of the server backup. */
|
|
@@ -1882,7 +1882,7 @@ export type UpdateServerBackupRequest = {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
export type UpdateServerRequest = {
|
|
1884
1884
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1885
|
-
zone?:
|
|
1885
|
+
zone?: ScwZone;
|
|
1886
1886
|
/** Server ID to update. */
|
|
1887
1887
|
serverId: number;
|
|
1888
1888
|
/** Hostname of the server to update. */
|
|
@@ -1892,7 +1892,7 @@ export type UpdateServerRequest = {
|
|
|
1892
1892
|
};
|
|
1893
1893
|
export type UpdateServerTagsRequest = {
|
|
1894
1894
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1895
|
-
zone?:
|
|
1895
|
+
zone?: ScwZone;
|
|
1896
1896
|
/** Server ID to update the tags. */
|
|
1897
1897
|
serverId: number;
|
|
1898
1898
|
/** Tags of server to update. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
-
export type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PurgeRequest, PurgeRequestStatus, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, SelectPlanRequest, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest, } from './types.gen';
|
|
3
|
+
export type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, SelectPlanRequest, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest, } from './types.gen';
|
|
@@ -226,7 +226,18 @@ const unmarshalPlanDetails = (data) => {
|
|
|
226
226
|
return {
|
|
227
227
|
packageGb: data.package_gb,
|
|
228
228
|
pipelineLimit: data.pipeline_limit,
|
|
229
|
-
planName: data.plan_name
|
|
229
|
+
planName: data.plan_name,
|
|
230
|
+
wafRequests: data.waf_requests
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
const unmarshalPlanUsageDetails = (data) => {
|
|
234
|
+
if (!json.isJSONObject(data)) {
|
|
235
|
+
throw new TypeError(
|
|
236
|
+
`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
planCost: data.plan_cost ? customMarshalling.unmarshalMoney(data.plan_cost) : void 0
|
|
230
241
|
};
|
|
231
242
|
};
|
|
232
243
|
const unmarshalGetBillingResponse = (data) => {
|
|
@@ -238,12 +249,20 @@ const unmarshalGetBillingResponse = (data) => {
|
|
|
238
249
|
return {
|
|
239
250
|
currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
|
|
240
251
|
currentPlanCacheUsage: data.current_plan_cache_usage,
|
|
252
|
+
currentPlanWafUsage: data.current_plan_waf_usage,
|
|
241
253
|
extraCacheCost: data.extra_cache_cost ? customMarshalling.unmarshalMoney(data.extra_cache_cost) : void 0,
|
|
242
254
|
extraCacheUsage: data.extra_cache_usage,
|
|
243
255
|
extraPipelinesCost: data.extra_pipelines_cost ? customMarshalling.unmarshalMoney(data.extra_pipelines_cost) : void 0,
|
|
256
|
+
extraWafCost: data.extra_waf_cost ? customMarshalling.unmarshalMoney(data.extra_waf_cost) : void 0,
|
|
257
|
+
extraWafUsage: data.extra_waf_usage,
|
|
244
258
|
pipelineNumber: data.pipeline_number,
|
|
245
259
|
planCost: data.plan_cost ? customMarshalling.unmarshalMoney(data.plan_cost) : void 0,
|
|
246
|
-
|
|
260
|
+
plansUsageDetails: marshalling.unmarshalMapOfObject(
|
|
261
|
+
data.plans_usage_details,
|
|
262
|
+
unmarshalPlanUsageDetails
|
|
263
|
+
),
|
|
264
|
+
totalCost: data.total_cost ? customMarshalling.unmarshalMoney(data.total_cost) : void 0,
|
|
265
|
+
wafAddOn: data.waf_add_on ? customMarshalling.unmarshalMoney(data.waf_add_on) : void 0
|
|
247
266
|
};
|
|
248
267
|
};
|
|
249
268
|
const unmarshalListBackendStagesResponse = (data) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isJSONObject } from "../../../helpers/json.js";
|
|
2
2
|
import { unmarshalMoney } from "../../../scw/custom-marshalling.js";
|
|
3
|
-
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
3
|
+
import { unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
4
4
|
const unmarshalScalewayLb = (data) => {
|
|
5
5
|
if (!isJSONObject(data)) {
|
|
6
6
|
throw new TypeError(
|
|
@@ -224,7 +224,18 @@ const unmarshalPlanDetails = (data) => {
|
|
|
224
224
|
return {
|
|
225
225
|
packageGb: data.package_gb,
|
|
226
226
|
pipelineLimit: data.pipeline_limit,
|
|
227
|
-
planName: data.plan_name
|
|
227
|
+
planName: data.plan_name,
|
|
228
|
+
wafRequests: data.waf_requests
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
const unmarshalPlanUsageDetails = (data) => {
|
|
232
|
+
if (!isJSONObject(data)) {
|
|
233
|
+
throw new TypeError(
|
|
234
|
+
`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0
|
|
228
239
|
};
|
|
229
240
|
};
|
|
230
241
|
const unmarshalGetBillingResponse = (data) => {
|
|
@@ -236,12 +247,20 @@ const unmarshalGetBillingResponse = (data) => {
|
|
|
236
247
|
return {
|
|
237
248
|
currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
|
|
238
249
|
currentPlanCacheUsage: data.current_plan_cache_usage,
|
|
250
|
+
currentPlanWafUsage: data.current_plan_waf_usage,
|
|
239
251
|
extraCacheCost: data.extra_cache_cost ? unmarshalMoney(data.extra_cache_cost) : void 0,
|
|
240
252
|
extraCacheUsage: data.extra_cache_usage,
|
|
241
253
|
extraPipelinesCost: data.extra_pipelines_cost ? unmarshalMoney(data.extra_pipelines_cost) : void 0,
|
|
254
|
+
extraWafCost: data.extra_waf_cost ? unmarshalMoney(data.extra_waf_cost) : void 0,
|
|
255
|
+
extraWafUsage: data.extra_waf_usage,
|
|
242
256
|
pipelineNumber: data.pipeline_number,
|
|
243
257
|
planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0,
|
|
244
|
-
|
|
258
|
+
plansUsageDetails: unmarshalMapOfObject(
|
|
259
|
+
data.plans_usage_details,
|
|
260
|
+
unmarshalPlanUsageDetails
|
|
261
|
+
),
|
|
262
|
+
totalCost: data.total_cost ? unmarshalMoney(data.total_cost) : void 0,
|
|
263
|
+
wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : void 0
|
|
245
264
|
};
|
|
246
265
|
};
|
|
247
266
|
const unmarshalListBackendStagesResponse = (data) => {
|
|
@@ -210,6 +210,15 @@ export interface PlanDetails {
|
|
|
210
210
|
packageGb: number;
|
|
211
211
|
/** Number of pipelines included in subscription plan. */
|
|
212
212
|
pipelineLimit: number;
|
|
213
|
+
/** Number of WAF requests included in subscription plan. */
|
|
214
|
+
wafRequests: number;
|
|
215
|
+
}
|
|
216
|
+
export interface PlanUsageDetails {
|
|
217
|
+
/**
|
|
218
|
+
* Cost to date (this month) for the corresponding Edge Services subscription
|
|
219
|
+
* plan.
|
|
220
|
+
*/
|
|
221
|
+
planCost?: Money;
|
|
213
222
|
}
|
|
214
223
|
export interface PipelineStages {
|
|
215
224
|
pipeline?: Pipeline;
|
|
@@ -451,6 +460,31 @@ export interface GetBillingResponse {
|
|
|
451
460
|
* included in the subscription plans.
|
|
452
461
|
*/
|
|
453
462
|
extraCacheCost?: Money;
|
|
463
|
+
/**
|
|
464
|
+
* Total number of requests processed by the WAF since the beginning of the
|
|
465
|
+
* current month, for the active subscription plan.
|
|
466
|
+
*/
|
|
467
|
+
currentPlanWafUsage: number;
|
|
468
|
+
/**
|
|
469
|
+
* Total number of extra requests processed by the WAF from the beginning of
|
|
470
|
+
* the month, not included in the subscription plans.
|
|
471
|
+
*/
|
|
472
|
+
extraWafUsage: number;
|
|
473
|
+
/**
|
|
474
|
+
* Cost to date (this month) of the extra requests processed by the WAF that
|
|
475
|
+
* were not included in the subscription plans.
|
|
476
|
+
*/
|
|
477
|
+
extraWafCost?: Money;
|
|
478
|
+
/**
|
|
479
|
+
* Cost of activating WAF add-on (where subscription plan does not include
|
|
480
|
+
* WAF).
|
|
481
|
+
*/
|
|
482
|
+
wafAddOn?: Money;
|
|
483
|
+
/**
|
|
484
|
+
* Detailed costs and usage for all Edge Services subscription plans that were
|
|
485
|
+
* activated during the month.
|
|
486
|
+
*/
|
|
487
|
+
plansUsageDetails: Record<string, PlanUsageDetails>;
|
|
454
488
|
/**
|
|
455
489
|
* Total cost to date (this month) of all Edge Services resources including
|
|
456
490
|
* active subscription plan, previously active plans, extra pipelines and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge';
|
|
3
3
|
import type { AttachFlexibleIPRequest, AttachFlexibleIPsResponse, CreateFlexibleIPRequest, DeleteFlexibleIPRequest, DeleteMACAddrRequest, DetachFlexibleIPRequest, DetachFlexibleIPsResponse, DuplicateMACAddrRequest, FlexibleIP, GenerateMACAddrRequest, GetFlexibleIPRequest, ListFlexibleIPsRequest, ListFlexibleIPsResponse, MoveMACAddrRequest, UpdateFlexibleIPRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal - Flexible IP API.
|
|
@@ -9,7 +9,7 @@ import type { AttachFlexibleIPRequest, AttachFlexibleIPsResponse, CreateFlexible
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class API extends ParentAPI {
|
|
11
11
|
/** Lists the available zones of the API. */
|
|
12
|
-
static readonly LOCALITIES:
|
|
12
|
+
static readonly LOCALITIES: ScwZone[];
|
|
13
13
|
/**
|
|
14
14
|
* Create a new flexible IP. Generate a new flexible IP within a given zone,
|
|
15
15
|
* specifying its configuration including Project ID and description.
|