@scaleway/sdk 2.35.0 → 2.37.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/cockpit/v1/api.gen.cjs +21 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +9 -1
- package/dist/api/cockpit/v1/api.gen.js +22 -1
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +12 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +7 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +9 -1
- package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.cjs +3 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +3 -0
- package/dist/api/container/v1beta1/types.gen.d.ts +7 -0
- package/dist/api/edge_services/index.d.ts +1 -0
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +300 -0
- package/dist/api/edge_services/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +31 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +692 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/marshalling.gen.cjs +3 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +3 -0
- package/dist/api/function/v1beta1/types.gen.d.ts +7 -0
- package/dist/api/inference/v1beta1/api.gen.d.ts +151 -0
- package/dist/api/inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/inference/v1beta1/types.gen.d.ts +435 -0
- package/dist/api/inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/instance/v1/marshalling.gen.cjs +2 -2
- package/dist/api/instance/v1/marshalling.gen.js +2 -2
- package/dist/api/instance/v1/types.gen.d.ts +2 -1
- package/dist/api/lb/v1/marshalling.gen.cjs +2 -0
- package/dist/api/lb/v1/marshalling.gen.js +2 -0
- package/dist/api/lb/v1/types.gen.d.ts +16 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +19 -6
- package/dist/api/secret/v1beta1/api.gen.cjs +25 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +12 -1
- package/dist/api/secret/v1beta1/api.gen.js +26 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +12 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +2 -1
- package/dist/api/secret/v1beta1/marshalling.gen.js +12 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
- package/dist/api/vpc/v2/api.gen.cjs +57 -0
- package/dist/api/vpc/v2/api.gen.d.ts +29 -1
- package/dist/api/vpc/v2/api.gen.js +58 -1
- package/dist/api/vpc/v2/index.gen.cjs +2 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -1
- package/dist/api/vpc/v2/index.gen.js +3 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +37 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +37 -0
- package/dist/api/vpc/v2/types.gen.d.ts +78 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +8 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +5 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +8 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +2 -0
- 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
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import type { Region } from '../../../bridge';
|
|
2
|
+
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked';
|
|
3
|
+
export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
|
|
4
|
+
export type ListModelsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
|
+
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
6
|
+
export interface EndpointPrivateNetworkDetails {
|
|
7
|
+
/** ID of the Private Network. */
|
|
8
|
+
privateNetworkId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface EndpointPublicAccessDetails {
|
|
11
|
+
}
|
|
12
|
+
export interface EndpointSpecPrivateNetwork {
|
|
13
|
+
/** ID of the Private Network. */
|
|
14
|
+
privateNetworkId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface EndpointSpecPublic {
|
|
17
|
+
}
|
|
18
|
+
export interface Endpoint {
|
|
19
|
+
/** Unique identifier. */
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* For private endpoints, the URL will be accessible only from the Private
|
|
23
|
+
* Network. In addition, private endpoints will expose a CA certificate that
|
|
24
|
+
* can be used to verify the server's identity. This CA certificate can be
|
|
25
|
+
* retrieved using the `GetDeploymentCertificate` API call.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines whether the endpoint is public.
|
|
30
|
+
*
|
|
31
|
+
* One-of ('details'): at most one of 'publicAccess', 'privateNetwork' could
|
|
32
|
+
* be set.
|
|
33
|
+
*/
|
|
34
|
+
publicAccess?: EndpointPublicAccessDetails;
|
|
35
|
+
/**
|
|
36
|
+
* Details of the Private Network.
|
|
37
|
+
*
|
|
38
|
+
* One-of ('details'): at most one of 'publicAccess', 'privateNetwork' could
|
|
39
|
+
* be set.
|
|
40
|
+
*/
|
|
41
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
42
|
+
/** Defines whether the authentication is disabled. */
|
|
43
|
+
disableAuth: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface ModelS3Model {
|
|
46
|
+
s3Url: string;
|
|
47
|
+
pythonDependencies: Record<string, string>;
|
|
48
|
+
nodeType?: string;
|
|
49
|
+
tritonServerVersion?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ACLRuleRequest {
|
|
52
|
+
/**
|
|
53
|
+
* It can be specified as a single IP address or a range of IP addresses in
|
|
54
|
+
* CIDR notation.
|
|
55
|
+
*/
|
|
56
|
+
ip: string;
|
|
57
|
+
/** Description of the ACL rule. */
|
|
58
|
+
description: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ACLRule {
|
|
61
|
+
/** Unique identifier. */
|
|
62
|
+
id: string;
|
|
63
|
+
/** Allowed IP address or CIDR range. */
|
|
64
|
+
ip: string;
|
|
65
|
+
/** Description of the ACL rule. */
|
|
66
|
+
description: string;
|
|
67
|
+
}
|
|
68
|
+
export interface EndpointSpec {
|
|
69
|
+
/**
|
|
70
|
+
* Set the endpoint as public.
|
|
71
|
+
*
|
|
72
|
+
* One-of ('spec'): at most one of 'public', 'privateNetwork' could be set.
|
|
73
|
+
*/
|
|
74
|
+
public?: EndpointSpecPublic;
|
|
75
|
+
/**
|
|
76
|
+
* Private endpoints are only accessible from the Private Network.
|
|
77
|
+
*
|
|
78
|
+
* One-of ('spec'): at most one of 'public', 'privateNetwork' could be set.
|
|
79
|
+
*/
|
|
80
|
+
privateNetwork?: EndpointSpecPrivateNetwork;
|
|
81
|
+
/**
|
|
82
|
+
* By default, deployments are protected by IAM authentication. When setting
|
|
83
|
+
* this field to true, the authentication will be disabled.
|
|
84
|
+
*/
|
|
85
|
+
disableAuth: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface Deployment {
|
|
88
|
+
/** Unique identifier. */
|
|
89
|
+
id: string;
|
|
90
|
+
/** Name of the deployment. */
|
|
91
|
+
name: string;
|
|
92
|
+
/** Project ID. */
|
|
93
|
+
projectId: string;
|
|
94
|
+
/** Status of the deployment. */
|
|
95
|
+
status: DeploymentStatus;
|
|
96
|
+
/** List of tags applied to the deployment. */
|
|
97
|
+
tags: string[];
|
|
98
|
+
/** Node type of the deployment. */
|
|
99
|
+
nodeType: string;
|
|
100
|
+
/** List of endpoints. */
|
|
101
|
+
endpoints: Endpoint[];
|
|
102
|
+
/** Current size of the pool. */
|
|
103
|
+
size: number;
|
|
104
|
+
/** Defines the minimum size of the pool. */
|
|
105
|
+
minSize: number;
|
|
106
|
+
/** Defines the maximum size of the pool. */
|
|
107
|
+
maxSize: number;
|
|
108
|
+
/** Displays information if your deployment is in error state. */
|
|
109
|
+
errorMessage?: string;
|
|
110
|
+
/** The inference model used for the deployment. */
|
|
111
|
+
modelName: string;
|
|
112
|
+
/** ID of the model used for the deployment. */
|
|
113
|
+
modelId: string;
|
|
114
|
+
/** Creation date of the deployment. */
|
|
115
|
+
createdAt?: Date;
|
|
116
|
+
/** Last modification date of the deployment. */
|
|
117
|
+
updatedAt?: Date;
|
|
118
|
+
/** Region of the deployment. */
|
|
119
|
+
region: Region;
|
|
120
|
+
}
|
|
121
|
+
export interface Model {
|
|
122
|
+
/** Unique identifier. */
|
|
123
|
+
id: string;
|
|
124
|
+
/** Unique Name identifier. */
|
|
125
|
+
name: string;
|
|
126
|
+
/** Project ID. */
|
|
127
|
+
projectId: string;
|
|
128
|
+
/** Name of the model provider. */
|
|
129
|
+
provider: string;
|
|
130
|
+
/** List of tags applied to the model. */
|
|
131
|
+
tags: string[];
|
|
132
|
+
/** Purpose of the model. */
|
|
133
|
+
description: string;
|
|
134
|
+
/** Defines whether the model has an end user licence agreement. */
|
|
135
|
+
hasEula: boolean;
|
|
136
|
+
/** Creation date of the model. */
|
|
137
|
+
createdAt?: Date;
|
|
138
|
+
/** Last modification date of the model. */
|
|
139
|
+
updatedAt?: Date;
|
|
140
|
+
/** Region of the model. */
|
|
141
|
+
region: Region;
|
|
142
|
+
/**
|
|
143
|
+
* S3 URL pointing to the model source weight.
|
|
144
|
+
*
|
|
145
|
+
* One-of ('source'): at most one of 's3Model' could be set.
|
|
146
|
+
*/
|
|
147
|
+
s3Model?: ModelS3Model;
|
|
148
|
+
/** Defines whether the model is public or not. */
|
|
149
|
+
isPublic: boolean;
|
|
150
|
+
/** Names of the node types compatible with the model. */
|
|
151
|
+
compatibleNodeTypes: string[];
|
|
152
|
+
/** Quantization level of the model. */
|
|
153
|
+
quantizationLevel: string;
|
|
154
|
+
}
|
|
155
|
+
export interface NodeType {
|
|
156
|
+
/** Name of the node type. */
|
|
157
|
+
name: string;
|
|
158
|
+
/** Current stock status for the node type. */
|
|
159
|
+
stockStatus: NodeTypeStock;
|
|
160
|
+
/** Current specs of the offer. */
|
|
161
|
+
description: string;
|
|
162
|
+
/** Number of virtual CPUs. */
|
|
163
|
+
vcpus: number;
|
|
164
|
+
/** Quantity of RAM. */
|
|
165
|
+
memory: number;
|
|
166
|
+
/** Quantity of GPU RAM. */
|
|
167
|
+
vram: number;
|
|
168
|
+
/** The node type is currently disabled. */
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
/** The node type is currently in beta. */
|
|
171
|
+
beta: boolean;
|
|
172
|
+
/** Creation date of the node type. */
|
|
173
|
+
createdAt?: Date;
|
|
174
|
+
/** Last modification date of the node type. */
|
|
175
|
+
updatedAt?: Date;
|
|
176
|
+
/** Number of GPUs. */
|
|
177
|
+
gpus: number;
|
|
178
|
+
/** Region of the node type. */
|
|
179
|
+
region: Region;
|
|
180
|
+
}
|
|
181
|
+
export type AddDeploymentACLRulesRequest = {
|
|
182
|
+
/**
|
|
183
|
+
* Region to target. If none is passed will use default region from the
|
|
184
|
+
* config.
|
|
185
|
+
*/
|
|
186
|
+
region?: Region;
|
|
187
|
+
/** ID of the deployment to add ACL rules to. */
|
|
188
|
+
deploymentId: string;
|
|
189
|
+
/** List of ACL rules to add. */
|
|
190
|
+
acls?: ACLRuleRequest[];
|
|
191
|
+
};
|
|
192
|
+
export interface AddDeploymentACLRulesResponse {
|
|
193
|
+
/** List of ACL rules added. */
|
|
194
|
+
rules: ACLRule[];
|
|
195
|
+
}
|
|
196
|
+
export type CreateDeploymentRequest = {
|
|
197
|
+
/**
|
|
198
|
+
* Region to target. If none is passed will use default region from the
|
|
199
|
+
* config.
|
|
200
|
+
*/
|
|
201
|
+
region?: Region;
|
|
202
|
+
/** Name of the deployment. */
|
|
203
|
+
name?: string;
|
|
204
|
+
/** ID of the Project to create the deployment in. */
|
|
205
|
+
projectId?: string;
|
|
206
|
+
/** Name of the model to use. */
|
|
207
|
+
modelName: string;
|
|
208
|
+
/**
|
|
209
|
+
* If the model has an EULA, you must accept it before proceeding. The terms
|
|
210
|
+
* of the EULA can be retrieved using the `GetModelEula` API call.
|
|
211
|
+
*/
|
|
212
|
+
acceptEula?: boolean;
|
|
213
|
+
/** Name of the node type to use. */
|
|
214
|
+
nodeType: string;
|
|
215
|
+
/** List of tags to apply to the deployment. */
|
|
216
|
+
tags?: string[];
|
|
217
|
+
/** Defines the minimum size of the pool. */
|
|
218
|
+
minSize?: number;
|
|
219
|
+
/** Defines the maximum size of the pool. */
|
|
220
|
+
maxSize?: number;
|
|
221
|
+
/** List of endpoints to create. */
|
|
222
|
+
endpoints: EndpointSpec[];
|
|
223
|
+
};
|
|
224
|
+
export type CreateEndpointRequest = {
|
|
225
|
+
/**
|
|
226
|
+
* Region to target. If none is passed will use default region from the
|
|
227
|
+
* config.
|
|
228
|
+
*/
|
|
229
|
+
region?: Region;
|
|
230
|
+
/** ID of the deployment to create the endpoint for. */
|
|
231
|
+
deploymentId: string;
|
|
232
|
+
/** Specification of the endpoint. */
|
|
233
|
+
endpoint: EndpointSpec;
|
|
234
|
+
};
|
|
235
|
+
export type DeleteDeploymentACLRuleRequest = {
|
|
236
|
+
/**
|
|
237
|
+
* Region to target. If none is passed will use default region from the
|
|
238
|
+
* config.
|
|
239
|
+
*/
|
|
240
|
+
region?: Region;
|
|
241
|
+
/** ID of the ACL rule to delete. */
|
|
242
|
+
aclId: string;
|
|
243
|
+
};
|
|
244
|
+
export type DeleteDeploymentRequest = {
|
|
245
|
+
/**
|
|
246
|
+
* Region to target. If none is passed will use default region from the
|
|
247
|
+
* config.
|
|
248
|
+
*/
|
|
249
|
+
region?: Region;
|
|
250
|
+
/** ID of the deployment to delete. */
|
|
251
|
+
deploymentId: string;
|
|
252
|
+
};
|
|
253
|
+
export type DeleteEndpointRequest = {
|
|
254
|
+
/**
|
|
255
|
+
* Region to target. If none is passed will use default region from the
|
|
256
|
+
* config.
|
|
257
|
+
*/
|
|
258
|
+
region?: Region;
|
|
259
|
+
/** ID of the endpoint to delete. */
|
|
260
|
+
endpointId: string;
|
|
261
|
+
};
|
|
262
|
+
export interface Eula {
|
|
263
|
+
/** Content of the end user licence agreement. */
|
|
264
|
+
content: string;
|
|
265
|
+
}
|
|
266
|
+
export type GetDeploymentCertificateRequest = {
|
|
267
|
+
/**
|
|
268
|
+
* Region to target. If none is passed will use default region from the
|
|
269
|
+
* config.
|
|
270
|
+
*/
|
|
271
|
+
region?: Region;
|
|
272
|
+
deploymentId: string;
|
|
273
|
+
};
|
|
274
|
+
export type GetDeploymentRequest = {
|
|
275
|
+
/**
|
|
276
|
+
* Region to target. If none is passed will use default region from the
|
|
277
|
+
* config.
|
|
278
|
+
*/
|
|
279
|
+
region?: Region;
|
|
280
|
+
/** ID of the deployment to get. */
|
|
281
|
+
deploymentId: string;
|
|
282
|
+
};
|
|
283
|
+
export type GetModelEulaRequest = {
|
|
284
|
+
/**
|
|
285
|
+
* Region to target. If none is passed will use default region from the
|
|
286
|
+
* config.
|
|
287
|
+
*/
|
|
288
|
+
region?: Region;
|
|
289
|
+
modelId: string;
|
|
290
|
+
};
|
|
291
|
+
export type GetModelRequest = {
|
|
292
|
+
/**
|
|
293
|
+
* Region to target. If none is passed will use default region from the
|
|
294
|
+
* config.
|
|
295
|
+
*/
|
|
296
|
+
region?: Region;
|
|
297
|
+
/** ID of the model to get. */
|
|
298
|
+
modelId: string;
|
|
299
|
+
};
|
|
300
|
+
export type ListDeploymentACLRulesRequest = {
|
|
301
|
+
/**
|
|
302
|
+
* Region to target. If none is passed will use default region from the
|
|
303
|
+
* config.
|
|
304
|
+
*/
|
|
305
|
+
region?: Region;
|
|
306
|
+
/** ID of the deployment to list ACL rules for. */
|
|
307
|
+
deploymentId: string;
|
|
308
|
+
/** Page number to return. */
|
|
309
|
+
page?: number;
|
|
310
|
+
/** Maximum number of ACL rules to return per page. */
|
|
311
|
+
pageSize?: number;
|
|
312
|
+
};
|
|
313
|
+
export interface ListDeploymentACLRulesResponse {
|
|
314
|
+
/** List of ACL rules on the current page. */
|
|
315
|
+
rules: ACLRule[];
|
|
316
|
+
/** Total number of ACL rules. */
|
|
317
|
+
totalCount: number;
|
|
318
|
+
}
|
|
319
|
+
export type ListDeploymentsRequest = {
|
|
320
|
+
/**
|
|
321
|
+
* Region to target. If none is passed will use default region from the
|
|
322
|
+
* config.
|
|
323
|
+
*/
|
|
324
|
+
region?: Region;
|
|
325
|
+
/** Page number to return. */
|
|
326
|
+
page?: number;
|
|
327
|
+
/** Maximum number of deployments to return per page. */
|
|
328
|
+
pageSize?: number;
|
|
329
|
+
/** Order in which to return results. */
|
|
330
|
+
orderBy?: ListDeploymentsRequestOrderBy;
|
|
331
|
+
/** Filter by Project ID. */
|
|
332
|
+
projectId?: string;
|
|
333
|
+
/** Filter by Organization ID. */
|
|
334
|
+
organizationId?: string;
|
|
335
|
+
/** Filter by deployment name. */
|
|
336
|
+
name?: string;
|
|
337
|
+
/** Filter by tags. */
|
|
338
|
+
tags?: string[];
|
|
339
|
+
};
|
|
340
|
+
export interface ListDeploymentsResponse {
|
|
341
|
+
/** List of deployments on the current page. */
|
|
342
|
+
deployments: Deployment[];
|
|
343
|
+
/** Total number of deployments. */
|
|
344
|
+
totalCount: number;
|
|
345
|
+
}
|
|
346
|
+
export type ListModelsRequest = {
|
|
347
|
+
/**
|
|
348
|
+
* Region to target. If none is passed will use default region from the
|
|
349
|
+
* config.
|
|
350
|
+
*/
|
|
351
|
+
region?: Region;
|
|
352
|
+
/** Order in which to return results. */
|
|
353
|
+
orderBy?: ListModelsRequestOrderBy;
|
|
354
|
+
/** Page number to return. */
|
|
355
|
+
page?: number;
|
|
356
|
+
/** Maximum number of models to return per page. */
|
|
357
|
+
pageSize?: number;
|
|
358
|
+
/** Filter by Project ID. */
|
|
359
|
+
projectId?: string;
|
|
360
|
+
/** Filter by model name. */
|
|
361
|
+
name?: string;
|
|
362
|
+
/** Filter by tags. */
|
|
363
|
+
tags?: string[];
|
|
364
|
+
};
|
|
365
|
+
export interface ListModelsResponse {
|
|
366
|
+
/** List of models on the current page. */
|
|
367
|
+
models: Model[];
|
|
368
|
+
/** Total number of models. */
|
|
369
|
+
totalCount: number;
|
|
370
|
+
}
|
|
371
|
+
export type ListNodeTypesRequest = {
|
|
372
|
+
/**
|
|
373
|
+
* Region to target. If none is passed will use default region from the
|
|
374
|
+
* config.
|
|
375
|
+
*/
|
|
376
|
+
region?: Region;
|
|
377
|
+
/** Page number to return. */
|
|
378
|
+
page?: number;
|
|
379
|
+
/** Maximum number of node types to return per page. */
|
|
380
|
+
pageSize?: number;
|
|
381
|
+
/** Include disabled node types in the response. */
|
|
382
|
+
includeDisabledTypes: boolean;
|
|
383
|
+
};
|
|
384
|
+
export interface ListNodeTypesResponse {
|
|
385
|
+
/** List of node types. */
|
|
386
|
+
nodeTypes: NodeType[];
|
|
387
|
+
/** Total number of node types. */
|
|
388
|
+
totalCount: number;
|
|
389
|
+
}
|
|
390
|
+
export type SetDeploymentACLRulesRequest = {
|
|
391
|
+
/**
|
|
392
|
+
* Region to target. If none is passed will use default region from the
|
|
393
|
+
* config.
|
|
394
|
+
*/
|
|
395
|
+
region?: Region;
|
|
396
|
+
/** ID of the deployment to set ACL rules for. */
|
|
397
|
+
deploymentId: string;
|
|
398
|
+
/** All existing ACL rules will be replaced by the new ones. */
|
|
399
|
+
acls?: ACLRuleRequest[];
|
|
400
|
+
};
|
|
401
|
+
export interface SetDeploymentACLRulesResponse {
|
|
402
|
+
/** List of ACL rules that were set. */
|
|
403
|
+
rules: ACLRule[];
|
|
404
|
+
}
|
|
405
|
+
export type UpdateDeploymentRequest = {
|
|
406
|
+
/**
|
|
407
|
+
* Region to target. If none is passed will use default region from the
|
|
408
|
+
* config.
|
|
409
|
+
*/
|
|
410
|
+
region?: Region;
|
|
411
|
+
/** ID of the deployment to update. */
|
|
412
|
+
deploymentId: string;
|
|
413
|
+
/** Name of the deployment. */
|
|
414
|
+
name?: string;
|
|
415
|
+
/** List of tags to apply to the deployment. */
|
|
416
|
+
tags?: string[];
|
|
417
|
+
/** Defines the new minimum size of the pool. */
|
|
418
|
+
minSize?: number;
|
|
419
|
+
/** Defines the new maximum size of the pool. */
|
|
420
|
+
maxSize?: number;
|
|
421
|
+
};
|
|
422
|
+
export type UpdateEndpointRequest = {
|
|
423
|
+
/**
|
|
424
|
+
* Region to target. If none is passed will use default region from the
|
|
425
|
+
* config.
|
|
426
|
+
*/
|
|
427
|
+
region?: Region;
|
|
428
|
+
/** ID of the endpoint to update. */
|
|
429
|
+
endpointId: string;
|
|
430
|
+
/**
|
|
431
|
+
* By default, deployments are protected by IAM authentication. When setting
|
|
432
|
+
* this field to true, the authentication will be disabled.
|
|
433
|
+
*/
|
|
434
|
+
disableAuth?: boolean;
|
|
435
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const CreateDeploymentRequest: {
|
|
2
|
+
maxSize: {
|
|
3
|
+
greaterThanOrEqual: number;
|
|
4
|
+
lessThanOrEqual: number;
|
|
5
|
+
};
|
|
6
|
+
minSize: {
|
|
7
|
+
greaterThanOrEqual: number;
|
|
8
|
+
lessThanOrEqual: number;
|
|
9
|
+
};
|
|
10
|
+
modelName: {
|
|
11
|
+
maxLength: number;
|
|
12
|
+
minLength: number;
|
|
13
|
+
pattern: RegExp;
|
|
14
|
+
};
|
|
15
|
+
name: {
|
|
16
|
+
maxLength: number;
|
|
17
|
+
minLength: number;
|
|
18
|
+
pattern: RegExp;
|
|
19
|
+
};
|
|
20
|
+
nodeType: {
|
|
21
|
+
maxLength: number;
|
|
22
|
+
minLength: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const ListDeploymentsRequest: {
|
|
26
|
+
name: {
|
|
27
|
+
maxLength: number;
|
|
28
|
+
minLength: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const ListModelsRequest: {
|
|
32
|
+
name: {
|
|
33
|
+
maxLength: number;
|
|
34
|
+
minLength: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const UpdateDeploymentRequest: {
|
|
38
|
+
maxSize: {
|
|
39
|
+
greaterThanOrEqual: number;
|
|
40
|
+
lessThanOrEqual: number;
|
|
41
|
+
};
|
|
42
|
+
minSize: {
|
|
43
|
+
greaterThanOrEqual: number;
|
|
44
|
+
lessThanOrEqual: number;
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
maxLength: number;
|
|
48
|
+
minLength: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -36,7 +36,7 @@ const unmarshalBootscript = (data) => {
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
|
|
39
|
+
architecture: data.architecture,
|
|
40
40
|
bootcmdargs: data.bootcmdargs,
|
|
41
41
|
default: data.default,
|
|
42
42
|
dtb: data.dtb,
|
|
@@ -1399,7 +1399,7 @@ const marshalServerSummary = (request, defaults) => ({
|
|
|
1399
1399
|
name: request.name
|
|
1400
1400
|
});
|
|
1401
1401
|
const marshalBootscript = (request, defaults) => ({
|
|
1402
|
-
|
|
1402
|
+
architecture: request.architecture,
|
|
1403
1403
|
bootcmdargs: request.bootcmdargs,
|
|
1404
1404
|
default: request.default,
|
|
1405
1405
|
dtb: request.dtb,
|
|
@@ -34,7 +34,7 @@ const unmarshalBootscript = (data) => {
|
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
|
|
37
|
+
architecture: data.architecture,
|
|
38
38
|
bootcmdargs: data.bootcmdargs,
|
|
39
39
|
default: data.default,
|
|
40
40
|
dtb: data.dtb,
|
|
@@ -1397,7 +1397,7 @@ const marshalServerSummary = (request, defaults) => ({
|
|
|
1397
1397
|
name: request.name
|
|
1398
1398
|
});
|
|
1399
1399
|
const marshalBootscript = (request, defaults) => ({
|
|
1400
|
-
|
|
1400
|
+
architecture: request.architecture,
|
|
1401
1401
|
bootcmdargs: request.bootcmdargs,
|
|
1402
1402
|
default: request.default,
|
|
1403
1403
|
dtb: request.dtb,
|
|
@@ -59,7 +59,7 @@ export interface Bootscript {
|
|
|
59
59
|
/** Bootscript title. */
|
|
60
60
|
title: string;
|
|
61
61
|
/** Bootscript architecture. */
|
|
62
|
-
|
|
62
|
+
architecture: Arch;
|
|
63
63
|
/** Zone in which the bootscript is located. */
|
|
64
64
|
zone: Zone;
|
|
65
65
|
}
|
|
@@ -1797,6 +1797,7 @@ export type UpdateServerRequest = {
|
|
|
1797
1797
|
*
|
|
1798
1798
|
* - Cannot be changed if the Instance is not in `stopped` state.
|
|
1799
1799
|
* - Cannot be changed if the Instance is in a placement group.
|
|
1800
|
+
* - Cannot be changed from/to a Windows offer to/from a Linux offer.
|
|
1800
1801
|
* - Local storage requirements of the target commercial_types must be fulfilled
|
|
1801
1802
|
* (i.e. if an Instance has 80GB of local storage, it can be changed into a
|
|
1802
1803
|
* GP1-XS, which has a maximum of 150GB, but it cannot be changed into a
|
|
@@ -589,6 +589,7 @@ const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
|
589
589
|
ip_address: request.ipAddress
|
|
590
590
|
});
|
|
591
591
|
const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
592
|
+
ipam_ids: request.ipamIds,
|
|
592
593
|
...marshalling.resolveOneOf([
|
|
593
594
|
{
|
|
594
595
|
param: "static_config",
|
|
@@ -947,6 +948,7 @@ const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({
|
|
|
947
948
|
server_ip: request.serverIp
|
|
948
949
|
});
|
|
949
950
|
const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
951
|
+
ipam_ids: request.ipamIds,
|
|
950
952
|
...marshalling.resolveOneOf([
|
|
951
953
|
{
|
|
952
954
|
param: "static_config",
|
|
@@ -587,6 +587,7 @@ const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
|
587
587
|
ip_address: request.ipAddress
|
|
588
588
|
});
|
|
589
589
|
const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
590
|
+
ipam_ids: request.ipamIds,
|
|
590
591
|
...resolveOneOf([
|
|
591
592
|
{
|
|
592
593
|
param: "static_config",
|
|
@@ -945,6 +946,7 @@ const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({
|
|
|
945
946
|
server_ip: request.serverIp
|
|
946
947
|
});
|
|
947
948
|
const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
949
|
+
ipam_ids: request.ipamIds,
|
|
948
950
|
...resolveOneOf([
|
|
949
951
|
{
|
|
950
952
|
param: "static_config",
|
|
@@ -666,6 +666,14 @@ export type AttachPrivateNetworkRequest = {
|
|
|
666
666
|
* 'ipamConfig' could be set.
|
|
667
667
|
*/
|
|
668
668
|
ipamConfig?: PrivateNetworkIpamConfig;
|
|
669
|
+
/**
|
|
670
|
+
* IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this
|
|
671
|
+
* Private Network. In the future, it will be possible to specify multiple IPs
|
|
672
|
+
* in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is
|
|
673
|
+
* expected. When null, a new private IP address is created for the Load
|
|
674
|
+
* Balancer on this Private Network.
|
|
675
|
+
*/
|
|
676
|
+
ipamIds?: string[];
|
|
669
677
|
};
|
|
670
678
|
/** Add an ACL to a Load Balancer frontend. */
|
|
671
679
|
export type CreateAclRequest = {
|
|
@@ -1824,6 +1832,14 @@ export type ZonedApiAttachPrivateNetworkRequest = {
|
|
|
1824
1832
|
* 'ipamConfig' could be set.
|
|
1825
1833
|
*/
|
|
1826
1834
|
ipamConfig?: PrivateNetworkIpamConfig;
|
|
1835
|
+
/**
|
|
1836
|
+
* IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this
|
|
1837
|
+
* Private Network. In the future, it will be possible to specify multiple IPs
|
|
1838
|
+
* in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is
|
|
1839
|
+
* expected. When null, a new private IP address is created for the Load
|
|
1840
|
+
* Balancer on this Private Network.
|
|
1841
|
+
*/
|
|
1842
|
+
ipamIds?: string[];
|
|
1827
1843
|
};
|
|
1828
1844
|
/** Add an ACL to a Load Balancer frontend. */
|
|
1829
1845
|
export type ZonedApiCreateAclRequest = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Zone } from '../../../bridge';
|
|
2
2
|
export type ListImagesRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
3
|
-
export type ListLocalImagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
3
|
+
export type ListLocalImagesRequestOrderBy = 'type_asc' | 'type_desc' | 'created_at_asc' | 'created_at_desc';
|
|
4
4
|
export type ListVersionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
5
5
|
export type LocalImageType = 'unknown_type' | 'instance_local' | 'instance_sbs';
|
|
6
6
|
export interface Category {
|
|
@@ -98,25 +98,38 @@ export interface ListImagesResponse {
|
|
|
98
98
|
}
|
|
99
99
|
export type ListLocalImagesRequest = {
|
|
100
100
|
/**
|
|
101
|
+
* A positive integer lower or equal to 100 to select the number of items to
|
|
102
|
+
* display.
|
|
103
|
+
*/
|
|
104
|
+
pageSize?: number;
|
|
105
|
+
/** A positive integer to choose the page to display. */
|
|
106
|
+
page?: number;
|
|
107
|
+
/** Ordering to use. */
|
|
108
|
+
orderBy?: ListLocalImagesRequestOrderBy;
|
|
109
|
+
/** Filter local images available on this Availability Zone. */
|
|
110
|
+
zone?: Zone;
|
|
111
|
+
/**
|
|
112
|
+
* Filter by image id.
|
|
113
|
+
*
|
|
101
114
|
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
|
|
102
115
|
* be set.
|
|
103
116
|
*/
|
|
104
117
|
imageId?: string;
|
|
105
118
|
/**
|
|
119
|
+
* Filter by version id.
|
|
120
|
+
*
|
|
106
121
|
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
|
|
107
122
|
* be set.
|
|
108
123
|
*/
|
|
109
124
|
versionId?: string;
|
|
110
|
-
pageSize?: number;
|
|
111
|
-
page?: number;
|
|
112
|
-
orderBy?: ListLocalImagesRequestOrderBy;
|
|
113
125
|
/**
|
|
126
|
+
* Filter by image label.
|
|
127
|
+
*
|
|
114
128
|
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
|
|
115
129
|
* be set.
|
|
116
130
|
*/
|
|
117
131
|
imageLabel?: string;
|
|
118
|
-
/**
|
|
119
|
-
zone?: Zone;
|
|
132
|
+
/** Filter by type. */
|
|
120
133
|
type?: LocalImageType;
|
|
121
134
|
};
|
|
122
135
|
export interface ListLocalImagesResponse {
|
|
@@ -355,5 +355,30 @@ class API extends api.API {
|
|
|
355
355
|
* @returns A Promise of ListTagsResponse
|
|
356
356
|
*/
|
|
357
357
|
listTags = (request = {}) => resourcePaginator.enrichForPagination("tags", this.pageOfListTags, request);
|
|
358
|
+
pageOfListSecretTypes = (request = {}) => this.client.fetch(
|
|
359
|
+
{
|
|
360
|
+
method: "GET",
|
|
361
|
+
path: `/secret-manager/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secret-types`,
|
|
362
|
+
urlParams: marshalling.urlParams(
|
|
363
|
+
["page", request.page],
|
|
364
|
+
[
|
|
365
|
+
"page_size",
|
|
366
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
"project_id",
|
|
370
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
371
|
+
]
|
|
372
|
+
)
|
|
373
|
+
},
|
|
374
|
+
marshalling_gen.unmarshalListSecretTypesResponse
|
|
375
|
+
);
|
|
376
|
+
/**
|
|
377
|
+
* List secret types. List all secret types created within a given Project.
|
|
378
|
+
*
|
|
379
|
+
* @param request - The request {@link ListSecretTypesRequest}
|
|
380
|
+
* @returns A Promise of ListSecretTypesResponse
|
|
381
|
+
*/
|
|
382
|
+
listSecretTypes = (request = {}) => resourcePaginator.enrichForPagination("types", this.pageOfListSecretTypes, request);
|
|
358
383
|
}
|
|
359
384
|
exports.API = API;
|