@scaleway/sdk 2.70.0 → 2.71.1

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.
Files changed (95) hide show
  1. package/README.md +6 -5
  2. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
  4. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/api.gen.js +3 -1
  6. package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
  7. package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
  8. package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
  9. package/dist/api/block/v1/api.gen.cjs +6 -2
  10. package/dist/api/block/v1/api.gen.js +6 -2
  11. package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
  12. package/dist/api/block/v1alpha1/api.gen.js +6 -2
  13. package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
  14. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
  15. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
  16. package/dist/api/container/v1beta1/api.gen.cjs +18 -6
  17. package/dist/api/container/v1beta1/api.gen.js +18 -6
  18. package/dist/api/dedibox/v1/api.gen.cjs +9 -3
  19. package/dist/api/dedibox/v1/api.gen.js +9 -3
  20. package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
  21. package/dist/api/domain/v2beta1/api.gen.js +3 -1
  22. package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
  23. package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
  24. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
  25. package/dist/api/function/v1beta1/api.gen.cjs +18 -6
  26. package/dist/api/function/v1beta1/api.gen.js +18 -6
  27. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  28. package/dist/api/iam/v1alpha1/api.gen.cjs +8 -14
  29. package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -14
  30. package/dist/api/iam/v1alpha1/api.gen.js +8 -14
  31. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
  32. package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
  33. package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -1
  34. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
  35. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
  36. package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
  37. package/dist/api/inference/v1/api.gen.cjs +6 -2
  38. package/dist/api/inference/v1/api.gen.js +6 -2
  39. package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
  40. package/dist/api/inference/v1/marshalling.gen.js +4 -4
  41. package/dist/api/inference/v1/types.gen.d.ts +32 -30
  42. package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
  43. package/dist/api/inference/v1beta1/api.gen.js +3 -1
  44. package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
  45. package/dist/api/instance/v1/marshalling.gen.js +0 -1
  46. package/dist/api/instance/v1/types.gen.d.ts +0 -2
  47. package/dist/api/k8s/v1/api.gen.cjs +3 -1
  48. package/dist/api/k8s/v1/api.gen.js +3 -1
  49. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  50. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  51. package/dist/api/k8s/v1/types.gen.d.ts +5 -0
  52. package/dist/api/lb/v1/types.gen.d.ts +3 -3
  53. package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
  54. package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
  55. package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
  56. package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
  57. package/dist/api/rdb/v1/api.gen.cjs +6 -2
  58. package/dist/api/rdb/v1/api.gen.js +6 -2
  59. package/dist/api/redis/v1/api.gen.cjs +3 -1
  60. package/dist/api/redis/v1/api.gen.js +3 -1
  61. package/dist/api/registry/v1/api.gen.cjs +9 -3
  62. package/dist/api/registry/v1/api.gen.js +9 -3
  63. package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
  64. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  65. package/dist/api/secret/v1beta1/api.gen.js +32 -0
  66. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  67. package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
  68. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
  69. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
  70. package/dist/api/vpc/v2/api.gen.cjs +33 -0
  71. package/dist/api/vpc/v2/api.gen.d.ts +17 -1
  72. package/dist/api/vpc/v2/api.gen.js +34 -1
  73. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  74. package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
  75. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  76. package/dist/api/vpc/v2/marshalling.gen.js +59 -0
  77. package/dist/api/vpc/v2/types.gen.d.ts +80 -0
  78. package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
  79. package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
  80. package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
  81. package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
  82. package/dist/api/vpcgw/v1/api.gen.js +3 -1
  83. package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
  84. package/dist/api/vpcgw/v2/api.gen.js +3 -1
  85. package/dist/api/webhosting/v1/api.gen.cjs +6 -2
  86. package/dist/api/webhosting/v1/api.gen.js +6 -2
  87. package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
  88. package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
  89. package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
  90. package/dist/package.json.cjs +76 -0
  91. package/dist/package.json.js +76 -0
  92. package/dist/scw/constants.cjs +2 -1
  93. package/dist/scw/constants.d.ts +2 -2
  94. package/dist/scw/constants.js +2 -1
  95. package/package.json +2 -3
@@ -114,6 +114,14 @@ export interface CreateUserRequestMember {
114
114
  username: string;
115
115
  /** The member's password. */
116
116
  password: string;
117
+ /** The member's first name. */
118
+ firstName: string;
119
+ /** The member's last name. */
120
+ lastName: string;
121
+ /** The member's phone number. */
122
+ phoneNumber: string;
123
+ /** The member's locale. */
124
+ locale: string;
117
125
  }
118
126
  export interface Connection {
119
127
  /** Information about the connected organization. */
@@ -390,6 +398,14 @@ export interface User {
390
398
  email: string;
391
399
  /** User identifier unique to the Organization. */
392
400
  username: string;
401
+ /** First name of the user. */
402
+ firstName: string;
403
+ /** Last name of the user. */
404
+ lastName: string;
405
+ /** Phone number of the user. */
406
+ phoneNumber: string;
407
+ /** Locale of the user. */
408
+ locale: string;
393
409
  /** Date user was created. */
394
410
  createdAt?: Date;
395
411
  /** Date of last user update. */
@@ -558,7 +574,7 @@ export type CreateUserRequest = {
558
574
  /** Tags associated with the user. */
559
575
  tags?: string[];
560
576
  /**
561
- * Details of IAM member. Private Beta feature.
577
+ * Details of IAM member.
562
578
  *
563
579
  * One-of ('type'): at most one of 'email', 'member' could be set.
564
580
  */
@@ -1070,6 +1086,14 @@ export type UpdateUserRequest = {
1070
1086
  tags?: string[];
1071
1087
  /** IAM member email. */
1072
1088
  email?: string;
1089
+ /** IAM member first name. */
1090
+ firstName?: string;
1091
+ /** IAM member last name. */
1092
+ lastName?: string;
1093
+ /** IAM member phone number. */
1094
+ phoneNumber?: string;
1095
+ /** IAM member locale. */
1096
+ locale?: string;
1073
1097
  };
1074
1098
  export type UpdateUserUsernameRequest = {
1075
1099
  /** ID of the user to update. */
@@ -50,6 +50,12 @@ const CreateSSHKeyRequest = {
50
50
  }
51
51
  };
52
52
  const CreateUserRequestMember = {
53
+ firstName: {
54
+ maxLength: 64
55
+ },
56
+ lastName: {
57
+ maxLength: 64
58
+ },
53
59
  password: {
54
60
  ignoreEmpty: true,
55
61
  maxLength: 72
@@ -250,6 +256,14 @@ const UpdateUserPasswordRequest = {
250
256
  minLength: 1
251
257
  }
252
258
  };
259
+ const UpdateUserRequest = {
260
+ firstName: {
261
+ maxLength: 64
262
+ },
263
+ lastName: {
264
+ maxLength: 64
265
+ }
266
+ };
253
267
  const UpdateUserUsernameRequest = {
254
268
  username: {
255
269
  maxLength: 64,
@@ -288,5 +302,6 @@ exports.UpdateOrganizationSecuritySettingsRequest = UpdateOrganizationSecuritySe
288
302
  exports.UpdatePolicyRequest = UpdatePolicyRequest;
289
303
  exports.UpdateSSHKeyRequest = UpdateSSHKeyRequest;
290
304
  exports.UpdateUserPasswordRequest = UpdateUserPasswordRequest;
305
+ exports.UpdateUserRequest = UpdateUserRequest;
291
306
  exports.UpdateUserUsernameRequest = UpdateUserUsernameRequest;
292
307
  exports.ValidateUserMFAOTPRequest = ValidateUserMFAOTPRequest;
@@ -48,6 +48,12 @@ export declare const CreateSSHKeyRequest: {
48
48
  };
49
49
  };
50
50
  export declare const CreateUserRequestMember: {
51
+ firstName: {
52
+ maxLength: number;
53
+ };
54
+ lastName: {
55
+ maxLength: number;
56
+ };
51
57
  password: {
52
58
  ignoreEmpty: boolean;
53
59
  maxLength: number;
@@ -248,6 +254,14 @@ export declare const UpdateUserPasswordRequest: {
248
254
  minLength: number;
249
255
  };
250
256
  };
257
+ export declare const UpdateUserRequest: {
258
+ firstName: {
259
+ maxLength: number;
260
+ };
261
+ lastName: {
262
+ maxLength: number;
263
+ };
264
+ };
251
265
  export declare const UpdateUserUsernameRequest: {
252
266
  username: {
253
267
  maxLength: number;
@@ -48,6 +48,12 @@ const CreateSSHKeyRequest = {
48
48
  }
49
49
  };
50
50
  const CreateUserRequestMember = {
51
+ firstName: {
52
+ maxLength: 64
53
+ },
54
+ lastName: {
55
+ maxLength: 64
56
+ },
51
57
  password: {
52
58
  ignoreEmpty: true,
53
59
  maxLength: 72
@@ -248,6 +254,14 @@ const UpdateUserPasswordRequest = {
248
254
  minLength: 1
249
255
  }
250
256
  };
257
+ const UpdateUserRequest = {
258
+ firstName: {
259
+ maxLength: 64
260
+ },
261
+ lastName: {
262
+ maxLength: 64
263
+ }
264
+ };
251
265
  const UpdateUserUsernameRequest = {
252
266
  username: {
253
267
  maxLength: 64,
@@ -287,6 +301,7 @@ export {
287
301
  UpdatePolicyRequest,
288
302
  UpdateSSHKeyRequest,
289
303
  UpdateUserPasswordRequest,
304
+ UpdateUserRequest,
290
305
  UpdateUserUsernameRequest,
291
306
  ValidateUserMFAOTPRequest
292
307
  };
@@ -60,7 +60,9 @@ class API extends api.API {
60
60
  * @returns A Promise of Deployment
61
61
  */
62
62
  waitForDeployment = (request, options) => intervalRetrier.waitForResource(
63
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
63
+ options?.stop ?? ((res) => Promise.resolve(
64
+ !content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
65
+ )),
64
66
  this.getDeployment,
65
67
  request,
66
68
  options
@@ -215,7 +217,9 @@ class API extends api.API {
215
217
  * @returns A Promise of Model
216
218
  */
217
219
  waitForModel = (request, options) => intervalRetrier.waitForResource(
218
- options?.stop ?? ((res) => Promise.resolve(!content_gen.MODEL_TRANSIENT_STATUSES.includes(res.status))),
220
+ options?.stop ?? ((res) => Promise.resolve(
221
+ !content_gen.MODEL_TRANSIENT_STATUSES.includes(res.status)
222
+ )),
219
223
  this.getModel,
220
224
  request,
221
225
  options
@@ -58,7 +58,9 @@ class API extends API$1 {
58
58
  * @returns A Promise of Deployment
59
59
  */
60
60
  waitForDeployment = (request, options) => waitForResource(
61
- options?.stop ?? ((res) => Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
61
+ options?.stop ?? ((res) => Promise.resolve(
62
+ !DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
63
+ )),
62
64
  this.getDeployment,
63
65
  request,
64
66
  options
@@ -213,7 +215,9 @@ class API extends API$1 {
213
215
  * @returns A Promise of Model
214
216
  */
215
217
  waitForModel = (request, options) => waitForResource(
216
- options?.stop ?? ((res) => Promise.resolve(!MODEL_TRANSIENT_STATUSES.includes(res.status))),
218
+ options?.stop ?? ((res) => Promise.resolve(
219
+ !MODEL_TRANSIENT_STATUSES.includes(res.status)
220
+ )),
217
221
  this.getModel,
218
222
  request,
219
223
  options
@@ -79,8 +79,7 @@ const unmarshalDeploymentQuantization = (data) => {
79
79
  );
80
80
  }
81
81
  return {
82
- bits: data.bits,
83
- enabled: data.enabled
82
+ bits: data.bits
84
83
  };
85
84
  };
86
85
  const unmarshalDeployment = (data) => {
@@ -194,8 +193,7 @@ const marshalEndpointPrivateNetworkDetails = (request, defaults) => ({
194
193
  });
195
194
  const marshalEndpointPublicNetworkDetails = (request, defaults) => ({});
196
195
  const marshalDeploymentQuantization = (request, defaults) => ({
197
- bits: request.bits,
198
- enabled: request.enabled
196
+ bits: request.bits
199
197
  });
200
198
  const marshalEndpointSpec = (request, defaults) => ({
201
199
  disable_auth: request.disableAuth,
@@ -240,7 +238,9 @@ const marshalCreateModelRequest = (request, defaults) => ({
240
238
  const marshalUpdateDeploymentRequest = (request, defaults) => ({
241
239
  max_size: request.maxSize,
242
240
  min_size: request.minSize,
241
+ model_id: request.modelId,
243
242
  name: request.name,
243
+ quantization: request.quantization !== void 0 ? marshalDeploymentQuantization(request.quantization) : void 0,
244
244
  tags: request.tags
245
245
  });
246
246
  const marshalUpdateEndpointRequest = (request, defaults) => ({
@@ -77,8 +77,7 @@ const unmarshalDeploymentQuantization = (data) => {
77
77
  );
78
78
  }
79
79
  return {
80
- bits: data.bits,
81
- enabled: data.enabled
80
+ bits: data.bits
82
81
  };
83
82
  };
84
83
  const unmarshalDeployment = (data) => {
@@ -192,8 +191,7 @@ const marshalEndpointPrivateNetworkDetails = (request, defaults) => ({
192
191
  });
193
192
  const marshalEndpointPublicNetworkDetails = (request, defaults) => ({});
194
193
  const marshalDeploymentQuantization = (request, defaults) => ({
195
- bits: request.bits,
196
- enabled: request.enabled
194
+ bits: request.bits
197
195
  });
198
196
  const marshalEndpointSpec = (request, defaults) => ({
199
197
  disable_auth: request.disableAuth,
@@ -238,7 +236,9 @@ const marshalCreateModelRequest = (request, defaults) => ({
238
236
  const marshalUpdateDeploymentRequest = (request, defaults) => ({
239
237
  max_size: request.maxSize,
240
238
  min_size: request.minSize,
239
+ model_id: request.modelId,
241
240
  name: request.name,
241
+ quantization: request.quantization !== void 0 ? marshalDeploymentQuantization(request.quantization) : void 0,
242
242
  tags: request.tags
243
243
  });
244
244
  const marshalUpdateEndpointRequest = (request, defaults) => ({
@@ -27,8 +27,6 @@ export interface ModelSupportedNode {
27
27
  quantizations: ModelSupportedQuantization[];
28
28
  }
29
29
  export interface DeploymentQuantization {
30
- /** Whether to enable quantization for this deployment. */
31
- enabled: boolean;
32
30
  /**
33
31
  * The number of bits each model parameter should be quantized to. The
34
32
  * quantization method is chosen based on this value.
@@ -184,7 +182,7 @@ export interface NodeType {
184
182
  /** Region of the node type. */
185
183
  region: ScwRegion;
186
184
  }
187
- export interface CreateDeploymentRequest {
185
+ export type CreateDeploymentRequest = {
188
186
  /**
189
187
  * Region to target. If none is passed will use default region from the
190
188
  * config.
@@ -213,8 +211,8 @@ export interface CreateDeploymentRequest {
213
211
  endpoints: EndpointSpec[];
214
212
  /** Quantization settings to apply to this deployment. */
215
213
  quantization?: DeploymentQuantization;
216
- }
217
- export interface CreateEndpointRequest {
214
+ };
215
+ export type CreateEndpointRequest = {
218
216
  /**
219
217
  * Region to target. If none is passed will use default region from the
220
218
  * config.
@@ -224,8 +222,8 @@ export interface CreateEndpointRequest {
224
222
  deploymentId: string;
225
223
  /** Specification of the endpoint. */
226
224
  endpoint: EndpointSpec;
227
- }
228
- export interface CreateModelRequest {
225
+ };
226
+ export type CreateModelRequest = {
229
227
  /**
230
228
  * Region to target. If none is passed will use default region from the
231
229
  * config.
@@ -237,8 +235,8 @@ export interface CreateModelRequest {
237
235
  projectId?: string;
238
236
  /** Where to import the model from. */
239
237
  source: ModelSource;
240
- }
241
- export interface DeleteDeploymentRequest {
238
+ };
239
+ export type DeleteDeploymentRequest = {
242
240
  /**
243
241
  * Region to target. If none is passed will use default region from the
244
242
  * config.
@@ -246,8 +244,8 @@ export interface DeleteDeploymentRequest {
246
244
  region?: ScwRegion;
247
245
  /** ID of the deployment to delete. */
248
246
  deploymentId: string;
249
- }
250
- export interface DeleteEndpointRequest {
247
+ };
248
+ export type DeleteEndpointRequest = {
251
249
  /**
252
250
  * Region to target. If none is passed will use default region from the
253
251
  * config.
@@ -255,8 +253,8 @@ export interface DeleteEndpointRequest {
255
253
  region?: ScwRegion;
256
254
  /** ID of the endpoint to delete. */
257
255
  endpointId: string;
258
- }
259
- export interface DeleteModelRequest {
256
+ };
257
+ export type DeleteModelRequest = {
260
258
  /**
261
259
  * Region to target. If none is passed will use default region from the
262
260
  * config.
@@ -264,16 +262,16 @@ export interface DeleteModelRequest {
264
262
  region?: ScwRegion;
265
263
  /** ID of the model to delete. */
266
264
  modelId: string;
267
- }
268
- export interface GetDeploymentCertificateRequest {
265
+ };
266
+ export type GetDeploymentCertificateRequest = {
269
267
  /**
270
268
  * Region to target. If none is passed will use default region from the
271
269
  * config.
272
270
  */
273
271
  region?: ScwRegion;
274
272
  deploymentId: string;
275
- }
276
- export interface GetDeploymentRequest {
273
+ };
274
+ export type GetDeploymentRequest = {
277
275
  /**
278
276
  * Region to target. If none is passed will use default region from the
279
277
  * config.
@@ -281,8 +279,8 @@ export interface GetDeploymentRequest {
281
279
  region?: ScwRegion;
282
280
  /** ID of the deployment to get. */
283
281
  deploymentId: string;
284
- }
285
- export interface GetModelRequest {
282
+ };
283
+ export type GetModelRequest = {
286
284
  /**
287
285
  * Region to target. If none is passed will use default region from the
288
286
  * config.
@@ -290,8 +288,8 @@ export interface GetModelRequest {
290
288
  region?: ScwRegion;
291
289
  /** ID of the model to get. */
292
290
  modelId: string;
293
- }
294
- export interface ListDeploymentsRequest {
291
+ };
292
+ export type ListDeploymentsRequest = {
295
293
  /**
296
294
  * Region to target. If none is passed will use default region from the
297
295
  * config.
@@ -311,14 +309,14 @@ export interface ListDeploymentsRequest {
311
309
  name?: string;
312
310
  /** Filter by tags. */
313
311
  tags?: string[];
314
- }
312
+ };
315
313
  export interface ListDeploymentsResponse {
316
314
  /** List of deployments on the current page. */
317
315
  deployments: Deployment[];
318
316
  /** Total number of deployments. */
319
317
  totalCount: number;
320
318
  }
321
- export interface ListModelsRequest {
319
+ export type ListModelsRequest = {
322
320
  /**
323
321
  * Region to target. If none is passed will use default region from the
324
322
  * config.
@@ -336,14 +334,14 @@ export interface ListModelsRequest {
336
334
  name?: string;
337
335
  /** Filter by tags. */
338
336
  tags?: string[];
339
- }
337
+ };
340
338
  export interface ListModelsResponse {
341
339
  /** List of models on the current page. */
342
340
  models: Model[];
343
341
  /** Total number of models. */
344
342
  totalCount: number;
345
343
  }
346
- export interface ListNodeTypesRequest {
344
+ export type ListNodeTypesRequest = {
347
345
  /**
348
346
  * Region to target. If none is passed will use default region from the
349
347
  * config.
@@ -355,14 +353,14 @@ export interface ListNodeTypesRequest {
355
353
  pageSize?: number;
356
354
  /** Include disabled node types in the response. */
357
355
  includeDisabledTypes: boolean;
358
- }
356
+ };
359
357
  export interface ListNodeTypesResponse {
360
358
  /** List of node types. */
361
359
  nodeTypes: NodeType[];
362
360
  /** Total number of node types. */
363
361
  totalCount: number;
364
362
  }
365
- export interface UpdateDeploymentRequest {
363
+ export type UpdateDeploymentRequest = {
366
364
  /**
367
365
  * Region to target. If none is passed will use default region from the
368
366
  * config.
@@ -378,8 +376,12 @@ export interface UpdateDeploymentRequest {
378
376
  minSize?: number;
379
377
  /** Defines the new maximum size of the pool. */
380
378
  maxSize?: number;
381
- }
382
- export interface UpdateEndpointRequest {
379
+ /** Id of the model to set to the deployment. */
380
+ modelId?: string;
381
+ /** Quantization to use to the deployment. */
382
+ quantization?: DeploymentQuantization;
383
+ };
384
+ export type UpdateEndpointRequest = {
383
385
  /**
384
386
  * Region to target. If none is passed will use default region from the
385
387
  * config.
@@ -392,4 +394,4 @@ export interface UpdateEndpointRequest {
392
394
  * this field to true, the authentication will be disabled.
393
395
  */
394
396
  disableAuth?: boolean;
395
- }
397
+ };
@@ -60,7 +60,9 @@ class API extends api.API {
60
60
  * @returns A Promise of Deployment
61
61
  */
62
62
  waitForDeployment = (request, options) => intervalRetrier.waitForResource(
63
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
63
+ options?.stop ?? ((res) => Promise.resolve(
64
+ !content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
65
+ )),
64
66
  this.getDeployment,
65
67
  request,
66
68
  options
@@ -58,7 +58,9 @@ class API extends API$1 {
58
58
  * @returns A Promise of Deployment
59
59
  */
60
60
  waitForDeployment = (request, options) => waitForResource(
61
- options?.stop ?? ((res) => Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
61
+ options?.stop ?? ((res) => Promise.resolve(
62
+ !DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
63
+ )),
62
64
  this.getDeployment,
63
65
  request,
64
66
  options
@@ -856,7 +856,6 @@ const unmarshalServerType = (data) => {
856
856
  return {
857
857
  altNames: data.alt_names,
858
858
  arch: data.arch,
859
- baremetal: data.baremetal,
860
859
  blockBandwidth: data.block_bandwidth,
861
860
  capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
862
861
  endOfService: data.end_of_service,
@@ -854,7 +854,6 @@ const unmarshalServerType = (data) => {
854
854
  return {
855
855
  altNames: data.alt_names,
856
856
  arch: data.arch,
857
- baremetal: data.baremetal,
858
857
  blockBandwidth: data.block_bandwidth,
859
858
  capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
860
859
  endOfService: data.end_of_service,
@@ -557,8 +557,6 @@ export interface ServerType {
557
557
  gpuInfo?: ServerTypeGPUInfo;
558
558
  /** CPU architecture. */
559
559
  arch: Arch;
560
- /** True if it is a baremetal Instance. */
561
- baremetal: boolean;
562
560
  /** Network available for the Instance. */
563
561
  network?: ServerTypeNetwork;
564
562
  /** Capabilities. */
@@ -83,7 +83,9 @@ class API extends api.API {
83
83
  * @returns A Promise of Cluster
84
84
  */
85
85
  waitForCluster = (request, options) => intervalRetrier.waitForResource(
86
- options?.stop ?? ((res) => Promise.resolve(!content_gen.CLUSTER_TRANSIENT_STATUSES.includes(res.status))),
86
+ options?.stop ?? ((res) => Promise.resolve(
87
+ !content_gen.CLUSTER_TRANSIENT_STATUSES.includes(res.status)
88
+ )),
87
89
  this.getCluster,
88
90
  request,
89
91
  options
@@ -81,7 +81,9 @@ class API extends API$1 {
81
81
  * @returns A Promise of Cluster
82
82
  */
83
83
  waitForCluster = (request, options) => waitForResource(
84
- options?.stop ?? ((res) => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))),
84
+ options?.stop ?? ((res) => Promise.resolve(
85
+ !CLUSTER_TRANSIENT_STATUSES.includes(res.status)
86
+ )),
85
87
  this.getCluster,
86
88
  request,
87
89
  options
@@ -140,6 +140,7 @@ const unmarshalCluster = (data) => {
140
140
  description: data.description,
141
141
  dnsWildcard: data.dns_wildcard,
142
142
  featureGates: data.feature_gates,
143
+ iamNodesGroupId: data.iam_nodes_group_id,
143
144
  id: data.id,
144
145
  name: data.name,
145
146
  openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
@@ -138,6 +138,7 @@ const unmarshalCluster = (data) => {
138
138
  description: data.description,
139
139
  dnsWildcard: data.dns_wildcard,
140
140
  featureGates: data.feature_gates,
141
+ iamNodesGroupId: data.iam_nodes_group_id,
141
142
  id: data.id,
142
143
  name: data.name,
143
144
  openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
@@ -493,6 +493,11 @@ export interface Cluster {
493
493
  sbsCsiEnabled?: boolean;
494
494
  /** @deprecated Defines whether ACL is available on the cluster. */
495
495
  aclAvailable?: boolean;
496
+ /**
497
+ * IAM group that nodes are members of (this field might be empty during early
498
+ * stage of cluster creation).
499
+ */
500
+ iamNodesGroupId: string;
496
501
  }
497
502
  export interface Node {
498
503
  /** Node ID. */
@@ -35,7 +35,7 @@ export interface SubscriberWebhookConfig {
35
35
  uri: string;
36
36
  }
37
37
  export interface HealthCheckHttpConfig {
38
- /** The HTTP URI to use when performing a health check on backend servers. */
38
+ /** The HTTP path to use when performing a health check on backend servers. */
39
39
  uri: string;
40
40
  /** The HTTP method used when performing a health check on backend servers. */
41
41
  method: string;
@@ -51,7 +51,7 @@ export interface HealthCheckHttpConfig {
51
51
  hostHeader: string;
52
52
  }
53
53
  export interface HealthCheckHttpsConfig {
54
- /** The HTTP URI to use when performing a health check on backend servers. */
54
+ /** The HTTP path to use when performing a health check on backend servers. */
55
55
  uri: string;
56
56
  /** The HTTP method used when performing a health check on backend servers. */
57
57
  method: string;
@@ -477,7 +477,7 @@ export interface RouteMatch {
477
477
  */
478
478
  sni?: string;
479
479
  /**
480
- * Value to match in the HTTP Host request header from an incoming connection.
480
+ * Value to match in the HTTP Host request header from an incoming request.
481
481
  * This field should be set for routes on HTTP Load Balancers.
482
482
  *
483
483
  * One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
@@ -113,7 +113,9 @@ class API extends api.API {
113
113
  * @returns A Promise of Instance
114
114
  */
115
115
  waitForInstance = (request, options) => intervalRetrier.waitForResource(
116
- options?.stop ?? ((res) => Promise.resolve(!content_gen.INSTANCE_TRANSIENT_STATUSES.includes(res.status))),
116
+ options?.stop ?? ((res) => Promise.resolve(
117
+ !content_gen.INSTANCE_TRANSIENT_STATUSES.includes(res.status)
118
+ )),
117
119
  this.getInstance,
118
120
  request,
119
121
  options
@@ -243,7 +245,9 @@ class API extends api.API {
243
245
  * @returns A Promise of Snapshot
244
246
  */
245
247
  waitForSnapshot = (request, options) => intervalRetrier.waitForResource(
246
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
248
+ options?.stop ?? ((res) => Promise.resolve(
249
+ !content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
250
+ )),
247
251
  this.getSnapshot,
248
252
  request,
249
253
  options
@@ -111,7 +111,9 @@ class API extends API$1 {
111
111
  * @returns A Promise of Instance
112
112
  */
113
113
  waitForInstance = (request, options) => waitForResource(
114
- options?.stop ?? ((res) => Promise.resolve(!INSTANCE_TRANSIENT_STATUSES.includes(res.status))),
114
+ options?.stop ?? ((res) => Promise.resolve(
115
+ !INSTANCE_TRANSIENT_STATUSES.includes(res.status)
116
+ )),
115
117
  this.getInstance,
116
118
  request,
117
119
  options
@@ -241,7 +243,9 @@ class API extends API$1 {
241
243
  * @returns A Promise of Snapshot
242
244
  */
243
245
  waitForSnapshot = (request, options) => waitForResource(
244
- options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
246
+ options?.stop ?? ((res) => Promise.resolve(
247
+ !SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
248
+ )),
245
249
  this.getSnapshot,
246
250
  request,
247
251
  options
@@ -230,7 +230,9 @@ class API extends api.API {
230
230
  * @returns A Promise of Session
231
231
  */
232
232
  waitForSession = (request, options) => intervalRetrier.waitForResource(
233
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SESSION_TRANSIENT_STATUSES.includes(res.status))),
233
+ options?.stop ?? ((res) => Promise.resolve(
234
+ !content_gen.SESSION_TRANSIENT_STATUSES.includes(res.status)
235
+ )),
234
236
  this.getSession,
235
237
  request,
236
238
  options
@@ -380,7 +382,9 @@ class API extends api.API {
380
382
  * @returns A Promise of Process
381
383
  */
382
384
  waitForProcess = (request, options) => intervalRetrier.waitForResource(
383
- options?.stop ?? ((res) => Promise.resolve(!content_gen.PROCESS_TRANSIENT_STATUSES.includes(res.status))),
385
+ options?.stop ?? ((res) => Promise.resolve(
386
+ !content_gen.PROCESS_TRANSIENT_STATUSES.includes(res.status)
387
+ )),
384
388
  this.getProcess,
385
389
  request,
386
390
  options
@@ -228,7 +228,9 @@ class API extends API$1 {
228
228
  * @returns A Promise of Session
229
229
  */
230
230
  waitForSession = (request, options) => waitForResource(
231
- options?.stop ?? ((res) => Promise.resolve(!SESSION_TRANSIENT_STATUSES.includes(res.status))),
231
+ options?.stop ?? ((res) => Promise.resolve(
232
+ !SESSION_TRANSIENT_STATUSES.includes(res.status)
233
+ )),
232
234
  this.getSession,
233
235
  request,
234
236
  options
@@ -378,7 +380,9 @@ class API extends API$1 {
378
380
  * @returns A Promise of Process
379
381
  */
380
382
  waitForProcess = (request, options) => waitForResource(
381
- options?.stop ?? ((res) => Promise.resolve(!PROCESS_TRANSIENT_STATUSES.includes(res.status))),
383
+ options?.stop ?? ((res) => Promise.resolve(
384
+ !PROCESS_TRANSIENT_STATUSES.includes(res.status)
385
+ )),
382
386
  this.getProcess,
383
387
  request,
384
388
  options