@scaleway/sdk 2.0.0-alpha.15 → 2.0.0-alpha.16

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/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.0.0-alpha.14';
500
+ const version = 'v2.0.0-alpha.15';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -2165,7 +2165,7 @@ let API$u = class API extends API$v {
2165
2165
  // This file was automatically generated. DO NOT EDIT.
2166
2166
  // If you have any remark or suggestion do not hesitate to open an issue.
2167
2167
 
2168
- var index_gen$s = /*#__PURE__*/Object.freeze({
2168
+ var index_gen$t = /*#__PURE__*/Object.freeze({
2169
2169
  __proto__: null,
2170
2170
  API: API$u
2171
2171
  });
@@ -2335,7 +2335,7 @@ var validationRules_gen$c = /*#__PURE__*/Object.freeze({
2335
2335
  // This file was automatically generated. DO NOT EDIT.
2336
2336
  // If you have any remark or suggestion do not hesitate to open an issue.
2337
2337
 
2338
- var index_gen$r = /*#__PURE__*/Object.freeze({
2338
+ var index_gen$s = /*#__PURE__*/Object.freeze({
2339
2339
  __proto__: null,
2340
2340
  ProjectAPI: ProjectAPI,
2341
2341
  ValidationRules: validationRules_gen$c
@@ -2343,8 +2343,8 @@ var index_gen$r = /*#__PURE__*/Object.freeze({
2343
2343
 
2344
2344
  var index$w = /*#__PURE__*/Object.freeze({
2345
2345
  __proto__: null,
2346
- v2: index_gen$s,
2347
- v3: index_gen$r
2346
+ v2: index_gen$t,
2347
+ v3: index_gen$s
2348
2348
  });
2349
2349
 
2350
2350
  // This file was automatically generated. DO NOT EDIT.
@@ -2636,7 +2636,7 @@ let API$t = class API extends API$v {
2636
2636
  // This file was automatically generated. DO NOT EDIT.
2637
2637
  // If you have any remark or suggestion do not hesitate to open an issue.
2638
2638
 
2639
- var index_gen$q = /*#__PURE__*/Object.freeze({
2639
+ var index_gen$r = /*#__PURE__*/Object.freeze({
2640
2640
  __proto__: null,
2641
2641
  API: API$t,
2642
2642
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
@@ -2644,7 +2644,7 @@ var index_gen$q = /*#__PURE__*/Object.freeze({
2644
2644
 
2645
2645
  var index$v = /*#__PURE__*/Object.freeze({
2646
2646
  __proto__: null,
2647
- v1alpha1: index_gen$q
2647
+ v1alpha1: index_gen$r
2648
2648
  });
2649
2649
 
2650
2650
  // This file was automatically generated. DO NOT EDIT.
@@ -3661,6 +3661,51 @@ const unmarshalGetConsumptionResponse = data => {
3661
3661
  updatedAt: unmarshalDate(data.updated_at)
3662
3662
  };
3663
3663
  };
3664
+ const unmarshalDiscountCoupon = data => {
3665
+ if (!isJSONObject(data)) {
3666
+ throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
3667
+ }
3668
+ return {
3669
+ description: data.description
3670
+ };
3671
+ };
3672
+ const unmarshalDiscountFilter = data => {
3673
+ if (!isJSONObject(data)) {
3674
+ throw new TypeError(`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`);
3675
+ }
3676
+ return {
3677
+ type: data.type,
3678
+ value: data.value
3679
+ };
3680
+ };
3681
+ const unmarshalDiscount = data => {
3682
+ if (!isJSONObject(data)) {
3683
+ throw new TypeError(`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`);
3684
+ }
3685
+ return {
3686
+ coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : undefined,
3687
+ creationDate: unmarshalDate(data.creation_date),
3688
+ description: data.description,
3689
+ filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
3690
+ id: data.id,
3691
+ mode: data.mode,
3692
+ organizationId: data.organization_id,
3693
+ startDate: unmarshalDate(data.start_date),
3694
+ stopDate: unmarshalDate(data.stop_date),
3695
+ value: data.value,
3696
+ valueRemaining: data.value_remaining,
3697
+ valueUsed: data.value_used
3698
+ };
3699
+ };
3700
+ const unmarshalListDiscountsResponse = data => {
3701
+ if (!isJSONObject(data)) {
3702
+ throw new TypeError(`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`);
3703
+ }
3704
+ return {
3705
+ discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
3706
+ totalCount: data.total_count
3707
+ };
3708
+ };
3664
3709
  const unmarshalInvoice = data => {
3665
3710
  if (!isJSONObject(data)) {
3666
3711
  throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
@@ -3734,19 +3779,34 @@ let API$r = class API extends API$v {
3734
3779
  urlParams: urlParams(['dl', 1], ['file_type', request.fileType]),
3735
3780
  responseType: 'blob'
3736
3781
  });
3782
+ pageOfListDiscounts = (request = {}) => this.client.fetch({
3783
+ method: 'GET',
3784
+ path: `/billing/v2alpha1/discounts`,
3785
+ urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3786
+ }, unmarshalListDiscountsResponse);
3787
+
3788
+ /**
3789
+ * List all user's discounts. List all discounts for an organization and
3790
+ * usable categories/products/offers/references/regions/zones where the
3791
+ * discount can be applied.
3792
+ *
3793
+ * @param request - The request {@link ListDiscountsRequest}
3794
+ * @returns A Promise of ListDiscountsResponse
3795
+ */
3796
+ listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
3737
3797
  };
3738
3798
 
3739
3799
  // This file was automatically generated. DO NOT EDIT.
3740
3800
  // If you have any remark or suggestion do not hesitate to open an issue.
3741
3801
 
3742
- var index_gen$p = /*#__PURE__*/Object.freeze({
3802
+ var index_gen$q = /*#__PURE__*/Object.freeze({
3743
3803
  __proto__: null,
3744
3804
  API: API$r
3745
3805
  });
3746
3806
 
3747
3807
  var index$s = /*#__PURE__*/Object.freeze({
3748
3808
  __proto__: null,
3749
- v2alpha1: index_gen$p
3809
+ v2alpha1: index_gen$q
3750
3810
  });
3751
3811
 
3752
3812
  // This file was automatically generated. DO NOT EDIT.
@@ -4196,7 +4256,7 @@ var validationRules_gen$a = /*#__PURE__*/Object.freeze({
4196
4256
  // This file was automatically generated. DO NOT EDIT.
4197
4257
  // If you have any remark or suggestion do not hesitate to open an issue.
4198
4258
 
4199
- var index_gen$o = /*#__PURE__*/Object.freeze({
4259
+ var index_gen$p = /*#__PURE__*/Object.freeze({
4200
4260
  __proto__: null,
4201
4261
  API: API$q,
4202
4262
  REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
@@ -4207,7 +4267,7 @@ var index_gen$o = /*#__PURE__*/Object.freeze({
4207
4267
 
4208
4268
  var index$r = /*#__PURE__*/Object.freeze({
4209
4269
  __proto__: null,
4210
- v1alpha1: index_gen$o
4270
+ v1alpha1: index_gen$p
4211
4271
  });
4212
4272
 
4213
4273
  // This file was automatically generated. DO NOT EDIT.
@@ -4322,7 +4382,9 @@ const unmarshalPlan = data => {
4322
4382
  retentionLogsInterval: data.retention_logs_interval,
4323
4383
  retentionMetricsInterval: data.retention_metrics_interval,
4324
4384
  retentionPrice: data.retention_price,
4325
- sampleIngestionPrice: data.sample_ingestion_price
4385
+ retentionTracesInterval: data.retention_traces_interval,
4386
+ sampleIngestionPrice: data.sample_ingestion_price,
4387
+ tracesIngestionPrice: data.traces_ingestion_price
4326
4388
  };
4327
4389
  };
4328
4390
  const unmarshalCockpit = data => {
@@ -4827,7 +4889,7 @@ let API$p = class API extends API$v {
4827
4889
  // This file was automatically generated. DO NOT EDIT.
4828
4890
  // If you have any remark or suggestion do not hesitate to open an issue.
4829
4891
 
4830
- var index_gen$n = /*#__PURE__*/Object.freeze({
4892
+ var index_gen$o = /*#__PURE__*/Object.freeze({
4831
4893
  __proto__: null,
4832
4894
  API: API$p,
4833
4895
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
@@ -4835,7 +4897,7 @@ var index_gen$n = /*#__PURE__*/Object.freeze({
4835
4897
 
4836
4898
  var index$q = /*#__PURE__*/Object.freeze({
4837
4899
  __proto__: null,
4838
- v1beta1: index_gen$n
4900
+ v1beta1: index_gen$o
4839
4901
  });
4840
4902
 
4841
4903
  // This file was automatically generated. DO NOT EDIT.
@@ -5038,7 +5100,7 @@ const unmarshalListDomainsResponse$3 = data => {
5038
5100
  totalCount: data.total_count
5039
5101
  };
5040
5102
  };
5041
- const unmarshalLog$1 = data => {
5103
+ const unmarshalLog$2 = data => {
5042
5104
  if (!isJSONObject(data)) {
5043
5105
  throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
5044
5106
  }
@@ -5051,12 +5113,12 @@ const unmarshalLog$1 = data => {
5051
5113
  timestamp: unmarshalDate(data.timestamp)
5052
5114
  };
5053
5115
  };
5054
- const unmarshalListLogsResponse$1 = data => {
5116
+ const unmarshalListLogsResponse$2 = data => {
5055
5117
  if (!isJSONObject(data)) {
5056
5118
  throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
5057
5119
  }
5058
5120
  return {
5059
- logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
5121
+ logs: unmarshalArrayOfObject(data.logs, unmarshalLog$2),
5060
5122
  totalCount: data.total_count
5061
5123
  };
5062
5124
  };
@@ -5163,12 +5225,12 @@ const marshalCreateTriggerRequest$1 = (request, defaults) => ({
5163
5225
  ...resolveOneOf([{
5164
5226
  param: 'scw_sqs_config',
5165
5227
  value: request.scwSqsConfig !== undefined ? marshalCreateTriggerRequestMnqSqsClientConfig$1(request.scwSqsConfig) : undefined
5166
- }, {
5167
- param: 'sqs_config',
5168
- value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
5169
5228
  }, {
5170
5229
  param: 'scw_nats_config',
5171
5230
  value: request.scwNatsConfig !== undefined ? marshalCreateTriggerRequestMnqNatsClientConfig$1(request.scwNatsConfig) : undefined
5231
+ }, {
5232
+ param: 'sqs_config',
5233
+ value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
5172
5234
  }])
5173
5235
  });
5174
5236
  const marshalUpdateContainerRequest = (request, defaults) => ({
@@ -5452,7 +5514,7 @@ let API$o = class API extends API$v {
5452
5514
  method: 'GET',
5453
5515
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/logs`,
5454
5516
  urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
5455
- }, unmarshalListLogsResponse$1);
5517
+ }, unmarshalListLogsResponse$2);
5456
5518
 
5457
5519
  /**
5458
5520
  * List your container logs. List the logs of the container with the specified
@@ -5735,7 +5797,7 @@ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
5735
5797
  // This file was automatically generated. DO NOT EDIT.
5736
5798
  // If you have any remark or suggestion do not hesitate to open an issue.
5737
5799
 
5738
- var index_gen$m = /*#__PURE__*/Object.freeze({
5800
+ var index_gen$n = /*#__PURE__*/Object.freeze({
5739
5801
  __proto__: null,
5740
5802
  API: API$o,
5741
5803
  CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
@@ -5749,7 +5811,7 @@ var index_gen$m = /*#__PURE__*/Object.freeze({
5749
5811
 
5750
5812
  var index$p = /*#__PURE__*/Object.freeze({
5751
5813
  __proto__: null,
5752
- v1beta1: index_gen$m
5814
+ v1beta1: index_gen$n
5753
5815
  });
5754
5816
 
5755
5817
  // This file was automatically generated. DO NOT EDIT.
@@ -7191,7 +7253,7 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
7191
7253
  // This file was automatically generated. DO NOT EDIT.
7192
7254
  // If you have any remark or suggestion do not hesitate to open an issue.
7193
7255
 
7194
- var index_gen$l = /*#__PURE__*/Object.freeze({
7256
+ var index_gen$m = /*#__PURE__*/Object.freeze({
7195
7257
  __proto__: null,
7196
7258
  API: API$n,
7197
7259
  INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
@@ -7204,7 +7266,7 @@ var index_gen$l = /*#__PURE__*/Object.freeze({
7204
7266
 
7205
7267
  var index$o = /*#__PURE__*/Object.freeze({
7206
7268
  __proto__: null,
7207
- v1beta1: index_gen$l
7269
+ v1beta1: index_gen$m
7208
7270
  });
7209
7271
 
7210
7272
  // This file was automatically generated. DO NOT EDIT.
@@ -9175,7 +9237,7 @@ class RegistrarAPI extends API$v {
9175
9237
  // This file was automatically generated. DO NOT EDIT.
9176
9238
  // If you have any remark or suggestion do not hesitate to open an issue.
9177
9239
 
9178
- var index_gen$k = /*#__PURE__*/Object.freeze({
9240
+ var index_gen$l = /*#__PURE__*/Object.freeze({
9179
9241
  __proto__: null,
9180
9242
  API: API$m,
9181
9243
  DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
@@ -9190,7 +9252,7 @@ var index_gen$k = /*#__PURE__*/Object.freeze({
9190
9252
 
9191
9253
  var index$n = /*#__PURE__*/Object.freeze({
9192
9254
  __proto__: null,
9193
- v2beta1: index_gen$k
9255
+ v2beta1: index_gen$l
9194
9256
  });
9195
9257
 
9196
9258
  // This file was automatically generated. DO NOT EDIT.
@@ -9487,7 +9549,7 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
9487
9549
  // This file was automatically generated. DO NOT EDIT.
9488
9550
  // If you have any remark or suggestion do not hesitate to open an issue.
9489
9551
 
9490
- var index_gen$j = /*#__PURE__*/Object.freeze({
9552
+ var index_gen$k = /*#__PURE__*/Object.freeze({
9491
9553
  __proto__: null,
9492
9554
  API: API$l,
9493
9555
  FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
@@ -9497,7 +9559,7 @@ var index_gen$j = /*#__PURE__*/Object.freeze({
9497
9559
 
9498
9560
  var index$m = /*#__PURE__*/Object.freeze({
9499
9561
  __proto__: null,
9500
- v1alpha1: index_gen$j
9562
+ v1alpha1: index_gen$k
9501
9563
  });
9502
9564
 
9503
9565
  // This file was automatically generated. DO NOT EDIT.
@@ -9735,7 +9797,7 @@ const unmarshalListFunctionsResponse = data => {
9735
9797
  totalCount: data.total_count
9736
9798
  };
9737
9799
  };
9738
- const unmarshalLog = data => {
9800
+ const unmarshalLog$1 = data => {
9739
9801
  if (!isJSONObject(data)) {
9740
9802
  throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
9741
9803
  }
@@ -9748,12 +9810,12 @@ const unmarshalLog = data => {
9748
9810
  timestamp: unmarshalDate(data.timestamp)
9749
9811
  };
9750
9812
  };
9751
- const unmarshalListLogsResponse = data => {
9813
+ const unmarshalListLogsResponse$1 = data => {
9752
9814
  if (!isJSONObject(data)) {
9753
9815
  throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
9754
9816
  }
9755
9817
  return {
9756
- logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
9818
+ logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
9757
9819
  totalCount: data.total_count
9758
9820
  };
9759
9821
  };
@@ -9866,12 +9928,12 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
9866
9928
  ...resolveOneOf([{
9867
9929
  param: 'scw_sqs_config',
9868
9930
  value: request.scwSqsConfig !== undefined ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
9869
- }, {
9870
- param: 'sqs_config',
9871
- value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
9872
9931
  }, {
9873
9932
  param: 'scw_nats_config',
9874
9933
  value: request.scwNatsConfig !== undefined ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
9934
+ }, {
9935
+ param: 'sqs_config',
9936
+ value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
9875
9937
  }])
9876
9938
  });
9877
9939
  const marshalUpdateCronRequest = (request, defaults) => ({
@@ -10192,7 +10254,7 @@ let API$k = class API extends API$v {
10192
10254
  method: 'GET',
10193
10255
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
10194
10256
  urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
10195
- }, unmarshalListLogsResponse);
10257
+ }, unmarshalListLogsResponse$1);
10196
10258
 
10197
10259
  /**
10198
10260
  * List application logs. List the application logs of the function with the
@@ -10337,12 +10399,26 @@ let API$k = class API extends API$v {
10337
10399
  method: 'DELETE',
10338
10400
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
10339
10401
  }, unmarshalToken);
10402
+
10403
+ /**
10404
+ * Create a trigger. Create a new trigger for a specified function.
10405
+ *
10406
+ * @param request - The request {@link CreateTriggerRequest}
10407
+ * @returns A Promise of Trigger
10408
+ */
10340
10409
  createTrigger = request => this.client.fetch({
10341
10410
  body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
10342
10411
  headers: jsonContentHeaders$j,
10343
10412
  method: 'POST',
10344
10413
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
10345
10414
  }, unmarshalTrigger);
10415
+
10416
+ /**
10417
+ * Get a trigger. Get a trigger with a specified ID.
10418
+ *
10419
+ * @param request - The request {@link GetTriggerRequest}
10420
+ * @returns A Promise of Trigger
10421
+ */
10346
10422
  getTrigger = request => this.client.fetch({
10347
10423
  method: 'GET',
10348
10424
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
@@ -10371,13 +10447,35 @@ let API$k = class API extends API$v {
10371
10447
  value: request.projectId
10372
10448
  }])))
10373
10449
  }, unmarshalListTriggersResponse);
10450
+
10451
+ /**
10452
+ * List all triggers. List all triggers belonging to a specified Organization
10453
+ * or Project.
10454
+ *
10455
+ * @param request - The request {@link ListTriggersRequest}
10456
+ * @returns A Promise of ListTriggersResponse
10457
+ */
10374
10458
  listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
10459
+
10460
+ /**
10461
+ * Update a trigger. Update a trigger with a specified ID.
10462
+ *
10463
+ * @param request - The request {@link UpdateTriggerRequest}
10464
+ * @returns A Promise of Trigger
10465
+ */
10375
10466
  updateTrigger = request => this.client.fetch({
10376
10467
  body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
10377
10468
  headers: jsonContentHeaders$j,
10378
10469
  method: 'PATCH',
10379
10470
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
10380
10471
  }, unmarshalTrigger);
10472
+
10473
+ /**
10474
+ * Delete a trigger. Delete a trigger with a specified ID.
10475
+ *
10476
+ * @param request - The request {@link DeleteTriggerRequest}
10477
+ * @returns A Promise of Trigger
10478
+ */
10381
10479
  deleteTrigger = request => this.client.fetch({
10382
10480
  method: 'DELETE',
10383
10481
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
@@ -10438,7 +10536,7 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
10438
10536
  // This file was automatically generated. DO NOT EDIT.
10439
10537
  // If you have any remark or suggestion do not hesitate to open an issue.
10440
10538
 
10441
- var index_gen$i = /*#__PURE__*/Object.freeze({
10539
+ var index_gen$j = /*#__PURE__*/Object.freeze({
10442
10540
  __proto__: null,
10443
10541
  API: API$k,
10444
10542
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
@@ -10452,7 +10550,7 @@ var index_gen$i = /*#__PURE__*/Object.freeze({
10452
10550
 
10453
10551
  var index$l = /*#__PURE__*/Object.freeze({
10454
10552
  __proto__: null,
10455
- v1beta1: index_gen$i
10553
+ v1beta1: index_gen$j
10456
10554
  });
10457
10555
 
10458
10556
  // This file was automatically generated. DO NOT EDIT.
@@ -10520,6 +10618,22 @@ const unmarshalGroup = data => {
10520
10618
  userIds: data.user_ids
10521
10619
  };
10522
10620
  };
10621
+ const unmarshalLog = data => {
10622
+ if (!isJSONObject(data)) {
10623
+ throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
10624
+ }
10625
+ return {
10626
+ action: data.action,
10627
+ bearerId: data.bearer_id,
10628
+ createdAt: unmarshalDate(data.created_at),
10629
+ id: data.id,
10630
+ ip: data.ip,
10631
+ organizationId: data.organization_id,
10632
+ resourceId: data.resource_id,
10633
+ resourceType: data.resource_type,
10634
+ userAgent: data.user_agent
10635
+ };
10636
+ };
10523
10637
  const unmarshalPolicy = data => {
10524
10638
  if (!isJSONObject(data)) {
10525
10639
  throw new TypeError(`Unmarshalling the type 'Policy' failed as data isn't a dictionary.`);
@@ -10622,6 +10736,15 @@ const unmarshalListJWTsResponse = data => {
10622
10736
  totalCount: data.total_count
10623
10737
  };
10624
10738
  };
10739
+ const unmarshalListLogsResponse = data => {
10740
+ if (!isJSONObject(data)) {
10741
+ throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
10742
+ }
10743
+ return {
10744
+ logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
10745
+ totalCount: data.total_count
10746
+ };
10747
+ };
10625
10748
  const unmarshalPermissionSet = data => {
10626
10749
  if (!isJSONObject(data)) {
10627
10750
  throw new TypeError(`Unmarshalling the type 'PermissionSet' failed as data isn't a dictionary.`);
@@ -11465,6 +11588,16 @@ let API$j = class API extends API$v {
11465
11588
  method: 'DELETE',
11466
11589
  path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
11467
11590
  });
11591
+ pageOfListLogs = (request = {}) => this.client.fetch({
11592
+ method: 'GET',
11593
+ path: `/iam/v1alpha1/logs`,
11594
+ urlParams: urlParams(['action', request.action], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['resource_type', request.resourceType], ['search', request.search])
11595
+ }, unmarshalListLogsResponse);
11596
+ listLogs = (request = {}) => enrichForPagination('logs', this.pageOfListLogs, request);
11597
+ getLog = request => this.client.fetch({
11598
+ method: 'GET',
11599
+ path: `/iam/v1alpha1/logs/${validatePathParam('logId', request.logId)}`
11600
+ }, unmarshalLog);
11468
11601
  };
11469
11602
 
11470
11603
  // This file was automatically generated. DO NOT EDIT.
@@ -11571,6 +11704,15 @@ const ListJWTsRequest = {
11571
11704
  lessThanOrEqual: 100
11572
11705
  }
11573
11706
  };
11707
+ const ListLogsRequest = {
11708
+ page: {
11709
+ greaterThan: 0
11710
+ },
11711
+ pageSize: {
11712
+ greaterThanOrEqual: 1,
11713
+ lessThanOrEqual: 100
11714
+ }
11715
+ };
11574
11716
  const ListPermissionSetsRequest = {
11575
11717
  page: {
11576
11718
  greaterThan: 0
@@ -11685,6 +11827,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
11685
11827
  ListApplicationsRequest: ListApplicationsRequest,
11686
11828
  ListGroupsRequest: ListGroupsRequest,
11687
11829
  ListJWTsRequest: ListJWTsRequest,
11830
+ ListLogsRequest: ListLogsRequest,
11688
11831
  ListPermissionSetsRequest: ListPermissionSetsRequest,
11689
11832
  ListPoliciesRequest: ListPoliciesRequest,
11690
11833
  ListQuotaRequest: ListQuotaRequest,
@@ -11701,7 +11844,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
11701
11844
  // This file was automatically generated. DO NOT EDIT.
11702
11845
  // If you have any remark or suggestion do not hesitate to open an issue.
11703
11846
 
11704
- var index_gen$h = /*#__PURE__*/Object.freeze({
11847
+ var index_gen$i = /*#__PURE__*/Object.freeze({
11705
11848
  __proto__: null,
11706
11849
  API: API$j,
11707
11850
  ValidationRules: validationRules_gen$5
@@ -11709,7 +11852,7 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
11709
11852
 
11710
11853
  var index$k = /*#__PURE__*/Object.freeze({
11711
11854
  __proto__: null,
11712
- v1alpha1: index_gen$h
11855
+ v1alpha1: index_gen$i
11713
11856
  });
11714
11857
 
11715
11858
  // This file was automatically generated. DO NOT EDIT.
@@ -11952,6 +12095,7 @@ const unmarshalServerIp = data => {
11952
12095
  id: data.id,
11953
12096
  netmask: data.netmask,
11954
12097
  provisioningMode: data.provisioning_mode,
12098
+ state: data.state,
11955
12099
  tags: data.tags
11956
12100
  };
11957
12101
  };
@@ -12986,6 +13130,7 @@ const marshalServerIp = (request, defaults) => ({
12986
13130
  id: request.id,
12987
13131
  netmask: request.netmask,
12988
13132
  provisioning_mode: request.provisioningMode,
13133
+ state: request.state,
12989
13134
  tags: request.tags
12990
13135
  });
12991
13136
  const marshalServerIpv6 = (request, defaults) => ({
@@ -13905,6 +14050,9 @@ const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
13905
14050
  /** Lists transient statutes of the enum {@link SecurityGroupState}. */
13906
14051
  const SECURITY_GROUP_TRANSIENT_STATUSES = ['syncing'];
13907
14052
 
14053
+ /** Lists transient statutes of the enum {@link ServerIpState}. */
14054
+ const SERVER_IP_TRANSIENT_STATUSES = ['pending'];
14055
+
13908
14056
  /** Lists transient statutes of the enum {@link ServerState}. */
13909
14057
  const SERVER_TRANSIENT_STATUSES = ['starting', 'stopping'];
13910
14058
 
@@ -14347,6 +14495,7 @@ var index$j = /*#__PURE__*/Object.freeze({
14347
14495
  IP_TRANSIENT_STATUSES: IP_TRANSIENT_STATUSES,
14348
14496
  PRIVATE_NIC_TRANSIENT_STATUSES: PRIVATE_NIC_TRANSIENT_STATUSES,
14349
14497
  SECURITY_GROUP_TRANSIENT_STATUSES: SECURITY_GROUP_TRANSIENT_STATUSES,
14498
+ SERVER_IP_TRANSIENT_STATUSES: SERVER_IP_TRANSIENT_STATUSES,
14350
14499
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES,
14351
14500
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$1,
14352
14501
  TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES,
@@ -15302,7 +15451,7 @@ let API$h = class API extends API$v {
15302
15451
  // This file was automatically generated. DO NOT EDIT.
15303
15452
  // If you have any remark or suggestion do not hesitate to open an issue.
15304
15453
 
15305
- var index_gen$g = /*#__PURE__*/Object.freeze({
15454
+ var index_gen$h = /*#__PURE__*/Object.freeze({
15306
15455
  __proto__: null,
15307
15456
  API: API$h,
15308
15457
  HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
@@ -15310,7 +15459,7 @@ var index_gen$g = /*#__PURE__*/Object.freeze({
15310
15459
 
15311
15460
  var index$h = /*#__PURE__*/Object.freeze({
15312
15461
  __proto__: null,
15313
- v1: index_gen$g
15462
+ v1: index_gen$h
15314
15463
  });
15315
15464
 
15316
15465
  // This file was automatically generated. DO NOT EDIT.
@@ -15495,7 +15644,7 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
15495
15644
  // This file was automatically generated. DO NOT EDIT.
15496
15645
  // If you have any remark or suggestion do not hesitate to open an issue.
15497
15646
 
15498
- var index_gen$f = /*#__PURE__*/Object.freeze({
15647
+ var index_gen$g = /*#__PURE__*/Object.freeze({
15499
15648
  __proto__: null,
15500
15649
  API: API$g,
15501
15650
  ValidationRules: validationRules_gen$4
@@ -15503,7 +15652,7 @@ var index_gen$f = /*#__PURE__*/Object.freeze({
15503
15652
 
15504
15653
  var index$g = /*#__PURE__*/Object.freeze({
15505
15654
  __proto__: null,
15506
- v1: index_gen$f
15655
+ v1: index_gen$g
15507
15656
  });
15508
15657
 
15509
15658
  // This file was automatically generated. DO NOT EDIT.
@@ -15642,20 +15791,14 @@ const unmarshalReplacePinResponse = data => {
15642
15791
  pin: data.pin ? unmarshalPin(data.pin) : undefined
15643
15792
  };
15644
15793
  };
15645
- const marshalPinOptions = (request, defaults) => ({
15646
- replication_count: request.replicationCount,
15647
- required_zones: request.requiredZones
15648
- });
15649
15794
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
15650
15795
  cid: request.cid,
15651
15796
  name: request.name,
15652
15797
  origins: request.origins,
15653
- pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
15654
15798
  volume_id: request.volumeId
15655
15799
  });
15656
15800
  const marshalCreatePinByURLRequest = (request, defaults) => ({
15657
15801
  name: request.name,
15658
- pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
15659
15802
  url: request.url,
15660
15803
  volume_id: request.volumeId
15661
15804
  });
@@ -15683,7 +15826,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
15683
15826
  cid: request.cid,
15684
15827
  name: request.name,
15685
15828
  origins: request.origins,
15686
- pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
15687
15829
  volume_id: request.volumeId
15688
15830
  });
15689
15831
  const marshalUpdateVolumeRequest = (request, defaults) => ({
@@ -15968,7 +16110,7 @@ class IpnsAPI extends API$v {
15968
16110
  // This file was automatically generated. DO NOT EDIT.
15969
16111
  // If you have any remark or suggestion do not hesitate to open an issue.
15970
16112
 
15971
- var index_gen$e = /*#__PURE__*/Object.freeze({
16113
+ var index_gen$f = /*#__PURE__*/Object.freeze({
15972
16114
  __proto__: null,
15973
16115
  API: API$f,
15974
16116
  IpnsAPI: IpnsAPI,
@@ -15978,7 +16120,7 @@ var index_gen$e = /*#__PURE__*/Object.freeze({
15978
16120
 
15979
16121
  var index$f = /*#__PURE__*/Object.freeze({
15980
16122
  __proto__: null,
15981
- v1alpha1: index_gen$e
16123
+ v1alpha1: index_gen$f
15982
16124
  });
15983
16125
 
15984
16126
  // This file was automatically generated. DO NOT EDIT.
@@ -19709,7 +19851,7 @@ let API$c = class API extends API$v {
19709
19851
  // This file was automatically generated. DO NOT EDIT.
19710
19852
  // If you have any remark or suggestion do not hesitate to open an issue.
19711
19853
 
19712
- var index_gen$d = /*#__PURE__*/Object.freeze({
19854
+ var index_gen$e = /*#__PURE__*/Object.freeze({
19713
19855
  __proto__: null,
19714
19856
  API: API$c
19715
19857
  });
@@ -19931,15 +20073,15 @@ let API$b = class API extends API$v {
19931
20073
  // This file was automatically generated. DO NOT EDIT.
19932
20074
  // If you have any remark or suggestion do not hesitate to open an issue.
19933
20075
 
19934
- var index_gen$c = /*#__PURE__*/Object.freeze({
20076
+ var index_gen$d = /*#__PURE__*/Object.freeze({
19935
20077
  __proto__: null,
19936
20078
  API: API$b
19937
20079
  });
19938
20080
 
19939
20081
  var index$a = /*#__PURE__*/Object.freeze({
19940
20082
  __proto__: null,
19941
- v1: index_gen$d,
19942
- v2: index_gen$c
20083
+ v1: index_gen$e,
20084
+ v2: index_gen$d
19943
20085
  });
19944
20086
 
19945
20087
  // This file was automatically generated. DO NOT EDIT.
@@ -20225,7 +20367,7 @@ let API$a = class API extends API$v {
20225
20367
  // This file was automatically generated. DO NOT EDIT.
20226
20368
  // If you have any remark or suggestion do not hesitate to open an issue.
20227
20369
 
20228
- var index_gen$b = /*#__PURE__*/Object.freeze({
20370
+ var index_gen$c = /*#__PURE__*/Object.freeze({
20229
20371
  __proto__: null,
20230
20372
  API: API$a
20231
20373
  });
@@ -20918,7 +21060,7 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
20918
21060
  // This file was automatically generated. DO NOT EDIT.
20919
21061
  // If you have any remark or suggestion do not hesitate to open an issue.
20920
21062
 
20921
- var index_gen$a = /*#__PURE__*/Object.freeze({
21063
+ var index_gen$b = /*#__PURE__*/Object.freeze({
20922
21064
  __proto__: null,
20923
21065
  NatsAPI: NatsAPI,
20924
21066
  SnsAPI: SnsAPI,
@@ -20928,8 +21070,8 @@ var index_gen$a = /*#__PURE__*/Object.freeze({
20928
21070
 
20929
21071
  var index$9 = /*#__PURE__*/Object.freeze({
20930
21072
  __proto__: null,
20931
- v1alpha1: index_gen$b,
20932
- v1beta1: index_gen$a
21073
+ v1alpha1: index_gen$c,
21074
+ v1beta1: index_gen$b
20933
21075
  });
20934
21076
 
20935
21077
  // This file was automatically generated. DO NOT EDIT.
@@ -21622,6 +21764,10 @@ const marshalUpdateUserRequest = (request, defaults) => ({
21622
21764
  is_admin: request.isAdmin,
21623
21765
  password: request.password
21624
21766
  });
21767
+ const marshalUpgradeInstanceRequestMajorUpgradeWorkflow = (request, defaults) => ({
21768
+ upgradable_version_id: request.upgradableVersionId,
21769
+ with_endpoints: request.withEndpoints
21770
+ });
21625
21771
  const marshalUpgradeInstanceRequest = (request, defaults) => ({
21626
21772
  ...resolveOneOf([{
21627
21773
  param: 'node_type',
@@ -21638,6 +21784,9 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({
21638
21784
  }, {
21639
21785
  param: 'upgradable_version_id',
21640
21786
  value: request.upgradableVersionId
21787
+ }, {
21788
+ param: 'major_upgrade_workflow',
21789
+ value: request.majorUpgradeWorkflow !== undefined ? marshalUpgradeInstanceRequestMajorUpgradeWorkflow(request.majorUpgradeWorkflow) : undefined
21641
21790
  }])
21642
21791
  });
21643
21792
 
@@ -22558,7 +22707,7 @@ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
22558
22707
  // This file was automatically generated. DO NOT EDIT.
22559
22708
  // If you have any remark or suggestion do not hesitate to open an issue.
22560
22709
 
22561
- var index_gen$9 = /*#__PURE__*/Object.freeze({
22710
+ var index_gen$a = /*#__PURE__*/Object.freeze({
22562
22711
  __proto__: null,
22563
22712
  API: API$9,
22564
22713
  DATABASE_BACKUP_TRANSIENT_STATUSES: DATABASE_BACKUP_TRANSIENT_STATUSES,
@@ -22572,7 +22721,7 @@ var index_gen$9 = /*#__PURE__*/Object.freeze({
22572
22721
 
22573
22722
  var index$8 = /*#__PURE__*/Object.freeze({
22574
22723
  __proto__: null,
22575
- v1: index_gen$9
22724
+ v1: index_gen$a
22576
22725
  });
22577
22726
 
22578
22727
  // This file was automatically generated. DO NOT EDIT.
@@ -23226,7 +23375,7 @@ let API$8 = class API extends API$v {
23226
23375
  // This file was automatically generated. DO NOT EDIT.
23227
23376
  // If you have any remark or suggestion do not hesitate to open an issue.
23228
23377
 
23229
- var index_gen$8 = /*#__PURE__*/Object.freeze({
23378
+ var index_gen$9 = /*#__PURE__*/Object.freeze({
23230
23379
  __proto__: null,
23231
23380
  API: API$8,
23232
23381
  CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES
@@ -23234,7 +23383,7 @@ var index_gen$8 = /*#__PURE__*/Object.freeze({
23234
23383
 
23235
23384
  var index$7 = /*#__PURE__*/Object.freeze({
23236
23385
  __proto__: null,
23237
- v1: index_gen$8
23386
+ v1: index_gen$9
23238
23387
  });
23239
23388
 
23240
23389
  // This file was automatically generated. DO NOT EDIT.
@@ -23567,7 +23716,7 @@ let API$7 = class API extends API$v {
23567
23716
  // This file was automatically generated. DO NOT EDIT.
23568
23717
  // If you have any remark or suggestion do not hesitate to open an issue.
23569
23718
 
23570
- var index_gen$7 = /*#__PURE__*/Object.freeze({
23719
+ var index_gen$8 = /*#__PURE__*/Object.freeze({
23571
23720
  __proto__: null,
23572
23721
  API: API$7,
23573
23722
  IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES,
@@ -23577,7 +23726,7 @@ var index_gen$7 = /*#__PURE__*/Object.freeze({
23577
23726
 
23578
23727
  var index$6 = /*#__PURE__*/Object.freeze({
23579
23728
  __proto__: null,
23580
- v1: index_gen$7
23729
+ v1: index_gen$8
23581
23730
  });
23582
23731
 
23583
23732
  // This file was automatically generated. DO NOT EDIT.
@@ -23615,6 +23764,8 @@ const unmarshalSecret = data => {
23615
23764
  return {
23616
23765
  createdAt: unmarshalDate(data.created_at),
23617
23766
  description: data.description,
23767
+ ephemeralAction: data.ephemeral_action,
23768
+ expiresAt: unmarshalDate(data.expires_at),
23618
23769
  id: data.id,
23619
23770
  isManaged: data.is_managed,
23620
23771
  isProtected: data.is_protected,
@@ -23687,6 +23838,8 @@ const marshalCreateFolderRequest = (request, defaults) => ({
23687
23838
  });
23688
23839
  const marshalCreateSecretRequest = (request, defaults) => ({
23689
23840
  description: request.description,
23841
+ ephemeral_action: request.ephemeralAction,
23842
+ expires_at: request.expiresAt,
23690
23843
  name: request.name,
23691
23844
  path: request.path,
23692
23845
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -23740,7 +23893,7 @@ const jsonContentHeaders$6 = {
23740
23893
  */
23741
23894
  let API$6 = class API extends API$v {
23742
23895
  /** Lists the available regions of the API. */
23743
- static LOCALITIES = ['fr-par'];
23896
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
23744
23897
 
23745
23898
  /**
23746
23899
  * Create a secret. You must specify the `region` to create a secret.
@@ -23816,7 +23969,7 @@ let API$6 = class API extends API$v {
23816
23969
  pageOfListSecrets = (request = {}) => this.client.fetch({
23817
23970
  method: 'GET',
23818
23971
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`,
23819
- urlParams: urlParams(['is_managed', request.isManaged], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
23972
+ urlParams: urlParams(['is_ephemeral', request.isEphemeral], ['is_managed', request.isManaged], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
23820
23973
  }, unmarshalListSecretsResponse);
23821
23974
 
23822
23975
  /**
@@ -24090,14 +24243,18 @@ let API$6 = class API extends API$v {
24090
24243
  // This file was automatically generated. DO NOT EDIT.
24091
24244
  // If you have any remark or suggestion do not hesitate to open an issue.
24092
24245
 
24093
- var index_gen$6 = /*#__PURE__*/Object.freeze({
24246
+ var index_gen$7 = /*#__PURE__*/Object.freeze({
24094
24247
  __proto__: null,
24095
24248
  API: API$6
24096
24249
  });
24097
24250
 
24098
24251
  var index$5 = /*#__PURE__*/Object.freeze({
24099
24252
  __proto__: null,
24100
- v1alpha1: index_gen$6
24253
+ v1alpha1: index_gen$7
24254
+ });
24255
+
24256
+ var index_gen$6 = /*#__PURE__*/Object.freeze({
24257
+ __proto__: null
24101
24258
  });
24102
24259
 
24103
24260
  // This file was automatically generated. DO NOT EDIT.
@@ -24369,6 +24526,18 @@ const unmarshalEmail = data => {
24369
24526
  updatedAt: unmarshalDate(data.updated_at)
24370
24527
  };
24371
24528
  };
24529
+ const unmarshalDomainReputation = data => {
24530
+ if (!isJSONObject(data)) {
24531
+ throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
24532
+ }
24533
+ return {
24534
+ previousScore: data.previous_score,
24535
+ previousScoredAt: unmarshalDate(data.previous_scored_at),
24536
+ score: data.score,
24537
+ scoredAt: unmarshalDate(data.scored_at),
24538
+ status: data.status
24539
+ };
24540
+ };
24372
24541
  const unmarshalDomainStatistics = data => {
24373
24542
  if (!isJSONObject(data)) {
24374
24543
  throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
@@ -24395,6 +24564,7 @@ const unmarshalDomain = data => {
24395
24564
  organizationId: data.organization_id,
24396
24565
  projectId: data.project_id,
24397
24566
  region: data.region,
24567
+ reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
24398
24568
  revokedAt: unmarshalDate(data.revoked_at),
24399
24569
  spfConfig: data.spf_config,
24400
24570
  statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : undefined,
@@ -24603,7 +24773,13 @@ let API$4 = class API extends API$v {
24603
24773
 
24604
24774
  /**
24605
24775
  * Get information about a domain. Retrieve information about a specific
24606
- * domain using the `region` and `domain_id` parameters.
24776
+ * domain using the `region` and `domain_id` parameters. Monitor your domain's
24777
+ * reputation and improve **average** and **bad** reputation statuses, using
24778
+ * your domain's **Email activity** tab on the [Scaleway
24779
+ * console](https://console.scaleway.com/transactional-email/domains) to get a
24780
+ * more detailed report. Check out our [dedicated
24781
+ * documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/)
24782
+ * to improve your domain's reputation.
24607
24783
  *
24608
24784
  * @param request - The request {@link GetDomainRequest}
24609
24785
  * @returns A Promise of Domain
@@ -24628,7 +24804,7 @@ let API$4 = class API extends API$v {
24628
24804
  }, unmarshalListDomainsResponse);
24629
24805
 
24630
24806
  /**
24631
- * List domains. Retrieve domains in a specific project or in a specific
24807
+ * List domains. Retrieve domains in a specific Project or in a specific
24632
24808
  * Organization using the `region` parameter.
24633
24809
  *
24634
24810
  * @param request - The request {@link ListDomainsRequest}
@@ -25223,6 +25399,7 @@ const unmarshalIpamConfig = data => {
25223
25399
  throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
25224
25400
  }
25225
25401
  return {
25402
+ ipamIpId: data.ipam_ip_id,
25226
25403
  pushDefaultRoute: data.push_default_route
25227
25404
  };
25228
25405
  };
@@ -25430,7 +25607,8 @@ const marshalCreateDHCPEntryRequest = (request, defaults) => ({
25430
25607
  ip_address: request.ipAddress,
25431
25608
  mac_address: request.macAddress
25432
25609
  });
25433
- const marshalIpamConfig = (request, defaults) => ({
25610
+ const marshalCreateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
25611
+ ipam_ip_id: request.ipamIpId,
25434
25612
  push_default_route: request.pushDefaultRoute
25435
25613
  });
25436
25614
  const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
@@ -25449,7 +25627,7 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
25449
25627
  value: request.address
25450
25628
  }, {
25451
25629
  param: 'ipam_config',
25452
- value: request.ipamConfig !== undefined ? marshalIpamConfig(request.ipamConfig) : undefined
25630
+ value: request.ipamConfig !== undefined ? marshalCreateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
25453
25631
  }])
25454
25632
  });
25455
25633
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -25510,6 +25688,10 @@ const marshalUpdateDHCPRequest = (request, defaults) => ({
25510
25688
  subnet: request.subnet,
25511
25689
  valid_lifetime: request.validLifetime
25512
25690
  });
25691
+ const marshalUpdateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
25692
+ ipam_ip_id: request.ipamIpId,
25693
+ push_default_route: request.pushDefaultRoute
25694
+ });
25513
25695
  const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
25514
25696
  enable_dhcp: request.enableDhcp,
25515
25697
  enable_masquerade: request.enableMasquerade,
@@ -25521,7 +25703,7 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
25521
25703
  value: request.address
25522
25704
  }, {
25523
25705
  param: 'ipam_config',
25524
- value: request.ipamConfig !== undefined ? marshalIpamConfig(request.ipamConfig) : undefined
25706
+ value: request.ipamConfig !== undefined ? marshalUpdateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
25525
25707
  }])
25526
25708
  });
25527
25709
  const marshalUpdateGatewayRequest = (request, defaults) => ({
@@ -26448,6 +26630,7 @@ exports.RDB = index$8;
26448
26630
  exports.Redis = index$7;
26449
26631
  exports.Registry = index$6;
26450
26632
  exports.Secret = index$5;
26633
+ exports.Std = index_gen$6;
26451
26634
  exports.Test = index$4;
26452
26635
  exports.TransactionalEmail = index$3;
26453
26636
  exports.VPC = index$2;