@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
|
@@ -9,23 +9,41 @@ export type ServerPrivateNetworkStatus = 'vpc_unknown_status' | 'vpc_enabled' |
|
|
|
9
9
|
export type ServerStatus = 'unknown_status' | 'starting' | 'ready' | 'error' | 'rebooting' | 'updating' | 'locking' | 'locked' | 'unlocking' | 'reinstalling' | 'busy';
|
|
10
10
|
export type ServerTypeStock = 'unknown_stock' | 'no_stock' | 'low_stock' | 'high_stock';
|
|
11
11
|
export interface OS {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Unique ID of the OS.
|
|
14
|
+
*/
|
|
13
15
|
id: string;
|
|
14
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* OS name.
|
|
18
|
+
*/
|
|
15
19
|
name: string;
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* OS name as it should be displayed.
|
|
22
|
+
*/
|
|
17
23
|
label: string;
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* URL of the image.
|
|
26
|
+
*/
|
|
19
27
|
imageUrl: string;
|
|
20
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The OS family to which this OS belongs, eg. 13 or 14.
|
|
30
|
+
*/
|
|
21
31
|
family: string;
|
|
22
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Describes if the OS is in beta.
|
|
34
|
+
*/
|
|
23
35
|
isBeta: boolean;
|
|
24
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The OS version number, eg. Sonoma has version number 14.3.
|
|
38
|
+
*/
|
|
25
39
|
version: string;
|
|
26
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The current xcode version for this OS.
|
|
42
|
+
*/
|
|
27
43
|
xcodeVersion: string;
|
|
28
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* List of compatible server types.
|
|
46
|
+
*/
|
|
29
47
|
compatibleServerTypes: string[];
|
|
30
48
|
}
|
|
31
49
|
export interface ServerTypeCPU {
|
|
@@ -60,101 +78,161 @@ export interface ConnectivityDiagnosticServerHealth {
|
|
|
60
78
|
isVncPortUp: boolean;
|
|
61
79
|
}
|
|
62
80
|
export interface ServerPrivateNetwork {
|
|
63
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* ID of the Server-to-Private Network mapping.
|
|
83
|
+
*/
|
|
64
84
|
id: string;
|
|
65
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Private Network Project ID.
|
|
87
|
+
*/
|
|
66
88
|
projectId: string;
|
|
67
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Apple silicon server ID.
|
|
91
|
+
*/
|
|
68
92
|
serverId: string;
|
|
69
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Private Network ID.
|
|
95
|
+
*/
|
|
70
96
|
privateNetworkId: string;
|
|
71
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* ID of the VLAN associated with the Private Network.
|
|
99
|
+
*/
|
|
72
100
|
vlan?: number;
|
|
73
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Configuration status of the Private Network.
|
|
103
|
+
*/
|
|
74
104
|
status: ServerPrivateNetworkServerStatus;
|
|
75
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Private Network creation date.
|
|
107
|
+
*/
|
|
76
108
|
createdAt?: Date;
|
|
77
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Date the Private Network was last modified.
|
|
111
|
+
*/
|
|
78
112
|
updatedAt?: Date;
|
|
79
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* IPAM IP IDs of the server, if it has any.
|
|
115
|
+
*/
|
|
80
116
|
ipamIpIds: string[];
|
|
81
117
|
}
|
|
82
118
|
export interface ServerType {
|
|
83
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* CPU description.
|
|
121
|
+
*/
|
|
84
122
|
cpu?: ServerTypeCPU;
|
|
85
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Size of the local disk of the server.
|
|
125
|
+
*/
|
|
86
126
|
disk?: ServerTypeDisk;
|
|
87
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Name of the type.
|
|
129
|
+
*/
|
|
88
130
|
name: string;
|
|
89
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Size of memory available.
|
|
133
|
+
*/
|
|
90
134
|
memory?: ServerTypeMemory;
|
|
91
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Current stock.
|
|
137
|
+
*/
|
|
92
138
|
stock: ServerTypeStock;
|
|
93
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* Minimum duration of the lease in seconds (example. 3.4s).
|
|
141
|
+
*/
|
|
94
142
|
minimumLeaseDuration?: string;
|
|
95
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* GPU description.
|
|
145
|
+
*/
|
|
96
146
|
gpu?: ServerTypeGPU;
|
|
97
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* Network description.
|
|
149
|
+
*/
|
|
98
150
|
network?: ServerTypeNetwork;
|
|
99
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* The default OS for this server type.
|
|
153
|
+
*/
|
|
100
154
|
defaultOs?: OS;
|
|
101
155
|
}
|
|
102
156
|
export interface Server {
|
|
103
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* UUID of the server.
|
|
159
|
+
*/
|
|
104
160
|
id: string;
|
|
105
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* Type of the server.
|
|
163
|
+
*/
|
|
106
164
|
type: string;
|
|
107
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* Name of the server.
|
|
167
|
+
*/
|
|
108
168
|
name: string;
|
|
109
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Project this server is associated with.
|
|
171
|
+
*/
|
|
110
172
|
projectId: string;
|
|
111
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* Organization this server is associated with.
|
|
175
|
+
*/
|
|
112
176
|
organizationId: string;
|
|
113
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* IPv4 address of the server.
|
|
179
|
+
*/
|
|
114
180
|
ip: string;
|
|
115
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Vnc:// URL to access Apple Remote Desktop.
|
|
183
|
+
*/
|
|
116
184
|
vncUrl: string;
|
|
117
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* SSH Username for remote shell.
|
|
187
|
+
*/
|
|
118
188
|
sshUsername: string;
|
|
119
|
-
/**
|
|
189
|
+
/**
|
|
190
|
+
* Admin password required to execute commands.
|
|
191
|
+
*/
|
|
120
192
|
sudoPassword: string;
|
|
121
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* VNC port to use for remote desktop connection.
|
|
195
|
+
*/
|
|
122
196
|
vncPort: number;
|
|
123
197
|
/**
|
|
124
|
-
* Initially installed OS, this does not necessarily reflect the current OS
|
|
125
|
-
* version.
|
|
198
|
+
* Initially installed OS, this does not necessarily reflect the current OS version.
|
|
126
199
|
*/
|
|
127
200
|
os?: OS;
|
|
128
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Current status of the server.
|
|
203
|
+
*/
|
|
129
204
|
status: ServerStatus;
|
|
130
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Date on which the server was created.
|
|
207
|
+
*/
|
|
131
208
|
createdAt?: Date;
|
|
132
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Date on which the server was last updated.
|
|
211
|
+
*/
|
|
133
212
|
updatedAt?: Date;
|
|
134
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* Date from which the server can be deleted.
|
|
215
|
+
*/
|
|
135
216
|
deletableAt?: Date;
|
|
136
217
|
/**
|
|
137
|
-
* Set to true to mark the server for automatic deletion depending on
|
|
138
|
-
* `deletable_at` date. Set to false to cancel an existing deletion schedule.
|
|
139
|
-
* Leave unset otherwise.
|
|
218
|
+
* Set to true to mark the server for automatic deletion depending on `deletable_at` date. Set to false to cancel an existing deletion schedule. Leave unset otherwise.
|
|
140
219
|
*/
|
|
141
220
|
deletionScheduled: boolean;
|
|
142
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Zone of the server.
|
|
223
|
+
*/
|
|
143
224
|
zone: ScwZone;
|
|
144
225
|
/**
|
|
145
|
-
* Set to true once the server has completed its provisioning steps and is
|
|
146
|
-
* ready to use. Some OS configurations might require a reinstallation of the
|
|
147
|
-
* server before delivery depending on the available stock. A reinstallation
|
|
148
|
-
* after the initial delivery will not change this flag and can be tracked
|
|
149
|
-
* using the server status.
|
|
226
|
+
* Set to true once the server has completed its provisioning steps and is ready to use. Some OS configurations might require a reinstallation of the server before delivery depending on the available stock. A reinstallation after the initial delivery will not change this flag and can be tracked using the server status.
|
|
150
227
|
*/
|
|
151
228
|
delivered: boolean;
|
|
152
229
|
/**
|
|
153
|
-
* Activation status of optional Private Network feature support for this
|
|
154
|
-
* server.
|
|
230
|
+
* Activation status of optional Private Network feature support for this server.
|
|
155
231
|
*/
|
|
156
232
|
vpcStatus: ServerPrivateNetworkStatus;
|
|
157
|
-
/**
|
|
233
|
+
/**
|
|
234
|
+
* Commitment scheme applied to this server.
|
|
235
|
+
*/
|
|
158
236
|
commitment?: Commitment;
|
|
159
237
|
}
|
|
160
238
|
export interface CommitmentTypeValue {
|
|
@@ -169,84 +247,112 @@ export interface ConnectivityDiagnostic {
|
|
|
169
247
|
errorMessage: string;
|
|
170
248
|
}
|
|
171
249
|
export type CreateServerRequest = {
|
|
172
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
252
|
+
*/
|
|
173
253
|
zone?: ScwZone;
|
|
174
|
-
/**
|
|
254
|
+
/**
|
|
255
|
+
* Create a server with this given name.
|
|
256
|
+
*/
|
|
175
257
|
name?: string;
|
|
176
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Create a server in the given project ID.
|
|
260
|
+
*/
|
|
177
261
|
projectId?: string;
|
|
178
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Create a server of the given type.
|
|
264
|
+
*/
|
|
179
265
|
type: string;
|
|
180
266
|
/**
|
|
181
|
-
* Create a server & install the given os_id, when no os_id provided the
|
|
182
|
-
* default OS for this server type is chosen. Requesting a non-default OS will
|
|
183
|
-
* induce an extended delivery time.
|
|
267
|
+
* Create a server & install the given os_id, when no os_id provided the default OS for this server type is chosen. Requesting a non-default OS will induce an extended delivery time.
|
|
184
268
|
*/
|
|
185
269
|
osId?: string;
|
|
186
270
|
/**
|
|
187
|
-
* Activate the Private Network feature for this server. This feature is
|
|
188
|
-
* configured through the Apple Silicon - Private Networks API.
|
|
271
|
+
* Activate the Private Network feature for this server. This feature is configured through the Apple Silicon - Private Networks API.
|
|
189
272
|
*/
|
|
190
273
|
enableVpc: boolean;
|
|
191
274
|
/**
|
|
192
|
-
* Activate commitment for this server. If not specified, there is a 24h
|
|
193
|
-
* commitment due to Apple licensing (commitment_type `duration_24h`). It can
|
|
194
|
-
* be updated with the Update Server request. Available commitment depends on
|
|
195
|
-
* server type.
|
|
275
|
+
* Activate commitment for this server. If not specified, there is a 24h commitment due to Apple licensing (commitment_type `duration_24h`). It can be updated with the Update Server request. Available commitment depends on server type.
|
|
196
276
|
*/
|
|
197
277
|
commitmentType?: CommitmentType;
|
|
198
278
|
};
|
|
199
279
|
export type DeleteServerRequest = {
|
|
200
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
282
|
+
*/
|
|
201
283
|
zone?: ScwZone;
|
|
202
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* UUID of the server you want to delete.
|
|
286
|
+
*/
|
|
203
287
|
serverId: string;
|
|
204
288
|
};
|
|
205
289
|
export type GetConnectivityDiagnosticRequest = {
|
|
206
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
292
|
+
*/
|
|
207
293
|
zone?: ScwZone;
|
|
208
294
|
diagnosticId: string;
|
|
209
295
|
};
|
|
210
296
|
export type GetOSRequest = {
|
|
211
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
299
|
+
*/
|
|
212
300
|
zone?: ScwZone;
|
|
213
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* UUID of the OS you want to get.
|
|
303
|
+
*/
|
|
214
304
|
osId: string;
|
|
215
305
|
};
|
|
216
306
|
export type GetServerRequest = {
|
|
217
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
309
|
+
*/
|
|
218
310
|
zone?: ScwZone;
|
|
219
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* UUID of the server you want to get.
|
|
313
|
+
*/
|
|
220
314
|
serverId: string;
|
|
221
315
|
};
|
|
222
316
|
export type GetServerTypeRequest = {
|
|
223
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
319
|
+
*/
|
|
224
320
|
zone?: ScwZone;
|
|
225
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* Server type identifier.
|
|
323
|
+
*/
|
|
226
324
|
serverType: string;
|
|
227
325
|
};
|
|
228
326
|
export type ListOSRequest = {
|
|
229
|
-
/**
|
|
327
|
+
/**
|
|
328
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
329
|
+
*/
|
|
230
330
|
zone?: ScwZone;
|
|
231
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Positive integer to choose the page to return.
|
|
333
|
+
*/
|
|
232
334
|
page?: number;
|
|
233
335
|
/**
|
|
234
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
235
|
-
* return.
|
|
336
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
236
337
|
*/
|
|
237
338
|
pageSize?: number;
|
|
238
|
-
/**
|
|
339
|
+
/**
|
|
340
|
+
* List of compatible server types.
|
|
341
|
+
*/
|
|
239
342
|
serverType?: string;
|
|
240
343
|
/**
|
|
241
|
-
* Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not
|
|
242
|
-
* "12")).
|
|
344
|
+
* Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not "12")).
|
|
243
345
|
*/
|
|
244
346
|
name?: string;
|
|
245
347
|
};
|
|
246
348
|
export interface ListOSResponse {
|
|
247
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* Total number of OS.
|
|
351
|
+
*/
|
|
248
352
|
totalCount: number;
|
|
249
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* List of OS.
|
|
355
|
+
*/
|
|
250
356
|
os: OS[];
|
|
251
357
|
}
|
|
252
358
|
export interface ListServerPrivateNetworksResponse {
|
|
@@ -254,108 +360,166 @@ export interface ListServerPrivateNetworksResponse {
|
|
|
254
360
|
totalCount: number;
|
|
255
361
|
}
|
|
256
362
|
export type ListServerTypesRequest = {
|
|
257
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
365
|
+
*/
|
|
258
366
|
zone?: ScwZone;
|
|
259
367
|
};
|
|
260
368
|
export interface ListServerTypesResponse {
|
|
261
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* Available server types.
|
|
371
|
+
*/
|
|
262
372
|
serverTypes: ServerType[];
|
|
263
373
|
}
|
|
264
374
|
export type ListServersRequest = {
|
|
265
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
377
|
+
*/
|
|
266
378
|
zone?: ScwZone;
|
|
267
|
-
/**
|
|
379
|
+
/**
|
|
380
|
+
* Sort order of the returned servers.
|
|
381
|
+
*/
|
|
268
382
|
orderBy?: ListServersRequestOrderBy;
|
|
269
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* Only list servers of this project ID.
|
|
385
|
+
*/
|
|
270
386
|
projectId?: string;
|
|
271
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* Only list servers of this Organization ID.
|
|
389
|
+
*/
|
|
272
390
|
organizationId?: string;
|
|
273
|
-
/**
|
|
391
|
+
/**
|
|
392
|
+
* Positive integer to choose the page to return.
|
|
393
|
+
*/
|
|
274
394
|
page?: number;
|
|
275
395
|
/**
|
|
276
|
-
* Positive integer lower or equal to 100 to select the number of items to
|
|
277
|
-
* return.
|
|
396
|
+
* Positive integer lower or equal to 100 to select the number of items to return.
|
|
278
397
|
*/
|
|
279
398
|
pageSize?: number;
|
|
280
399
|
};
|
|
281
400
|
export interface ListServersResponse {
|
|
282
|
-
/**
|
|
401
|
+
/**
|
|
402
|
+
* Total number of servers.
|
|
403
|
+
*/
|
|
283
404
|
totalCount: number;
|
|
284
|
-
/**
|
|
405
|
+
/**
|
|
406
|
+
* Paginated returned servers.
|
|
407
|
+
*/
|
|
285
408
|
servers: Server[];
|
|
286
409
|
}
|
|
287
410
|
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
288
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
413
|
+
*/
|
|
289
414
|
zone?: ScwZone;
|
|
290
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* ID of the server.
|
|
417
|
+
*/
|
|
291
418
|
serverId: string;
|
|
292
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* ID of the Private Network.
|
|
421
|
+
*/
|
|
293
422
|
privateNetworkId: string;
|
|
294
|
-
/**
|
|
423
|
+
/**
|
|
424
|
+
* IPAM IDs of IPs to attach to the server.
|
|
425
|
+
*/
|
|
295
426
|
ipamIpIds?: string[];
|
|
296
427
|
};
|
|
297
428
|
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
|
|
298
|
-
/**
|
|
429
|
+
/**
|
|
430
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
431
|
+
*/
|
|
299
432
|
zone?: ScwZone;
|
|
300
|
-
/**
|
|
433
|
+
/**
|
|
434
|
+
* ID of the server.
|
|
435
|
+
*/
|
|
301
436
|
serverId: string;
|
|
302
|
-
/**
|
|
437
|
+
/**
|
|
438
|
+
* ID of the Private Network.
|
|
439
|
+
*/
|
|
303
440
|
privateNetworkId: string;
|
|
304
441
|
};
|
|
305
442
|
export type PrivateNetworkApiGetServerPrivateNetworkRequest = {
|
|
306
|
-
/**
|
|
443
|
+
/**
|
|
444
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
445
|
+
*/
|
|
307
446
|
zone?: ScwZone;
|
|
308
447
|
serverId: string;
|
|
309
448
|
privateNetworkId: string;
|
|
310
449
|
};
|
|
311
450
|
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
|
|
312
|
-
/**
|
|
451
|
+
/**
|
|
452
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
453
|
+
*/
|
|
313
454
|
zone?: ScwZone;
|
|
314
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* Sort order for the returned Private Networks.
|
|
457
|
+
*/
|
|
315
458
|
orderBy?: ListServerPrivateNetworksRequestOrderBy;
|
|
316
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Page number for the returned Private Networks.
|
|
461
|
+
*/
|
|
317
462
|
page?: number;
|
|
318
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* Maximum number of Private Networks per page.
|
|
465
|
+
*/
|
|
319
466
|
pageSize?: number;
|
|
320
|
-
/**
|
|
467
|
+
/**
|
|
468
|
+
* Filter Private Networks by server ID.
|
|
469
|
+
*/
|
|
321
470
|
serverId?: string;
|
|
322
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* Filter Private Networks by Private Network ID.
|
|
473
|
+
*/
|
|
323
474
|
privateNetworkId?: string;
|
|
324
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Filter Private Networks by Organization ID.
|
|
477
|
+
*/
|
|
325
478
|
organizationId?: string;
|
|
326
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* Filter Private Networks by Project ID.
|
|
481
|
+
*/
|
|
327
482
|
projectId?: string;
|
|
328
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* Filter Private Networks by IPAM IP IDs.
|
|
485
|
+
*/
|
|
329
486
|
ipamIpIds?: string[];
|
|
330
487
|
};
|
|
331
488
|
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
|
|
332
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
491
|
+
*/
|
|
333
492
|
zone?: ScwZone;
|
|
334
|
-
/**
|
|
493
|
+
/**
|
|
494
|
+
* ID of the server.
|
|
495
|
+
*/
|
|
335
496
|
serverId: string;
|
|
336
497
|
/**
|
|
337
|
-
* Object where the keys are the IDs of Private Networks and the values are
|
|
338
|
-
* arrays of IPAM IDs representing the IPs to assign to this Apple silicon
|
|
339
|
-
* server on the Private Network. If the array supplied for a Private Network
|
|
340
|
-
* is empty, the next available IP from the Private Network's CIDR block will
|
|
341
|
-
* automatically be used for attachment.
|
|
498
|
+
* Object where the keys are the IDs of Private Networks and the values are arrays of IPAM IDs representing the IPs to assign to this Apple silicon server on the Private Network. If the array supplied for a Private Network is empty, the next available IP from the Private Network's CIDR block will automatically be used for attachment.
|
|
342
499
|
*/
|
|
343
500
|
perPrivateNetworkIpamIpIds: Record<string, string[]>;
|
|
344
501
|
};
|
|
345
502
|
export type RebootServerRequest = {
|
|
346
|
-
/**
|
|
503
|
+
/**
|
|
504
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
505
|
+
*/
|
|
347
506
|
zone?: ScwZone;
|
|
348
|
-
/**
|
|
507
|
+
/**
|
|
508
|
+
* UUID of the server you want to reboot.
|
|
509
|
+
*/
|
|
349
510
|
serverId: string;
|
|
350
511
|
};
|
|
351
512
|
export type ReinstallServerRequest = {
|
|
352
|
-
/**
|
|
513
|
+
/**
|
|
514
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
515
|
+
*/
|
|
353
516
|
zone?: ScwZone;
|
|
354
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* UUID of the server you want to reinstall.
|
|
519
|
+
*/
|
|
355
520
|
serverId: string;
|
|
356
521
|
/**
|
|
357
|
-
* Reinstall the server with the target OS, when no os_id provided the default
|
|
358
|
-
* OS for the server type is used.
|
|
522
|
+
* Reinstall the server with the target OS, when no os_id provided the default OS for the server type is used.
|
|
359
523
|
*/
|
|
360
524
|
osId?: string;
|
|
361
525
|
};
|
|
@@ -363,7 +527,9 @@ export interface SetServerPrivateNetworksResponse {
|
|
|
363
527
|
serverPrivateNetworks: ServerPrivateNetwork[];
|
|
364
528
|
}
|
|
365
529
|
export type StartConnectivityDiagnosticRequest = {
|
|
366
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
532
|
+
*/
|
|
367
533
|
zone?: ScwZone;
|
|
368
534
|
serverId: string;
|
|
369
535
|
};
|
|
@@ -371,19 +537,28 @@ export interface StartConnectivityDiagnosticResponse {
|
|
|
371
537
|
diagnosticId: string;
|
|
372
538
|
}
|
|
373
539
|
export type UpdateServerRequest = {
|
|
374
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
542
|
+
*/
|
|
375
543
|
zone?: ScwZone;
|
|
376
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* UUID of the server you want to update.
|
|
546
|
+
*/
|
|
377
547
|
serverId: string;
|
|
378
|
-
/**
|
|
548
|
+
/**
|
|
549
|
+
* Updated name for your server.
|
|
550
|
+
*/
|
|
379
551
|
name?: string;
|
|
380
|
-
/**
|
|
552
|
+
/**
|
|
553
|
+
* Specify whether the server should be flagged for automatic deletion.
|
|
554
|
+
*/
|
|
381
555
|
scheduleDeletion?: boolean;
|
|
382
|
-
/**
|
|
556
|
+
/**
|
|
557
|
+
* Activate or deactivate Private Network support for this server.
|
|
558
|
+
*/
|
|
383
559
|
enableVpc?: boolean;
|
|
384
560
|
/**
|
|
385
|
-
* Change commitment. Use 'none' to automatically cancel a renewing
|
|
386
|
-
* commitment.
|
|
561
|
+
* Change commitment. Use 'none' to automatically cancel a renewing commitment.
|
|
387
562
|
*/
|
|
388
563
|
commitmentType?: CommitmentTypeValue;
|
|
389
564
|
};
|
|
@@ -9,9 +9,7 @@ class API extends api.API {
|
|
|
9
9
|
/** Lists the available regions of the API. */
|
|
10
10
|
static LOCALITIES = ["fr-par", "nl-ams"];
|
|
11
11
|
/**
|
|
12
|
-
* List events. Retrieve the list of Audit Trail events for a Scaleway
|
|
13
|
-
* Organization and/or Project. You must specify the `organization_id` and
|
|
14
|
-
* optionally, the `project_id`.
|
|
12
|
+
* List events. Retrieve the list of Audit Trail events for a Scaleway Organization and/or Project. You must specify the `organization_id` and optionally, the `project_id`.
|
|
15
13
|
*
|
|
16
14
|
* @param request - The request {@link ListEventsRequest}
|
|
17
15
|
* @returns A Promise of ListEventsResponse
|
|
@@ -44,8 +42,7 @@ class API extends api.API {
|
|
|
44
42
|
marshalling_gen.unmarshalListEventsResponse
|
|
45
43
|
);
|
|
46
44
|
/**
|
|
47
|
-
* Retrieve the list of Scaleway resources for which you have Audit Trail
|
|
48
|
-
* events.
|
|
45
|
+
* Retrieve the list of Scaleway resources for which you have Audit Trail events.
|
|
49
46
|
*
|
|
50
47
|
* @param request - The request {@link ListProductsRequest}
|
|
51
48
|
* @returns A Promise of ListProductsResponse
|