@scaleway/sdk 2.72.0 → 2.74.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 +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +94 -65
- package/dist/api/account/v3/marshalling.gen.js +94 -65
- package/dist/api/account/v3/types.gen.d.ts +224 -104
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +132 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
- package/dist/api/cockpit/v1/api.gen.js +133 -157
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
- package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
- package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
- package/dist/api/file/index.gen.cjs +4 -0
- package/dist/api/file/index.gen.d.ts +5 -0
- package/dist/api/file/index.gen.js +4 -0
- package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
- package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
- package/dist/api/file/v1alpha1/api.gen.js +142 -0
- package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
- package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/file/v1alpha1/content.gen.js +7 -0
- package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/file/v1alpha1/index.gen.js +8 -0
- package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
- package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
- package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
- package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
- package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
- package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
- package/dist/api/iam/v1alpha1/api.gen.js +4 -4
- package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/index.gen.d.ts +3 -1
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
- package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
- package/dist/api/inference/v1beta1/api.gen.js +9 -12
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
- package/dist/api/instance/v1/marshalling.gen.js +4 -1
- package/dist/api/instance/v1/types.gen.d.ts +1368 -600
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
- package/dist/api/lb/v1/marshalling.gen.js +4 -2
- package/dist/api/lb/v1/types.gen.d.ts +4 -0
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/product_catalog/index.gen.cjs +4 -0
- package/dist/api/product_catalog/index.gen.d.ts +5 -0
- package/dist/api/product_catalog/index.gen.js +4 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
- package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
- package/dist/api/vpcgw/v1/api.gen.js +37 -0
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/dist/index.cjs +36 -32
- package/dist/index.js +36 -32
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -10,262 +10,391 @@ export type ListDiscountsRequestOrderBy = 'creation_date_desc' | 'creation_date_
|
|
|
10
10
|
export type ListInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
|
|
11
11
|
export type ListTaxesRequestOrderBy = 'updated_at_desc' | 'updated_at_asc' | 'category_name_desc' | 'category_name_asc';
|
|
12
12
|
export interface DiscountCoupon {
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The description of the coupon.
|
|
15
|
+
*/
|
|
14
16
|
description?: string;
|
|
15
17
|
}
|
|
16
18
|
export interface DiscountFilter {
|
|
17
19
|
/**
|
|
18
|
-
* Type of the filter (category name, product name, product range, resource
|
|
19
|
-
* name, region or zone).
|
|
20
|
+
* Type of the filter (category name, product name, product range, resource name, region or zone).
|
|
20
21
|
*/
|
|
21
22
|
type: DiscountFilterType;
|
|
22
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Value of filter.
|
|
25
|
+
*/
|
|
23
26
|
value: string;
|
|
24
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Boolean to describe if filter is an excluding filter.
|
|
29
|
+
*/
|
|
25
30
|
exclude: boolean;
|
|
26
31
|
}
|
|
27
32
|
export interface ListConsumptionsResponseConsumption {
|
|
28
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Monetary value of the consumption.
|
|
35
|
+
*/
|
|
29
36
|
value?: Money;
|
|
30
37
|
/**
|
|
31
|
-
* The product name. For example, "VPC Public Gateway S", "VPC Public Gateway
|
|
32
|
-
* M" for the VPC product.
|
|
38
|
+
* The product name. For example, "VPC Public Gateway S", "VPC Public Gateway M" for the VPC product.
|
|
33
39
|
*/
|
|
34
40
|
productName: string;
|
|
35
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Identifies the reference based on the category.
|
|
43
|
+
*/
|
|
36
44
|
resourceName: string;
|
|
37
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier of the product.
|
|
47
|
+
*/
|
|
38
48
|
sku: string;
|
|
39
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Project ID of the consumption.
|
|
51
|
+
*/
|
|
40
52
|
projectId: string;
|
|
41
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Name of consumption category.
|
|
55
|
+
*/
|
|
42
56
|
categoryName: string;
|
|
43
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Unit of consumed quantity.
|
|
59
|
+
*/
|
|
44
60
|
unit: string;
|
|
45
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Consumed quantity.
|
|
63
|
+
*/
|
|
46
64
|
billedQuantity: string;
|
|
47
65
|
}
|
|
48
66
|
export interface Discount {
|
|
49
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* The ID of the discount.
|
|
69
|
+
*/
|
|
50
70
|
id: string;
|
|
51
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* The creation date of the discount.
|
|
73
|
+
*/
|
|
52
74
|
creationDate?: Date;
|
|
53
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* The Organization ID of the discount.
|
|
77
|
+
*/
|
|
54
78
|
organizationId: string;
|
|
55
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The description of the discount.
|
|
81
|
+
*/
|
|
56
82
|
description: string;
|
|
57
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The initial value of the discount.
|
|
85
|
+
*/
|
|
58
86
|
value: number;
|
|
59
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* The value indicating how much of the discount has been used.
|
|
89
|
+
*/
|
|
60
90
|
valueUsed: number;
|
|
61
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* The remaining value of the discount.
|
|
93
|
+
*/
|
|
62
94
|
valueRemaining: number;
|
|
63
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The mode of the discount.
|
|
97
|
+
*/
|
|
64
98
|
mode: DiscountDiscountMode;
|
|
65
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* The start date of the discount.
|
|
101
|
+
*/
|
|
66
102
|
startDate?: Date;
|
|
67
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* The stop date of the discount.
|
|
105
|
+
*/
|
|
68
106
|
stopDate?: Date;
|
|
69
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* The description of the coupon.
|
|
109
|
+
*/
|
|
70
110
|
coupon?: DiscountCoupon;
|
|
71
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* List of the discount scopes.
|
|
113
|
+
*/
|
|
72
114
|
filters: DiscountFilter[];
|
|
73
115
|
}
|
|
74
116
|
export interface Invoice {
|
|
75
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Invoice ID.
|
|
119
|
+
*/
|
|
76
120
|
id: string;
|
|
77
121
|
organizationId: string;
|
|
78
122
|
organizationName: string;
|
|
79
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Start date of the billing period.
|
|
125
|
+
*/
|
|
80
126
|
startDate?: Date;
|
|
81
127
|
stopDate?: Date;
|
|
82
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* The billing period of the invoice in the YYYY-MM format.
|
|
130
|
+
*/
|
|
83
131
|
billingPeriod?: Date;
|
|
84
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Date when the invoice was sent to the customer.
|
|
134
|
+
*/
|
|
85
135
|
issuedDate?: Date;
|
|
86
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Payment time limit, set according to the Organization's payment conditions.
|
|
138
|
+
*/
|
|
87
139
|
dueDate?: Date;
|
|
88
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Total amount, untaxed.
|
|
142
|
+
*/
|
|
89
143
|
totalUntaxed?: Money;
|
|
90
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* Total amount, taxed.
|
|
146
|
+
*/
|
|
91
147
|
totalTaxed?: Money;
|
|
92
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* The total tax amount of the invoice.
|
|
150
|
+
*/
|
|
93
151
|
totalTax?: Money;
|
|
94
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* The total discount amount of the invoice.
|
|
154
|
+
*/
|
|
95
155
|
totalDiscount?: Money;
|
|
96
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* The total amount of the invoice before applying the discount.
|
|
158
|
+
*/
|
|
97
159
|
totalUndiscount?: Money;
|
|
98
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Type of invoice, either periodic or purchase.
|
|
162
|
+
*/
|
|
99
163
|
type: InvoiceType;
|
|
100
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* The state of the Invoice.
|
|
166
|
+
*/
|
|
101
167
|
state: string;
|
|
102
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Invoice number.
|
|
170
|
+
*/
|
|
103
171
|
number: number;
|
|
104
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* The name of the seller (Scaleway).
|
|
174
|
+
*/
|
|
105
175
|
sellerName: string;
|
|
106
176
|
}
|
|
107
177
|
export interface ListTaxesResponseTax {
|
|
108
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Description of the tax applied.
|
|
180
|
+
*/
|
|
109
181
|
description: string;
|
|
110
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* The three-letter currency code.
|
|
184
|
+
*/
|
|
111
185
|
currency: string;
|
|
112
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Applied tax rate (0.2 means a VAT of 20%).
|
|
188
|
+
*/
|
|
113
189
|
rate?: number;
|
|
114
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* The total tax value of the consumption.
|
|
192
|
+
*/
|
|
115
193
|
totalTaxValue?: number;
|
|
116
194
|
}
|
|
117
195
|
export type DownloadInvoiceRequest = {
|
|
118
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* Invoice ID.
|
|
198
|
+
*/
|
|
119
199
|
invoiceId: string;
|
|
120
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* File type. PDF by default.
|
|
202
|
+
*/
|
|
121
203
|
fileType?: DownloadInvoiceRequestFileType;
|
|
122
204
|
};
|
|
123
205
|
export type ExportInvoicesRequest = {
|
|
124
206
|
/**
|
|
125
|
-
* Organization ID. If specified, only invoices from this Organization will be
|
|
126
|
-
* returned.
|
|
207
|
+
* Organization ID. If specified, only invoices from this Organization will be returned.
|
|
127
208
|
*/
|
|
128
209
|
organizationId?: string;
|
|
129
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Return only invoice with start date greater than billing_period_start.
|
|
212
|
+
*/
|
|
130
213
|
billingPeriodStartAfter?: Date;
|
|
131
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* Return only invoice with start date less than billing_period_start.
|
|
216
|
+
*/
|
|
132
217
|
billingPeriodStartBefore?: Date;
|
|
133
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* Invoice type. It can either be `periodic` or `purchase`.
|
|
220
|
+
*/
|
|
134
221
|
invoiceType?: InvoiceType;
|
|
135
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* Page number.
|
|
224
|
+
*/
|
|
136
225
|
page?: number;
|
|
137
226
|
/**
|
|
138
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
139
|
-
* return.
|
|
227
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
140
228
|
*/
|
|
141
229
|
pageSize?: number;
|
|
142
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* How invoices are ordered in the response.
|
|
232
|
+
*/
|
|
143
233
|
orderBy?: ExportInvoicesRequestOrderBy;
|
|
144
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* File format for exporting the invoice list.
|
|
236
|
+
*/
|
|
145
237
|
fileType?: ExportInvoicesRequestFileType;
|
|
146
238
|
};
|
|
147
239
|
export type GetInvoiceRequest = {
|
|
148
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Invoice ID.
|
|
242
|
+
*/
|
|
149
243
|
invoiceId: string;
|
|
150
244
|
};
|
|
151
245
|
export type ListConsumptionsRequest = {
|
|
152
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* Order consumptions list in the response by their update date.
|
|
248
|
+
*/
|
|
153
249
|
orderBy?: ListConsumptionsRequestOrderBy;
|
|
154
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* Positive integer to choose the page to return.
|
|
252
|
+
*/
|
|
155
253
|
page?: number;
|
|
156
254
|
/**
|
|
157
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
158
|
-
* return.
|
|
255
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
159
256
|
*/
|
|
160
257
|
pageSize?: number;
|
|
161
258
|
/**
|
|
162
259
|
* Filter by Organization ID.
|
|
163
260
|
*
|
|
164
|
-
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
|
|
165
|
-
* could be set.
|
|
261
|
+
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId' could be set.
|
|
166
262
|
*/
|
|
167
263
|
organizationId?: string;
|
|
168
264
|
/**
|
|
169
265
|
* Filter by Project ID.
|
|
170
266
|
*
|
|
171
|
-
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
|
|
172
|
-
* could be set.
|
|
267
|
+
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId' could be set.
|
|
173
268
|
*/
|
|
174
269
|
projectId?: string;
|
|
175
270
|
/**
|
|
176
|
-
* Filter by name of a Category as they are shown in the invoice (Compute,
|
|
177
|
-
* Network, Observability).
|
|
271
|
+
* Filter by name of a Category as they are shown in the invoice (Compute, Network, Observability).
|
|
178
272
|
*/
|
|
179
273
|
categoryName?: string;
|
|
180
274
|
/**
|
|
181
|
-
* Filter by the billing period in the YYYY-MM format. If it is empty the
|
|
182
|
-
* current billing period will be used as default.
|
|
275
|
+
* Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default.
|
|
183
276
|
*/
|
|
184
277
|
billingPeriod?: string;
|
|
185
278
|
};
|
|
186
279
|
export interface ListConsumptionsResponse {
|
|
187
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Detailed consumption list.
|
|
282
|
+
*/
|
|
188
283
|
consumptions: ListConsumptionsResponseConsumption[];
|
|
189
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Total number of returned items.
|
|
286
|
+
*/
|
|
190
287
|
totalCount: number;
|
|
191
288
|
/**
|
|
192
|
-
* Sum of all discounts, displayed only when no category or project ID filter
|
|
193
|
-
* is applied.
|
|
289
|
+
* Sum of all discounts, displayed only when no category or project ID filter is applied.
|
|
194
290
|
*/
|
|
195
291
|
totalDiscountUntaxedValue: number;
|
|
196
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* Last consumption update date.
|
|
294
|
+
*/
|
|
197
295
|
updatedAt?: Date;
|
|
198
296
|
}
|
|
199
297
|
export type ListDiscountsRequest = {
|
|
200
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* Order discounts in the response by their description.
|
|
300
|
+
*/
|
|
201
301
|
orderBy?: ListDiscountsRequestOrderBy;
|
|
202
|
-
/**
|
|
302
|
+
/**
|
|
303
|
+
* Positive integer to choose the page to return.
|
|
304
|
+
*/
|
|
203
305
|
page?: number;
|
|
204
306
|
/**
|
|
205
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
206
|
-
* return.
|
|
307
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
207
308
|
*/
|
|
208
309
|
pageSize?: number;
|
|
209
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* ID of the organization.
|
|
312
|
+
*/
|
|
210
313
|
organizationId?: string;
|
|
211
314
|
};
|
|
212
315
|
export interface ListDiscountsResponse {
|
|
213
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* Total number of discounts.
|
|
318
|
+
*/
|
|
214
319
|
totalCount: number;
|
|
215
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* Paginated returned discounts.
|
|
322
|
+
*/
|
|
216
323
|
discounts: Discount[];
|
|
217
324
|
}
|
|
218
325
|
export type ListInvoicesRequest = {
|
|
219
326
|
/**
|
|
220
|
-
* Organization ID. If specified, only invoices from this Organization will be
|
|
221
|
-
* returned.
|
|
327
|
+
* Organization ID. If specified, only invoices from this Organization will be returned.
|
|
222
328
|
*/
|
|
223
329
|
organizationId?: string;
|
|
224
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Return only invoice with start date greater than billing_period_start.
|
|
332
|
+
*/
|
|
225
333
|
billingPeriodStartAfter?: Date;
|
|
226
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Return only invoice with start date less than billing_period_start.
|
|
336
|
+
*/
|
|
227
337
|
billingPeriodStartBefore?: Date;
|
|
228
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* Invoice type. It can either be `periodic` or `purchase`.
|
|
340
|
+
*/
|
|
229
341
|
invoiceType?: InvoiceType;
|
|
230
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Page number.
|
|
344
|
+
*/
|
|
231
345
|
page?: number;
|
|
232
346
|
/**
|
|
233
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
234
|
-
* return.
|
|
347
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
235
348
|
*/
|
|
236
349
|
pageSize?: number;
|
|
237
|
-
/**
|
|
350
|
+
/**
|
|
351
|
+
* How invoices are ordered in the response.
|
|
352
|
+
*/
|
|
238
353
|
orderBy?: ListInvoicesRequestOrderBy;
|
|
239
354
|
};
|
|
240
355
|
export interface ListInvoicesResponse {
|
|
241
|
-
/**
|
|
356
|
+
/**
|
|
357
|
+
* Total number of invoices.
|
|
358
|
+
*/
|
|
242
359
|
totalCount: number;
|
|
243
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* Paginated returned invoices.
|
|
362
|
+
*/
|
|
244
363
|
invoices: Invoice[];
|
|
245
364
|
}
|
|
246
365
|
export type ListTaxesRequest = {
|
|
247
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* Order consumed taxes list in the response by their update date.
|
|
368
|
+
*/
|
|
248
369
|
orderBy?: ListTaxesRequestOrderBy;
|
|
249
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* Page number.
|
|
372
|
+
*/
|
|
250
373
|
page?: number;
|
|
251
374
|
/**
|
|
252
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
253
|
-
* return.
|
|
375
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
254
376
|
*/
|
|
255
377
|
pageSize?: number;
|
|
256
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* Filter by Organization ID.
|
|
380
|
+
*/
|
|
257
381
|
organizationId?: string;
|
|
258
382
|
/**
|
|
259
|
-
* Filter by the billing period in the YYYY-MM format. If it is empty the
|
|
260
|
-
* current billing period will be used as default.
|
|
383
|
+
* Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default.
|
|
261
384
|
*/
|
|
262
385
|
billingPeriod?: string;
|
|
263
386
|
};
|
|
264
387
|
export interface ListTaxesResponse {
|
|
265
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* Detailed consumption tax.
|
|
390
|
+
*/
|
|
266
391
|
taxes: ListTaxesResponseTax[];
|
|
267
|
-
/**
|
|
392
|
+
/**
|
|
393
|
+
* Total number of returned items.
|
|
394
|
+
*/
|
|
268
395
|
totalCount: number;
|
|
269
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* Last consumption update date.
|
|
398
|
+
*/
|
|
270
399
|
updatedAt?: Date;
|
|
271
400
|
}
|
|
@@ -39,8 +39,7 @@ class API extends api.API {
|
|
|
39
39
|
marshalling_gen.unmarshalListVolumeTypesResponse
|
|
40
40
|
);
|
|
41
41
|
/**
|
|
42
|
-
* List volume types. List all available volume types in a specified zone. The
|
|
43
|
-
* volume types listed are ordered by name in ascending order.
|
|
42
|
+
* List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
|
|
44
43
|
*
|
|
45
44
|
* @param request - The request {@link ListVolumeTypesRequest}
|
|
46
45
|
* @returns A Promise of ListVolumeTypesResponse
|
|
@@ -67,25 +66,19 @@ class API extends api.API {
|
|
|
67
66
|
marshalling_gen.unmarshalListVolumesResponse
|
|
68
67
|
);
|
|
69
68
|
/**
|
|
70
|
-
* List volumes. List all existing volumes in a specified zone. By default,
|
|
71
|
-
* the volumes listed are ordered by creation date in ascending order. This
|
|
72
|
-
* can be modified via the `order_by` field.
|
|
69
|
+
* List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
73
70
|
*
|
|
74
71
|
* @param request - The request {@link ListVolumesRequest}
|
|
75
72
|
* @returns A Promise of ListVolumesResponse
|
|
76
73
|
*/
|
|
77
74
|
listVolumes = (request = {}) => resourcePaginator.enrichForPagination("volumes", this.pageOfListVolumes, request);
|
|
78
75
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
*
|
|
86
|
-
* @param request - The request {@link CreateVolumeRequest}
|
|
87
|
-
* @returns A Promise of Volume
|
|
88
|
-
*/
|
|
76
|
+
* Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
|
|
77
|
+
To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
|
|
78
|
+
*
|
|
79
|
+
* @param request - The request {@link CreateVolumeRequest}
|
|
80
|
+
* @returns A Promise of Volume
|
|
81
|
+
*/
|
|
89
82
|
createVolume = (request = {}) => this.client.fetch(
|
|
90
83
|
{
|
|
91
84
|
body: JSON.stringify(
|
|
@@ -98,8 +91,7 @@ class API extends api.API {
|
|
|
98
91
|
marshalling_gen.unmarshalVolume
|
|
99
92
|
);
|
|
100
93
|
/**
|
|
101
|
-
* Get a volume. Retrieve technical information about a specific volume.
|
|
102
|
-
* Details such as size, type, and status are returned in the response.
|
|
94
|
+
* Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
|
|
103
95
|
*
|
|
104
96
|
* @param request - The request {@link GetVolumeRequest}
|
|
105
97
|
* @returns A Promise of Volume
|
|
@@ -127,8 +119,7 @@ class API extends api.API {
|
|
|
127
119
|
options
|
|
128
120
|
);
|
|
129
121
|
/**
|
|
130
|
-
* Delete a detached volume. You must specify the `volume_id` of the volume
|
|
131
|
-
* you want to delete. The volume must not be in the `in_use` status.
|
|
122
|
+
* Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
|
|
132
123
|
*
|
|
133
124
|
* @param request - The request {@link DeleteVolumeRequest}
|
|
134
125
|
*/
|
|
@@ -137,14 +128,12 @@ class API extends api.API {
|
|
|
137
128
|
path: `/block/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${marshalling.validatePathParam("volumeId", request.volumeId)}`
|
|
138
129
|
});
|
|
139
130
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
* @returns A Promise of Volume
|
|
147
|
-
*/
|
|
131
|
+
* Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
|
|
132
|
+
You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
|
|
133
|
+
*
|
|
134
|
+
* @param request - The request {@link UpdateVolumeRequest}
|
|
135
|
+
* @returns A Promise of Volume
|
|
136
|
+
*/
|
|
148
137
|
updateVolume = (request) => this.client.fetch(
|
|
149
138
|
{
|
|
150
139
|
body: JSON.stringify(
|
|
@@ -177,18 +166,14 @@ class API extends api.API {
|
|
|
177
166
|
marshalling_gen.unmarshalListSnapshotsResponse
|
|
178
167
|
);
|
|
179
168
|
/**
|
|
180
|
-
* List all snapshots. List all available snapshots in a specified zone. By
|
|
181
|
-
* default, the snapshots listed are ordered by creation date in ascending
|
|
182
|
-
* order. This can be modified via the `order_by` field.
|
|
169
|
+
* List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
183
170
|
*
|
|
184
171
|
* @param request - The request {@link ListSnapshotsRequest}
|
|
185
172
|
* @returns A Promise of ListSnapshotsResponse
|
|
186
173
|
*/
|
|
187
174
|
listSnapshots = (request = {}) => resourcePaginator.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
|
|
188
175
|
/**
|
|
189
|
-
* Get a snapshot. Retrieve technical information about a specific snapshot.
|
|
190
|
-
* Details such as size, volume type, and status are returned in the
|
|
191
|
-
* response.
|
|
176
|
+
* Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
|
|
192
177
|
*
|
|
193
178
|
* @param request - The request {@link GetSnapshotRequest}
|
|
194
179
|
* @returns A Promise of Snapshot
|
|
@@ -216,13 +201,12 @@ class API extends api.API {
|
|
|
216
201
|
options
|
|
217
202
|
);
|
|
218
203
|
/**
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
*/
|
|
204
|
+
* Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
|
|
205
|
+
If your volume is in a transient state, you need to wait until the end of the current operation.
|
|
206
|
+
*
|
|
207
|
+
* @param request - The request {@link CreateSnapshotRequest}
|
|
208
|
+
* @returns A Promise of Snapshot
|
|
209
|
+
*/
|
|
226
210
|
createSnapshot = (request) => this.client.fetch(
|
|
227
211
|
{
|
|
228
212
|
body: JSON.stringify(
|
|
@@ -235,13 +219,12 @@ class API extends api.API {
|
|
|
235
219
|
marshalling_gen.unmarshalSnapshot
|
|
236
220
|
);
|
|
237
221
|
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
*/
|
|
222
|
+
* Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
|
|
223
|
+
The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
|
|
224
|
+
*
|
|
225
|
+
* @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
|
|
226
|
+
* @returns A Promise of Snapshot
|
|
227
|
+
*/
|
|
245
228
|
importSnapshotFromObjectStorage = (request) => this.client.fetch(
|
|
246
229
|
{
|
|
247
230
|
body: JSON.stringify(
|
|
@@ -257,12 +240,12 @@ class API extends api.API {
|
|
|
257
240
|
marshalling_gen.unmarshalSnapshot
|
|
258
241
|
);
|
|
259
242
|
/**
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
243
|
+
* Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
|
|
244
|
+
The snapshot must not be in transient state.
|
|
245
|
+
*
|
|
246
|
+
* @param request - The request {@link ExportSnapshotToObjectStorageRequest}
|
|
247
|
+
* @returns A Promise of Snapshot
|
|
248
|
+
*/
|
|
266
249
|
exportSnapshotToObjectStorage = (request) => this.client.fetch(
|
|
267
250
|
{
|
|
268
251
|
body: JSON.stringify(
|
|
@@ -278,8 +261,7 @@ class API extends api.API {
|
|
|
278
261
|
marshalling_gen.unmarshalSnapshot
|
|
279
262
|
);
|
|
280
263
|
/**
|
|
281
|
-
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
282
|
-
* want to delete. The snapshot must not be in use.
|
|
264
|
+
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
|
|
283
265
|
*
|
|
284
266
|
* @param request - The request {@link DeleteSnapshotRequest}
|
|
285
267
|
*/
|