@scaleway/sdk 1.5.0 → 1.6.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.
Files changed (35) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
  2. package/dist/api/baremetal/v1/api.gen.js +2 -2
  3. package/dist/api/cockpit/v1beta1/api.gen.js +51 -1
  4. package/dist/api/cockpit/v1beta1/marshalling.gen.js +44 -1
  5. package/dist/api/container/v1beta1/api.gen.js +1 -1
  6. package/dist/api/flexibleip/v1alpha1/api.gen.js +1 -1
  7. package/dist/api/function/v1beta1/api.gen.js +1 -1
  8. package/dist/api/function/v1beta1/marshalling.gen.js +0 -20
  9. package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -10
  10. package/dist/api/instance/v1/api.gen.js +86 -67
  11. package/dist/api/iot/v1/api.gen.js +1 -1
  12. package/dist/api/k8s/v1/api.gen.js +1 -1
  13. package/dist/api/lb/v1/api.gen.js +2 -2
  14. package/dist/api/lb/v1/marshalling.gen.js +33 -19
  15. package/dist/api/mnq/v1alpha1/api.gen.js +1 -1
  16. package/dist/api/rdb/v1/api.gen.js +1 -1
  17. package/dist/api/redis/v1/api.gen.js +1 -1
  18. package/dist/api/redis/v1/marshalling.gen.js +2 -0
  19. package/dist/api/registry/v1/api.gen.js +1 -1
  20. package/dist/api/secret/v1alpha1/api.gen.js +1 -1
  21. package/dist/api/secret/v1alpha1/marshalling.gen.js +14 -2
  22. package/dist/api/tem/v1alpha1/api.gen.js +1 -1
  23. package/dist/api/vpc/v1/api.gen.js +2 -2
  24. package/dist/api/vpcgw/v1/api.gen.js +1 -1
  25. package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
  26. package/dist/index.cjs +276 -121
  27. package/dist/index.d.ts +669 -504
  28. package/dist/internal/async/interval-retrier.js +6 -0
  29. package/dist/internal/logger/level-resolver.js +3 -3
  30. package/dist/scw/client-ini-factory.js +6 -0
  31. package/dist/scw/client-ini-profile.js +18 -0
  32. package/dist/scw/client-settings.js +12 -0
  33. package/dist/scw/constants.js +1 -1
  34. package/dist/scw/errors/standard/quotas-exceeded-error.js +6 -0
  35. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  // eslint-disable-next-line eslint-comments/disable-enable-pair
4
4
  /* eslint-disable @typescript-eslint/naming-convention */
5
- let LevelResolver;
6
- (function (LevelResolver) {
5
+ let LevelResolver = /*#__PURE__*/function (LevelResolver) {
7
6
  LevelResolver[LevelResolver["silent"] = 0] = "silent";
8
7
  LevelResolver[LevelResolver["error"] = 1] = "error";
9
8
  LevelResolver[LevelResolver["warn"] = 2] = "warn";
10
9
  LevelResolver[LevelResolver["info"] = 3] = "info";
11
10
  LevelResolver[LevelResolver["debug"] = 4] = "debug";
12
- })(LevelResolver || (LevelResolver = {}));
11
+ return LevelResolver;
12
+ }({});
13
13
  const shouldLog = (currentLevel, level) => LevelResolver[level] <= currentLevel;
14
14
 
15
15
  /**
@@ -138,6 +138,24 @@ const isURL = str => {
138
138
  return url.protocol === 'http:' || url.protocol === 'https:';
139
139
  };
140
140
 
141
+ /**
142
+ * Holds access key and secret key.
143
+ *
144
+ * @public
145
+ */
146
+
147
+ /**
148
+ * Holds default values of a Scaleway profile.
149
+ *
150
+ * @public
151
+ */
152
+
153
+ /**
154
+ * Holds values of a Scaleway profile.
155
+ *
156
+ * @public
157
+ */
158
+
141
159
  /**
142
160
  * Verifies that the payload contains both the accessKey and the secretKey.
143
161
  *
@@ -232,6 +250,12 @@ const obfuscateAuthHeadersEntry = ([name, value]) => {
232
250
  return [name, value];
233
251
  };
234
252
 
253
+ /**
254
+ * A factory to build {@link Settings}.
255
+ *
256
+ * @public
257
+ */
258
+
235
259
  /**
236
260
  * Instantiates the SDK from a configuration {@link Profile}.
237
261
  *
@@ -327,6 +351,18 @@ const withUserAgentSuffix = userAgent => settings => ({
327
351
  userAgent: settings.userAgent ? `${settings.userAgent} ${userAgent}` : userAgent
328
352
  });
329
353
 
354
+ /**
355
+ * Holds default values of settings.
356
+ *
357
+ * @public
358
+ */
359
+
360
+ /**
361
+ * Settings hold the values of all client options.
362
+ *
363
+ * @public
364
+ */
365
+
330
366
  /**
331
367
  * Validates the content of a {@link Settings} object.
332
368
  *
@@ -390,7 +426,7 @@ const assertValidSettings = obj => {
390
426
  }
391
427
  };
392
428
 
393
- const version = 'v1.4.0';
429
+ const version = 'v1.5.0';
394
430
  const userAgent = `scaleway-sdk-js/${version}`;
395
431
 
396
432
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -692,6 +728,12 @@ class InvalidArgumentsError extends ScalewayError {
692
728
  * @public
693
729
  */
694
730
 
731
+ /**
732
+ * Details of an {@link QuotasExceededError} error.
733
+ *
734
+ * @public
735
+ */
736
+
695
737
  /**
696
738
  * Build the default message for {@link QuotasExceededError}.
697
739
  *
@@ -1504,6 +1546,12 @@ const tryAtIntervals = async (retry, strategy, timeout = DEFAULT_TIMEOUT_SECONDS
1504
1546
  * @public
1505
1547
  */
1506
1548
 
1549
+ /**
1550
+ * The options to wait until a resource is ready.
1551
+ *
1552
+ * @public
1553
+ */
1554
+
1507
1555
  /**
1508
1556
  * Fetches resource several times until an expected condition is reached, timeouts, or throws an exception.
1509
1557
  *
@@ -3425,6 +3473,20 @@ const unmarshalGrafanaUser = data => {
3425
3473
  role: data.role
3426
3474
  };
3427
3475
  };
3476
+ const unmarshalPlan = data => {
3477
+ if (!isJSONObject(data)) {
3478
+ throw new TypeError(`Unmarshalling the type 'Plan' failed as data isn't a dictionary.`);
3479
+ }
3480
+ return {
3481
+ id: data.id,
3482
+ logsIngestionPrice: data.logs_ingestion_price,
3483
+ name: data.name,
3484
+ retentionLogsInterval: data.retention_logs_interval,
3485
+ retentionMetricsInterval: data.retention_metrics_interval,
3486
+ retentionPrice: data.retention_price,
3487
+ sampleIngestionPrice: data.sample_ingestion_price
3488
+ };
3489
+ };
3428
3490
  const unmarshalToken$2 = data => {
3429
3491
  if (!isJSONObject(data)) {
3430
3492
  throw new TypeError(`Unmarshalling the type 'Token' failed as data isn't a dictionary.`);
@@ -3447,11 +3509,20 @@ const unmarshalCockpit = data => {
3447
3509
  createdAt: unmarshalDate(data.created_at),
3448
3510
  endpoints: data.endpoints ? unmarshalCockpitEndpoints(data.endpoints) : undefined,
3449
3511
  managedAlertsEnabled: data.managed_alerts_enabled,
3512
+ plan: data.plan ? unmarshalPlan(data.plan) : undefined,
3450
3513
  projectId: data.project_id,
3451
3514
  status: data.status,
3452
3515
  updatedAt: unmarshalDate(data.updated_at)
3453
3516
  };
3454
3517
  };
3518
+ const unmarshalCockpitMetrics = data => {
3519
+ if (!isJSONObject(data)) {
3520
+ throw new TypeError(`Unmarshalling the type 'CockpitMetrics' failed as data isn't a dictionary.`);
3521
+ }
3522
+ return {
3523
+ timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
3524
+ };
3525
+ };
3455
3526
  const unmarshalListContactPointsResponse = data => {
3456
3527
  if (!isJSONObject(data)) {
3457
3528
  throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
@@ -3472,6 +3543,15 @@ const unmarshalListGrafanaUsersResponse = data => {
3472
3543
  totalCount: data.total_count
3473
3544
  };
3474
3545
  };
3546
+ const unmarshalListPlansResponse = data => {
3547
+ if (!isJSONObject(data)) {
3548
+ throw new TypeError(`Unmarshalling the type 'ListPlansResponse' failed as data isn't a dictionary.`);
3549
+ }
3550
+ return {
3551
+ plans: unmarshalArrayOfObject(data.plans, unmarshalPlan),
3552
+ totalCount: data.total_count
3553
+ };
3554
+ };
3475
3555
  const unmarshalListTokensResponse$2 = data => {
3476
3556
  if (!isJSONObject(data)) {
3477
3557
  throw new TypeError(`Unmarshalling the type 'ListTokensResponse' failed as data isn't a dictionary.`);
@@ -3481,6 +3561,12 @@ const unmarshalListTokensResponse$2 = data => {
3481
3561
  totalCount: data.total_count
3482
3562
  };
3483
3563
  };
3564
+ const unmarshalSelectPlanResponse = data => {
3565
+ if (!isJSONObject(data)) {
3566
+ throw new TypeError(`Unmarshalling the type 'SelectPlanResponse' failed as data isn't a dictionary.`);
3567
+ }
3568
+ return {};
3569
+ };
3484
3570
  const marshalContactPointEmail = (request, defaults) => ({
3485
3571
  to: request.to
3486
3572
  });
@@ -3538,6 +3624,10 @@ const marshalResetCockpitGrafanaRequest = (request, defaults) => ({
3538
3624
  const marshalResetGrafanaUserPasswordRequest = (request, defaults) => ({
3539
3625
  project_id: request.projectId ?? defaults.defaultProjectId
3540
3626
  });
3627
+ const marshalSelectPlanRequest = (request, defaults) => ({
3628
+ plan_id: request.planId,
3629
+ project_id: request.projectId ?? defaults.defaultProjectId
3630
+ });
3541
3631
  const marshalTriggerTestAlertRequest = (request, defaults) => ({
3542
3632
  project_id: request.projectId ?? defaults.defaultProjectId
3543
3633
  });
@@ -3588,6 +3678,18 @@ let API$l = class API extends API$q {
3588
3678
  */
3589
3679
  waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
3590
3680
 
3681
+ /**
3682
+ * Get cockpit metrics. Get the cockpit metrics with the given project ID.
3683
+ *
3684
+ * @param request - The request {@link GetCockpitMetricsRequest}
3685
+ * @returns A Promise of CockpitMetrics
3686
+ */
3687
+ getCockpitMetrics = (request = {}) => this.client.fetch({
3688
+ method: 'GET',
3689
+ path: `/cockpit/v1beta1/cockpit/metrics`,
3690
+ urlParams: urlParams(['end_date', request.endDate], ['metric_name', request.metricName], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['start_date', request.startDate])
3691
+ }, unmarshalCockpitMetrics);
3692
+
3591
3693
  /**
3592
3694
  * Deactivate a cockpit. Deactivate a cockpit associated with the given
3593
3695
  * project ID.
@@ -3792,6 +3894,32 @@ let API$l = class API extends API$q {
3792
3894
  method: 'POST',
3793
3895
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
3794
3896
  }, unmarshalGrafanaUser);
3897
+ pageOfListPlans = (request = {}) => this.client.fetch({
3898
+ method: 'GET',
3899
+ path: `/cockpit/v1beta1/plans`,
3900
+ urlParams: urlParams(['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3901
+ }, unmarshalListPlansResponse);
3902
+
3903
+ /**
3904
+ * List plans. List all pricing plans.
3905
+ *
3906
+ * @param request - The request {@link ListPlansRequest}
3907
+ * @returns A Promise of ListPlansResponse
3908
+ */
3909
+ listPlans = (request = {}) => enrichForPagination('plans', this.pageOfListPlans, request);
3910
+
3911
+ /**
3912
+ * Select pricing plan. Select the wanted pricing plan.
3913
+ *
3914
+ * @param request - The request {@link SelectPlanRequest}
3915
+ * @returns A Promise of SelectPlanResponse
3916
+ */
3917
+ selectPlan = request => this.client.fetch({
3918
+ body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
3919
+ headers: jsonContentHeaders$j,
3920
+ method: 'POST',
3921
+ path: `/cockpit/v1beta1/select-plan`
3922
+ }, unmarshalSelectPlanResponse);
3795
3923
  };
3796
3924
 
3797
3925
  // This file was automatically generated. DO NOT EDIT.
@@ -7031,22 +7159,8 @@ const marshalSecret = (request, defaults) => ({
7031
7159
  key: request.key,
7032
7160
  value: request.value
7033
7161
  });
7034
- const marshalUpdateTriggerRequestMnqNatsClientConfig = (request, defaults) => ({
7035
- mnq_namespace_id: request.mnqNamespaceId,
7036
- mnq_project_id: request.mnqProjectId,
7037
- mnq_region: request.mnqRegion,
7038
- subject: request.subject
7039
- });
7040
- const marshalUpdateTriggerRequestMnqSqsClientConfig = (request, defaults) => ({
7041
- mnq_namespace_id: request.mnqNamespaceId,
7042
- mnq_project_id: request.mnqProjectId,
7043
- mnq_region: request.mnqRegion,
7044
- queue: request.queue
7045
- });
7046
7162
  const marshalUpdateTriggerRequestSqsClientConfig = (request, defaults) => ({
7047
7163
  access_key: request.accessKey,
7048
- endpoint: request.endpoint,
7049
- queue_url: request.queueUrl,
7050
7164
  secret_key: request.secretKey
7051
7165
  });
7052
7166
  const marshalCreateCronRequest = (request, defaults) => ({
@@ -7136,14 +7250,8 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
7136
7250
  description: request.description,
7137
7251
  name: request.name,
7138
7252
  ...resolveOneOf([{
7139
- param: 'scw_sqs_config',
7140
- value: request.scwSqsConfig ? marshalUpdateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
7141
- }, {
7142
7253
  param: 'sqs_config',
7143
7254
  value: request.sqsConfig ? marshalUpdateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
7144
- }, {
7145
- param: 'scw_nats_config',
7146
- value: request.scwNatsConfig ? marshalUpdateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
7147
7255
  }])
7148
7256
  });
7149
7257
 
@@ -8661,7 +8769,7 @@ const ListAPIKeysRequest = {
8661
8769
  maxLength: 200
8662
8770
  },
8663
8771
  page: {
8664
- greaterThanOrEqual: 1
8772
+ greaterThan: 0
8665
8773
  },
8666
8774
  pageSize: {
8667
8775
  greaterThanOrEqual: 1,
@@ -8675,7 +8783,7 @@ const ListApplicationsRequest = {
8675
8783
  pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
8676
8784
  },
8677
8785
  page: {
8678
- greaterThanOrEqual: 1
8786
+ greaterThan: 0
8679
8787
  },
8680
8788
  pageSize: {
8681
8789
  greaterThanOrEqual: 1,
@@ -8687,7 +8795,7 @@ const ListGroupsRequest = {
8687
8795
  minLength: 1
8688
8796
  },
8689
8797
  page: {
8690
- greaterThanOrEqual: 1
8798
+ greaterThan: 0
8691
8799
  },
8692
8800
  pageSize: {
8693
8801
  greaterThanOrEqual: 1,
@@ -8696,7 +8804,7 @@ const ListGroupsRequest = {
8696
8804
  };
8697
8805
  const ListJWTsRequest = {
8698
8806
  page: {
8699
- greaterThanOrEqual: 1
8807
+ greaterThan: 0
8700
8808
  },
8701
8809
  pageSize: {
8702
8810
  greaterThanOrEqual: 1,
@@ -8705,7 +8813,7 @@ const ListJWTsRequest = {
8705
8813
  };
8706
8814
  const ListPermissionSetsRequest = {
8707
8815
  page: {
8708
- greaterThanOrEqual: 1
8816
+ greaterThan: 0
8709
8817
  },
8710
8818
  pageSize: {
8711
8819
  greaterThanOrEqual: 1,
@@ -8714,7 +8822,7 @@ const ListPermissionSetsRequest = {
8714
8822
  };
8715
8823
  const ListPoliciesRequest = {
8716
8824
  page: {
8717
- greaterThanOrEqual: 1
8825
+ greaterThan: 0
8718
8826
  },
8719
8827
  pageSize: {
8720
8828
  greaterThanOrEqual: 1,
@@ -8726,7 +8834,7 @@ const ListPoliciesRequest = {
8726
8834
  };
8727
8835
  const ListQuotaRequest = {
8728
8836
  page: {
8729
- greaterThanOrEqual: 1
8837
+ greaterThan: 0
8730
8838
  },
8731
8839
  pageSize: {
8732
8840
  greaterThanOrEqual: 1,
@@ -8735,7 +8843,7 @@ const ListQuotaRequest = {
8735
8843
  };
8736
8844
  const ListRulesRequest = {
8737
8845
  page: {
8738
- greaterThanOrEqual: 1
8846
+ greaterThan: 0
8739
8847
  },
8740
8848
  pageSize: {
8741
8849
  greaterThanOrEqual: 1,
@@ -8748,7 +8856,7 @@ const ListSSHKeysRequest = {
8748
8856
  minLength: 1
8749
8857
  },
8750
8858
  page: {
8751
- greaterThanOrEqual: 1
8859
+ greaterThan: 0
8752
8860
  },
8753
8861
  pageSize: {
8754
8862
  greaterThanOrEqual: 1,
@@ -8757,7 +8865,7 @@ const ListSSHKeysRequest = {
8757
8865
  };
8758
8866
  const ListUsersRequest = {
8759
8867
  page: {
8760
- greaterThanOrEqual: 1
8868
+ greaterThan: 0
8761
8869
  },
8762
8870
  pageSize: {
8763
8871
  greaterThanOrEqual: 1,
@@ -10183,7 +10291,7 @@ let API$f = class API extends API$q {
10183
10291
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
10184
10292
 
10185
10293
  /**
10186
- * Get availability. Get availability for all server types.
10294
+ * Get availability. Get availability for all Instance types.
10187
10295
  *
10188
10296
  * @param request - The request {@link GetServerTypesAvailabilityRequest}
10189
10297
  * @returns A Promise of GetServerTypesAvailabilityResponse
@@ -10195,7 +10303,8 @@ let API$f = class API extends API$q {
10195
10303
  }, unmarshalGetServerTypesAvailabilityResponse);
10196
10304
 
10197
10305
  /**
10198
- * List server types. Get server types technical details.
10306
+ * List Instance types. List available Instance types and their technical
10307
+ * details.
10199
10308
  *
10200
10309
  * @param request - The request {@link ListServersTypesRequest}
10201
10310
  * @returns A Promise of ListServersTypesResponse
@@ -10207,7 +10316,7 @@ let API$f = class API extends API$q {
10207
10316
  }, unmarshalListServersTypesResponse);
10208
10317
 
10209
10318
  /**
10210
- * List volumes types. Get volumes technical details.
10319
+ * List volumes types. List all volume types and their technical details.
10211
10320
  *
10212
10321
  * @param request - The request {@link ListVolumesTypesRequest}
10213
10322
  * @returns A Promise of ListVolumesTypesResponse
@@ -10224,7 +10333,8 @@ let API$f = class API extends API$q {
10224
10333
  }, unmarshalListServersResponse);
10225
10334
 
10226
10335
  /**
10227
- * List all servers.
10336
+ * List all Instances. List all Instances in a specified Availability Zone,
10337
+ * e.g. `fr-par-1`.
10228
10338
  *
10229
10339
  * @param request - The request {@link ListServersRequest}
10230
10340
  * @returns A Promise of ListServersResponse
@@ -10238,7 +10348,7 @@ let API$f = class API extends API$q {
10238
10348
  }, unmarshalCreateServerResponse);
10239
10349
 
10240
10350
  /**
10241
- * Delete a server. Delete a server with the given ID.
10351
+ * Delete an Instance. Delete the Instance with the specified ID.
10242
10352
  *
10243
10353
  * @param request - The request {@link DeleteServerRequest}
10244
10354
  */
@@ -10248,7 +10358,7 @@ let API$f = class API extends API$q {
10248
10358
  });
10249
10359
 
10250
10360
  /**
10251
- * Get a server. Get the details of a specified Server.
10361
+ * Get an Instance. Get the details of a specified Instance.
10252
10362
  *
10253
10363
  * @param request - The request {@link GetServerRequest}
10254
10364
  * @returns A Promise of GetServerResponse
@@ -10271,8 +10381,8 @@ let API$f = class API extends API$q {
10271
10381
  }, unmarshalUpdateServerResponse);
10272
10382
 
10273
10383
  /**
10274
- * List server actions. List all actions that can currently be performed on a
10275
- * server.
10384
+ * List Instance actions. List all actions (e.g. power on, power off, reboot)
10385
+ * that can currently be performed on an Instance.
10276
10386
  *
10277
10387
  * @param request - The request {@link ListServerActionsRequest}
10278
10388
  * @returns A Promise of ListServerActionsResponse
@@ -10283,13 +10393,19 @@ let API$f = class API extends API$q {
10283
10393
  }, unmarshalListServerActionsResponse);
10284
10394
 
10285
10395
  /**
10286
- * Perform action. Perform power related actions on a server. Be wary that
10287
- * when terminating a server, all the attached volumes (local _and_ block
10288
- * storage) are deleted. So, if you want to keep your local volumes, you must
10289
- * use the `archive` action instead of `terminate`. And if you want to keep
10290
- * block-storage volumes, **you must** detach it beforehand you issue the
10291
- * `terminate` call. For more information, read the [Volumes](#volumes-7e8a39)
10292
- * documentation.
10396
+ * Perform action. Perform an action on an Instance. Available actions are:
10397
+ * `poweron`: Start a stopped Instance. `poweroff`: Fully stop the Instance
10398
+ * and release the hypervisor slot. `stop_in_place`: Stop the Instance, but
10399
+ * keep the slot on the hypervisor. `reboot`: Stop the instance and restart
10400
+ * it. `backup`: Create an image with all the volumes of an Instance.
10401
+ * `terminate`: Delete the Instance along with all attached volumes.
10402
+ *
10403
+ * Keep in mind that terminating an Instance will result in the deletion of
10404
+ * all attached volumes, including local and block storage. If you want to
10405
+ * preserve your local volumes, you should use the `archive` action instead of
10406
+ * `terminate`. Similarly, if you want to keep your block storage volumes, you
10407
+ * must first detach them before issuing the `terminate` command. For more
10408
+ * information, read the [Volumes](#volumes-7e8a39) documentation.
10293
10409
  *
10294
10410
  * @param request - The request {@link ServerActionRequest}
10295
10411
  * @returns A Promise of ServerActionResponse
@@ -10302,7 +10418,7 @@ let API$f = class API extends API$q {
10302
10418
  }, unmarshalServerActionResponse);
10303
10419
 
10304
10420
  /**
10305
- * List user data. List all user data keys registered on a given server.
10421
+ * List user data. List all user data keys registered on a specified Instance.
10306
10422
  *
10307
10423
  * @param request - The request {@link ListServerUserDataRequest}
10308
10424
  * @returns A Promise of ListServerUserDataResponse
@@ -10313,7 +10429,7 @@ let API$f = class API extends API$q {
10313
10429
  }, unmarshalListServerUserDataResponse);
10314
10430
 
10315
10431
  /**
10316
- * Delete user data. Delete the given key from a server user data.
10432
+ * Delete user data. Delete the specified key from an Instance's user data.
10317
10433
  *
10318
10434
  * @param request - The request {@link DeleteServerUserDataRequest}
10319
10435
  */
@@ -10328,7 +10444,7 @@ let API$f = class API extends API$q {
10328
10444
  }, unmarshalListImagesResponse$3);
10329
10445
 
10330
10446
  /**
10331
- * List instance images. List all images available in an account.
10447
+ * List Instance images. List all existing Instance images.
10332
10448
  *
10333
10449
  * @param request - The request {@link ListImagesRequest}
10334
10450
  * @returns A Promise of ListImagesResponse
@@ -10336,7 +10452,7 @@ let API$f = class API extends API$q {
10336
10452
  listImages = (request = {}) => enrichForPagination('images', this.pageOfListImages, request);
10337
10453
 
10338
10454
  /**
10339
- * Get an instance image. Get details of an image with the given ID.
10455
+ * Get an Instance image. Get details of an image with the specified ID.
10340
10456
  *
10341
10457
  * @param request - The request {@link GetImageRequest}
10342
10458
  * @returns A Promise of GetImageResponse
@@ -10347,7 +10463,8 @@ let API$f = class API extends API$q {
10347
10463
  }, unmarshalGetImageResponse$1);
10348
10464
 
10349
10465
  /**
10350
- * Create an instance image.
10466
+ * Create an Instance image. Create an Instance image from the specified
10467
+ * snapshot ID.
10351
10468
  *
10352
10469
  * @param request - The request {@link CreateImageRequest}
10353
10470
  * @returns A Promise of CreateImageResponse
@@ -10366,7 +10483,7 @@ let API$f = class API extends API$q {
10366
10483
  }, unmarshalSetImageResponse);
10367
10484
 
10368
10485
  /**
10369
- * Delete an instance image. Delete the image with the given ID.
10486
+ * Delete an Instance image. Delete the image with the specified ID.
10370
10487
  *
10371
10488
  * @param request - The request {@link DeleteImageRequest}
10372
10489
  */
@@ -10381,7 +10498,8 @@ let API$f = class API extends API$q {
10381
10498
  }, unmarshalListSnapshotsResponse$1);
10382
10499
 
10383
10500
  /**
10384
- * List snapshots.
10501
+ * List snapshots. List all snapshots of an Organization in a specified
10502
+ * Availability Zone.
10385
10503
  *
10386
10504
  * @param request - The request {@link ListSnapshotsRequest}
10387
10505
  * @returns A Promise of ListSnapshotsResponse
@@ -10389,7 +10507,9 @@ let API$f = class API extends API$q {
10389
10507
  listSnapshots = (request = {}) => enrichForPagination('snapshots', this.pageOfListSnapshots, request);
10390
10508
 
10391
10509
  /**
10392
- * Create a snapshot from a given volume or from a QCOW2 file.
10510
+ * Create a snapshot from a specified volume or from a QCOW2 file. Create a
10511
+ * snapshot from a specified volume or from a QCOW2 file in a specified
10512
+ * Availability Zone.
10393
10513
  *
10394
10514
  * @param request - The request {@link CreateSnapshotRequest}
10395
10515
  * @returns A Promise of CreateSnapshotResponse
@@ -10402,7 +10522,7 @@ let API$f = class API extends API$q {
10402
10522
  }, unmarshalCreateSnapshotResponse);
10403
10523
 
10404
10524
  /**
10405
- * Get a snapshot. Get details of a snapshot with the given ID.
10525
+ * Get a snapshot. Get details of a snapshot with the specified ID.
10406
10526
  *
10407
10527
  * @param request - The request {@link GetSnapshotRequest}
10408
10528
  * @returns A Promise of GetSnapshotResponse
@@ -10419,7 +10539,7 @@ let API$f = class API extends API$q {
10419
10539
  }, unmarshalSetSnapshotResponse);
10420
10540
 
10421
10541
  /**
10422
- * Delete a snapshot. Delete the snapshot with the given ID.
10542
+ * Delete a snapshot. Delete the snapshot with the specified ID.
10423
10543
  *
10424
10544
  * @param request - The request {@link DeleteSnapshotRequest}
10425
10545
  */
@@ -10429,7 +10549,7 @@ let API$f = class API extends API$q {
10429
10549
  });
10430
10550
 
10431
10551
  /**
10432
- * Export a snapshot. Export a snapshot to a given S3 bucket in the same
10552
+ * Export a snapshot. Export a snapshot to a specified S3 bucket in the same
10433
10553
  * region.
10434
10554
  *
10435
10555
  * @param request - The request {@link ExportSnapshotRequest}
@@ -10448,7 +10568,8 @@ let API$f = class API extends API$q {
10448
10568
  }, unmarshalListVolumesResponse);
10449
10569
 
10450
10570
  /**
10451
- * List volumes.
10571
+ * List volumes. List volumes in the specified Availability Zone. You can
10572
+ * filter the output by volume type.
10452
10573
  *
10453
10574
  * @param request - The request {@link ListVolumesRequest}
10454
10575
  * @returns A Promise of ListVolumesResponse
@@ -10456,7 +10577,8 @@ let API$f = class API extends API$q {
10456
10577
  listVolumes = (request = {}) => enrichForPagination('volumes', this.pageOfListVolumes, request);
10457
10578
 
10458
10579
  /**
10459
- * Create a volume.
10580
+ * Create a volume. Create a volume of a specified type in an Availability
10581
+ * Zone.
10460
10582
  *
10461
10583
  * @param request - The request {@link CreateVolumeRequest}
10462
10584
  * @returns A Promise of CreateVolumeResponse
@@ -10469,7 +10591,7 @@ let API$f = class API extends API$q {
10469
10591
  }, unmarshalCreateVolumeResponse);
10470
10592
 
10471
10593
  /**
10472
- * Get a volume. Get details of a volume with the given ID.
10594
+ * Get a volume. Get details of a volume with the specified ID.
10473
10595
  *
10474
10596
  * @param request - The request {@link GetVolumeRequest}
10475
10597
  * @returns A Promise of GetVolumeResponse
@@ -10480,9 +10602,9 @@ let API$f = class API extends API$q {
10480
10602
  }, unmarshalGetVolumeResponse);
10481
10603
 
10482
10604
  /**
10483
- * Update a volume. Replace name and/or size properties of given ID volume
10484
- * with the given value(s). Any volume name can be changed while, for now,
10485
- * only `b_ssd` volume growing is supported.
10605
+ * Update a volume. Replace the name and/or size properties of a volume
10606
+ * specified by its ID, with the specified value(s). Any volume name can be
10607
+ * changed, however only `b_ssd` volumes can currently be increased in size.
10486
10608
  *
10487
10609
  * @param request - The request {@link UpdateVolumeRequest}
10488
10610
  * @returns A Promise of UpdateVolumeResponse
@@ -10495,7 +10617,7 @@ let API$f = class API extends API$q {
10495
10617
  }, unmarshalUpdateVolumeResponse);
10496
10618
 
10497
10619
  /**
10498
- * Delete a volume. Delete the volume with the given ID.
10620
+ * Delete a volume. Delete the volume with the specified ID.
10499
10621
  *
10500
10622
  * @param request - The request {@link DeleteVolumeRequest}
10501
10623
  */
@@ -10510,7 +10632,7 @@ let API$f = class API extends API$q {
10510
10632
  }, unmarshalListSecurityGroupsResponse);
10511
10633
 
10512
10634
  /**
10513
- * List security groups. List all security groups available in an account.
10635
+ * List security groups. List all existing security groups.
10514
10636
  *
10515
10637
  * @param request - The request {@link ListSecurityGroupsRequest}
10516
10638
  * @returns A Promise of ListSecurityGroupsResponse
@@ -10518,7 +10640,8 @@ let API$f = class API extends API$q {
10518
10640
  listSecurityGroups = (request = {}) => enrichForPagination('securityGroups', this.pageOfListSecurityGroups, request);
10519
10641
 
10520
10642
  /**
10521
- * Create a security group.
10643
+ * Create a security group. Create a security group with a specified name and
10644
+ * description.
10522
10645
  *
10523
10646
  * @param request - The request {@link CreateSecurityGroupRequest}
10524
10647
  * @returns A Promise of CreateSecurityGroupResponse
@@ -10531,8 +10654,8 @@ let API$f = class API extends API$q {
10531
10654
  }, unmarshalCreateSecurityGroupResponse);
10532
10655
 
10533
10656
  /**
10534
- * Get a security group. Get the details of a Security Group with the given
10535
- * ID.
10657
+ * Get a security group. Get the details of a security group with the
10658
+ * specified ID.
10536
10659
  *
10537
10660
  * @param request - The request {@link GetSecurityGroupRequest}
10538
10661
  * @returns A Promise of GetSecurityGroupResponse
@@ -10543,7 +10666,7 @@ let API$f = class API extends API$q {
10543
10666
  }, unmarshalGetSecurityGroupResponse);
10544
10667
 
10545
10668
  /**
10546
- * Delete a security group.
10669
+ * Delete a security group. Delete a security group with the specified ID.
10547
10670
  *
10548
10671
  * @param request - The request {@link DeleteSecurityGroupRequest}
10549
10672
  */
@@ -10576,7 +10699,7 @@ let API$f = class API extends API$q {
10576
10699
  }, unmarshalListSecurityGroupRulesResponse);
10577
10700
 
10578
10701
  /**
10579
- * List rules.
10702
+ * List rules. List the rules of the a specified security group ID.
10580
10703
  *
10581
10704
  * @param request - The request {@link ListSecurityGroupRulesRequest}
10582
10705
  * @returns A Promise of ListSecurityGroupRulesResponse
@@ -10584,7 +10707,7 @@ let API$f = class API extends API$q {
10584
10707
  listSecurityGroupRules = request => enrichForPagination('rules', this.pageOfListSecurityGroupRules, request);
10585
10708
 
10586
10709
  /**
10587
- * Create rule.
10710
+ * Create rule. Create a rule in the specified security group ID.
10588
10711
  *
10589
10712
  * @param request - The request {@link CreateSecurityGroupRuleRequest}
10590
10713
  * @returns A Promise of CreateSecurityGroupRuleResponse
@@ -10597,10 +10720,10 @@ let API$f = class API extends API$q {
10597
10720
  }, unmarshalCreateSecurityGroupRuleResponse);
10598
10721
 
10599
10722
  /**
10600
- * Update all the rules of a security group. Replaces the rules of the
10601
- * security group with the rules provided. This endpoint supports the update
10602
- * of existing rules, creation of new rules and deletion of existing rules
10603
- * when they are not passed in the request.
10723
+ * Update all the rules of a security group. Replaces the existing rules of
10724
+ * the security group with the rules provided. This endpoint supports the
10725
+ * update of existing rules, creation of new rules and deletion of existing
10726
+ * rules when they are not passed in the request.
10604
10727
  *
10605
10728
  * @param request - The request {@link SetSecurityGroupRulesRequest}
10606
10729
  * @returns A Promise of SetSecurityGroupRulesResponse
@@ -10613,7 +10736,7 @@ let API$f = class API extends API$q {
10613
10736
  }, unmarshalSetSecurityGroupRulesResponse);
10614
10737
 
10615
10738
  /**
10616
- * Delete rule. Delete a security group rule with the given ID.
10739
+ * Delete rule. Delete a security group rule with the specified ID.
10617
10740
  *
10618
10741
  * @param request - The request {@link DeleteSecurityGroupRuleRequest}
10619
10742
  */
@@ -10623,7 +10746,7 @@ let API$f = class API extends API$q {
10623
10746
  });
10624
10747
 
10625
10748
  /**
10626
- * Get rule. Get details of a security group rule with the given ID.
10749
+ * Get rule. Get details of a security group rule with the specified ID.
10627
10750
  *
10628
10751
  * @param request - The request {@link GetSecurityGroupRuleRequest}
10629
10752
  * @returns A Promise of GetSecurityGroupRuleResponse
@@ -10645,7 +10768,8 @@ let API$f = class API extends API$q {
10645
10768
  }, unmarshalListPlacementGroupsResponse);
10646
10769
 
10647
10770
  /**
10648
- * List placement groups. List all placement groups.
10771
+ * List placement groups. List all placement groups in a specified
10772
+ * Availability Zone.
10649
10773
  *
10650
10774
  * @param request - The request {@link ListPlacementGroupsRequest}
10651
10775
  * @returns A Promise of ListPlacementGroupsResponse
@@ -10653,7 +10777,8 @@ let API$f = class API extends API$q {
10653
10777
  listPlacementGroups = (request = {}) => enrichForPagination('placementGroups', this.pageOfListPlacementGroups, request);
10654
10778
 
10655
10779
  /**
10656
- * Create a placement group. Create a new placement group.
10780
+ * Create a placement group. Create a new placement group in a specified
10781
+ * Availability Zone.
10657
10782
  *
10658
10783
  * @param request - The request {@link CreatePlacementGroupRequest}
10659
10784
  * @returns A Promise of CreatePlacementGroupResponse
@@ -10666,7 +10791,7 @@ let API$f = class API extends API$q {
10666
10791
  }, unmarshalCreatePlacementGroupResponse);
10667
10792
 
10668
10793
  /**
10669
- * Get a placement group. Get the given placement group.
10794
+ * Get a placement group. Get the specified placement group.
10670
10795
  *
10671
10796
  * @param request - The request {@link GetPlacementGroupRequest}
10672
10797
  * @returns A Promise of GetPlacementGroupResponse
@@ -10677,7 +10802,7 @@ let API$f = class API extends API$q {
10677
10802
  }, unmarshalGetPlacementGroupResponse);
10678
10803
 
10679
10804
  /**
10680
- * Set placement group. Set all parameters of the given placement group.
10805
+ * Set placement group. Set all parameters of the specified placement group.
10681
10806
  *
10682
10807
  * @param request - The request {@link SetPlacementGroupRequest}
10683
10808
  * @returns A Promise of SetPlacementGroupResponse
@@ -10690,7 +10815,7 @@ let API$f = class API extends API$q {
10690
10815
  }, unmarshalSetPlacementGroupResponse);
10691
10816
 
10692
10817
  /**
10693
- * Update a placement group. Update one or more parameter of the given
10818
+ * Update a placement group. Update one or more parameter of the specified
10694
10819
  * placement group.
10695
10820
  *
10696
10821
  * @param request - The request {@link UpdatePlacementGroupRequest}
@@ -10704,7 +10829,7 @@ let API$f = class API extends API$q {
10704
10829
  }, unmarshalUpdatePlacementGroupResponse);
10705
10830
 
10706
10831
  /**
10707
- * Delete the given placement group.
10832
+ * Delete the specified placement group.
10708
10833
  *
10709
10834
  * @param request - The request {@link DeletePlacementGroupRequest}
10710
10835
  */
@@ -10714,7 +10839,7 @@ let API$f = class API extends API$q {
10714
10839
  });
10715
10840
 
10716
10841
  /**
10717
- * Get placement group servers. Get all servers belonging to the given
10842
+ * Get placement group servers. Get all Instances belonging to the specified
10718
10843
  * placement group.
10719
10844
  *
10720
10845
  * @param request - The request {@link GetPlacementGroupServersRequest}
@@ -10726,7 +10851,7 @@ let API$f = class API extends API$q {
10726
10851
  }, unmarshalGetPlacementGroupServersResponse);
10727
10852
 
10728
10853
  /**
10729
- * Set placement group servers. Set all servers belonging to the given
10854
+ * Set placement group servers. Set all Instances belonging to the specified
10730
10855
  * placement group.
10731
10856
  *
10732
10857
  * @param request - The request {@link SetPlacementGroupServersRequest}
@@ -10740,8 +10865,8 @@ let API$f = class API extends API$q {
10740
10865
  }, unmarshalSetPlacementGroupServersResponse);
10741
10866
 
10742
10867
  /**
10743
- * Update placement group servers. Update all servers belonging to the given
10744
- * placement group.
10868
+ * Update placement group servers. Update all Instances belonging to the
10869
+ * specified placement group.
10745
10870
  *
10746
10871
  * @param request - The request {@link UpdatePlacementGroupServersRequest}
10747
10872
  * @returns A Promise of UpdatePlacementGroupServersResponse
@@ -10759,7 +10884,7 @@ let API$f = class API extends API$q {
10759
10884
  }, unmarshalListIpsResponse$1);
10760
10885
 
10761
10886
  /**
10762
- * List all flexible IPs.
10887
+ * List all flexible IPs. List all flexible IPs in a specified zone.
10763
10888
  *
10764
10889
  * @param request - The request {@link ListIpsRequest}
10765
10890
  * @returns A Promise of ListIpsResponse
@@ -10767,7 +10892,8 @@ let API$f = class API extends API$q {
10767
10892
  listIps = (request = {}) => enrichForPagination('ips', this.pageOfListIps, request);
10768
10893
 
10769
10894
  /**
10770
- * Reserve a flexible IP.
10895
+ * Reserve a flexible IP. Reserve a flexible IP and attach it to the specified
10896
+ * Instance.
10771
10897
  *
10772
10898
  * @param request - The request {@link CreateIpRequest}
10773
10899
  * @returns A Promise of CreateIpResponse
@@ -10780,7 +10906,7 @@ let API$f = class API extends API$q {
10780
10906
  }, unmarshalCreateIpResponse);
10781
10907
 
10782
10908
  /**
10783
- * Get a flexible IP. Get details of an IP with the given ID or address.
10909
+ * Get a flexible IP. Get details of an IP with the specified ID or address.
10784
10910
  *
10785
10911
  * @param request - The request {@link GetIpRequest}
10786
10912
  * @returns A Promise of GetIpResponse
@@ -10791,7 +10917,8 @@ let API$f = class API extends API$q {
10791
10917
  }, unmarshalGetIpResponse);
10792
10918
 
10793
10919
  /**
10794
- * Update a flexible IP.
10920
+ * Update a flexible IP. Update a flexible IP in the specified zone with the
10921
+ * specified ID.
10795
10922
  *
10796
10923
  * @param request - The request {@link UpdateIpRequest}
10797
10924
  * @returns A Promise of UpdateIpResponse
@@ -10804,7 +10931,7 @@ let API$f = class API extends API$q {
10804
10931
  }, unmarshalUpdateIpResponse);
10805
10932
 
10806
10933
  /**
10807
- * Delete a flexible IP. Delete the IP with the given ID.
10934
+ * Delete a flexible IP. Delete the IP with the specified ID.
10808
10935
  *
10809
10936
  * @param request - The request {@link DeleteIpRequest}
10810
10937
  */
@@ -10819,7 +10946,7 @@ let API$f = class API extends API$q {
10819
10946
  }, unmarshalListPrivateNICsResponse);
10820
10947
 
10821
10948
  /**
10822
- * List all private NICs. List all private NICs of a given server.
10949
+ * List all private NICs. List all private NICs of a specified Instance.
10823
10950
  *
10824
10951
  * @param request - The request {@link ListPrivateNICsRequest}
10825
10952
  * @returns A Promise of ListPrivateNICsResponse
@@ -10827,7 +10954,7 @@ let API$f = class API extends API$q {
10827
10954
  listPrivateNICs = request => enrichForPagination('privateNics', this.pageOfListPrivateNICs, request);
10828
10955
 
10829
10956
  /**
10830
- * Create a private NIC connecting a server to a private network.
10957
+ * Create a private NIC connecting an Instance to a Private Network.
10831
10958
  *
10832
10959
  * @param request - The request {@link CreatePrivateNICRequest}
10833
10960
  * @returns A Promise of CreatePrivateNICResponse
@@ -10851,8 +10978,8 @@ let API$f = class API extends API$q {
10851
10978
  }, unmarshalGetPrivateNICResponse);
10852
10979
 
10853
10980
  /**
10854
- * Update a private NIC. Update one or more parameter/s to a given private
10855
- * NIC.
10981
+ * Update a private NIC. Update one or more parameter(s) of a specified
10982
+ * private NIC.
10856
10983
  *
10857
10984
  * @param request - The request {@link UpdatePrivateNICRequest}
10858
10985
  * @returns A Promise of PrivateNIC
@@ -10889,7 +11016,7 @@ let API$f = class API extends API$q {
10889
11016
  listBootscripts = (request = {}) => enrichForPagination('bootscripts', this.pageOfListBootscripts, request);
10890
11017
 
10891
11018
  /**
10892
- * Get bootscripts. Get details of a bootscript with the given ID.
11019
+ * Get bootscripts. Get details of a bootscript with the specified ID.
10893
11020
  *
10894
11021
  * @deprecated
10895
11022
  * @param request - The request {@link GetBootscriptRequest}
@@ -13319,7 +13446,8 @@ const unmarshalHealthCheck = data => {
13319
13446
  pgsqlConfig: data.pgsql_config ? unmarshalHealthCheckPgsqlConfig(data.pgsql_config) : undefined,
13320
13447
  port: data.port,
13321
13448
  redisConfig: data.redis_config ? unmarshalHealthCheckRedisConfig(data.redis_config) : undefined,
13322
- tcpConfig: data.tcp_config ? unmarshalHealthCheckTcpConfig(data.tcp_config) : undefined
13449
+ tcpConfig: data.tcp_config ? unmarshalHealthCheckTcpConfig(data.tcp_config) : undefined,
13450
+ transientCheckDelay: data.transient_check_delay
13323
13451
  };
13324
13452
  };
13325
13453
  const unmarshalLb = data => {
@@ -13373,10 +13501,12 @@ const unmarshalBackend = data => {
13373
13501
  id: data.id,
13374
13502
  ignoreSslServerVerify: data.ignore_ssl_server_verify,
13375
13503
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
13504
+ maxRetries: data.max_retries,
13376
13505
  name: data.name,
13377
13506
  onMarkedDownAction: data.on_marked_down_action,
13378
13507
  pool: data.pool,
13379
13508
  proxyProtocol: data.proxy_protocol,
13509
+ redispatchAttemptCount: data.redispatch_attempt_count,
13380
13510
  sendProxyV2: data.send_proxy_v2,
13381
13511
  sslBridging: data.ssl_bridging,
13382
13512
  stickySessions: data.sticky_sessions,
@@ -13718,21 +13848,22 @@ const marshalHealthCheck = (request, defaults) => ({
13718
13848
  check_send_proxy: request.checkSendProxy,
13719
13849
  check_timeout: request.checkTimeout,
13720
13850
  port: request.port,
13851
+ transient_check_delay: request.transientCheckDelay,
13721
13852
  ...resolveOneOf([{
13853
+ param: 'tcp_config',
13854
+ value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
13855
+ }, {
13722
13856
  param: 'mysql_config',
13723
13857
  value: request.mysqlConfig ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
13858
+ }, {
13859
+ param: 'pgsql_config',
13860
+ value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
13724
13861
  }, {
13725
13862
  param: 'ldap_config',
13726
13863
  value: request.ldapConfig ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
13727
13864
  }, {
13728
13865
  param: 'redis_config',
13729
13866
  value: request.redisConfig ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
13730
- }, {
13731
- param: 'tcp_config',
13732
- value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
13733
- }, {
13734
- param: 'pgsql_config',
13735
- value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
13736
13867
  }, {
13737
13868
  param: 'http_config',
13738
13869
  value: request.httpConfig ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
@@ -13790,9 +13921,11 @@ const marshalCreateBackendRequest = (request, defaults) => ({
13790
13921
  forward_protocol: request.forwardProtocol,
13791
13922
  health_check: marshalHealthCheck(request.healthCheck),
13792
13923
  ignore_ssl_server_verify: request.ignoreSslServerVerify,
13924
+ max_retries: request.maxRetries,
13793
13925
  name: request.name || randomName('lbb'),
13794
13926
  on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
13795
13927
  proxy_protocol: request.proxyProtocol ?? 'proxy_protocol_unknown',
13928
+ redispatch_attempt_count: request.redispatchAttemptCount,
13796
13929
  send_proxy_v2: request.sendProxyV2,
13797
13930
  server_ip: request.serverIp,
13798
13931
  ssl_bridging: request.sslBridging,
@@ -13899,9 +14032,11 @@ const marshalUpdateBackendRequest = (request, defaults) => ({
13899
14032
  forward_port_algorithm: request.forwardPortAlgorithm,
13900
14033
  forward_protocol: request.forwardProtocol,
13901
14034
  ignore_ssl_server_verify: request.ignoreSslServerVerify,
14035
+ max_retries: request.maxRetries,
13902
14036
  name: request.name,
13903
14037
  on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
13904
14038
  proxy_protocol: request.proxyProtocol ?? 'proxy_protocol_unknown',
14039
+ redispatch_attempt_count: request.redispatchAttemptCount,
13905
14040
  send_proxy_v2: request.sendProxyV2,
13906
14041
  ssl_bridging: request.sslBridging,
13907
14042
  sticky_sessions: request.stickySessions,
@@ -13928,21 +14063,22 @@ const marshalUpdateHealthCheckRequest = (request, defaults) => ({
13928
14063
  check_send_proxy: request.checkSendProxy,
13929
14064
  check_timeout: request.checkTimeout,
13930
14065
  port: request.port,
14066
+ transient_check_delay: request.transientCheckDelay,
13931
14067
  ...resolveOneOf([{
14068
+ param: 'tcp_config',
14069
+ value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
14070
+ }, {
13932
14071
  param: 'mysql_config',
13933
14072
  value: request.mysqlConfig ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
14073
+ }, {
14074
+ param: 'pgsql_config',
14075
+ value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
13934
14076
  }, {
13935
14077
  param: 'ldap_config',
13936
14078
  value: request.ldapConfig ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
13937
14079
  }, {
13938
14080
  param: 'redis_config',
13939
14081
  value: request.redisConfig ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
13940
- }, {
13941
- param: 'pgsql_config',
13942
- value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
13943
- }, {
13944
- param: 'tcp_config',
13945
- value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
13946
14082
  }, {
13947
14083
  param: 'http_config',
13948
14084
  value: request.httpConfig ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
@@ -14003,9 +14139,11 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
14003
14139
  forward_protocol: request.forwardProtocol,
14004
14140
  health_check: marshalHealthCheck(request.healthCheck),
14005
14141
  ignore_ssl_server_verify: request.ignoreSslServerVerify,
14142
+ max_retries: request.maxRetries,
14006
14143
  name: request.name || randomName('lbb'),
14007
14144
  on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
14008
14145
  proxy_protocol: request.proxyProtocol ?? 'proxy_protocol_unknown',
14146
+ redispatch_attempt_count: request.redispatchAttemptCount,
14009
14147
  send_proxy_v2: request.sendProxyV2,
14010
14148
  server_ip: request.serverIp,
14011
14149
  ssl_bridging: request.sslBridging,
@@ -14115,9 +14253,11 @@ const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
14115
14253
  forward_port_algorithm: request.forwardPortAlgorithm,
14116
14254
  forward_protocol: request.forwardProtocol,
14117
14255
  ignore_ssl_server_verify: request.ignoreSslServerVerify,
14256
+ max_retries: request.maxRetries,
14118
14257
  name: request.name,
14119
14258
  on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
14120
14259
  proxy_protocol: request.proxyProtocol ?? 'proxy_protocol_unknown',
14260
+ redispatch_attempt_count: request.redispatchAttemptCount,
14121
14261
  send_proxy_v2: request.sendProxyV2,
14122
14262
  ssl_bridging: request.sslBridging,
14123
14263
  sticky_sessions: request.stickySessions,
@@ -14144,21 +14284,22 @@ const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
14144
14284
  check_send_proxy: request.checkSendProxy,
14145
14285
  check_timeout: request.checkTimeout,
14146
14286
  port: request.port,
14287
+ transient_check_delay: request.transientCheckDelay,
14147
14288
  ...resolveOneOf([{
14289
+ param: 'tcp_config',
14290
+ value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
14291
+ }, {
14148
14292
  param: 'mysql_config',
14149
14293
  value: request.mysqlConfig ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
14294
+ }, {
14295
+ param: 'pgsql_config',
14296
+ value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
14150
14297
  }, {
14151
14298
  param: 'ldap_config',
14152
14299
  value: request.ldapConfig ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
14153
14300
  }, {
14154
14301
  param: 'redis_config',
14155
14302
  value: request.redisConfig ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
14156
- }, {
14157
- param: 'pgsql_config',
14158
- value: request.pgsqlConfig ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
14159
- }, {
14160
- param: 'tcp_config',
14161
- value: request.tcpConfig ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
14162
14303
  }, {
14163
14304
  param: 'http_config',
14164
14305
  value: request.httpConfig ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
@@ -18142,8 +18283,10 @@ const unmarshalSetEndpointsResponse = data => {
18142
18283
  endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint)
18143
18284
  };
18144
18285
  };
18286
+ const marshalEndpointSpecPrivateNetworkSpecIpamConfig = (request, defaults) => ({});
18145
18287
  const marshalEndpointSpecPrivateNetworkSpec = (request, defaults) => ({
18146
18288
  id: request.id,
18289
+ ipam_config: request.ipamConfig ? marshalEndpointSpecPrivateNetworkSpecIpamConfig(request.ipamConfig) : undefined,
18147
18290
  service_ips: request.serviceIps
18148
18291
  });
18149
18292
  const marshalEndpointSpecPublicNetworkSpec = (request, defaults) => ({});
@@ -18978,6 +19121,13 @@ const unmarshalListSecretsResponse = data => {
18978
19121
  totalCount: data.total_count
18979
19122
  };
18980
19123
  };
19124
+ const marshalPasswordGenerationParams = (request, defaults) => ({
19125
+ additional_chars: request.additionalChars,
19126
+ length: request.length,
19127
+ no_digits: request.noDigits,
19128
+ no_lowercase_letters: request.noLowercaseLetters,
19129
+ no_uppercase_letters: request.noUppercaseLetters
19130
+ });
18981
19131
  const marshalCreateSecretRequest = (request, defaults) => ({
18982
19132
  description: request.description,
18983
19133
  name: request.name,
@@ -18986,7 +19136,12 @@ const marshalCreateSecretRequest = (request, defaults) => ({
18986
19136
  });
18987
19137
  const marshalCreateSecretVersionRequest = (request, defaults) => ({
18988
19138
  data: request.data,
18989
- description: request.description
19139
+ description: request.description,
19140
+ disable_previous: request.disablePrevious,
19141
+ ...resolveOneOf([{
19142
+ param: 'password_generation',
19143
+ value: request.passwordGeneration ? marshalPasswordGenerationParams(request.passwordGeneration) : undefined
19144
+ }])
18990
19145
  });
18991
19146
  const marshalUpdateSecretRequest = (request, defaults) => ({
18992
19147
  description: request.description,
@@ -19860,7 +20015,7 @@ let API$2 = class API extends API$q {
19860
20015
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
19861
20016
  method: 'GET',
19862
20017
  path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks`,
19863
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags])
20018
+ urlParams: urlParams(['include_regional', request.includeRegional], ['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags])
19864
20019
  }, unmarshalListPrivateNetworksResponse);
19865
20020
 
19866
20021
  /**