@scaleway/sdk 2.19.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.18.1';
500
+ const version = 'v2.20.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -1706,7 +1706,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1706
1706
  *
1707
1707
  * @internal
1708
1708
  */
1709
- let API$y = class API {
1709
+ let API$x = class API {
1710
1710
  constructor(client) {
1711
1711
  this.client = client;
1712
1712
  }
@@ -2077,7 +2077,7 @@ const jsonContentHeaders$v = {
2077
2077
  *
2078
2078
  * User related data. This API allows you to manage projects.
2079
2079
  */
2080
- let API$x = class API extends API$y {
2080
+ let API$w = class API extends API$x {
2081
2081
  /**
2082
2082
  * Create a new Project for an Organization. Deprecated in favor of Account
2083
2083
  * API v3. Generate a new Project for an Organization, specifying its
@@ -2162,9 +2162,9 @@ let API$x = class API extends API$y {
2162
2162
  // This file was automatically generated. DO NOT EDIT.
2163
2163
  // If you have any remark or suggestion do not hesitate to open an issue.
2164
2164
 
2165
- var index_gen$w = /*#__PURE__*/Object.freeze({
2165
+ var index_gen$v = /*#__PURE__*/Object.freeze({
2166
2166
  __proto__: null,
2167
- API: API$x
2167
+ API: API$w
2168
2168
  });
2169
2169
 
2170
2170
  // This file was automatically generated. DO NOT EDIT.
@@ -2212,7 +2212,7 @@ const jsonContentHeaders$u = {
2212
2212
  *
2213
2213
  * This API allows you to manage projects.
2214
2214
  */
2215
- class ProjectAPI extends API$y {
2215
+ class ProjectAPI extends API$x {
2216
2216
  /**
2217
2217
  * Create a new Project for an Organization. Generate a new Project for an
2218
2218
  * Organization, specifying its configuration including name and description.
@@ -2332,7 +2332,7 @@ var validationRules_gen$e = /*#__PURE__*/Object.freeze({
2332
2332
  // This file was automatically generated. DO NOT EDIT.
2333
2333
  // If you have any remark or suggestion do not hesitate to open an issue.
2334
2334
 
2335
- var index_gen$v = /*#__PURE__*/Object.freeze({
2335
+ var index_gen$u = /*#__PURE__*/Object.freeze({
2336
2336
  __proto__: null,
2337
2337
  ProjectAPI: ProjectAPI,
2338
2338
  ValidationRules: validationRules_gen$e
@@ -2340,8 +2340,8 @@ var index_gen$v = /*#__PURE__*/Object.freeze({
2340
2340
 
2341
2341
  var index$y = /*#__PURE__*/Object.freeze({
2342
2342
  __proto__: null,
2343
- v2: index_gen$w,
2344
- v3: index_gen$v
2343
+ v2: index_gen$v,
2344
+ v3: index_gen$u
2345
2345
  });
2346
2346
 
2347
2347
  // This file was automatically generated. DO NOT EDIT.
@@ -2465,7 +2465,7 @@ const jsonContentHeaders$t = {
2465
2465
  };
2466
2466
 
2467
2467
  /** Apple silicon API. */
2468
- let API$w = class API extends API$y {
2468
+ let API$v = class API extends API$x {
2469
2469
  /** Lists the available zones of the API. */
2470
2470
  static LOCALITIES = ['fr-par-3'];
2471
2471
 
@@ -2633,15 +2633,15 @@ let API$w = class API extends API$y {
2633
2633
  // This file was automatically generated. DO NOT EDIT.
2634
2634
  // If you have any remark or suggestion do not hesitate to open an issue.
2635
2635
 
2636
- var index_gen$u = /*#__PURE__*/Object.freeze({
2636
+ var index_gen$t = /*#__PURE__*/Object.freeze({
2637
2637
  __proto__: null,
2638
- API: API$w,
2638
+ API: API$v,
2639
2639
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2640
2640
  });
2641
2641
 
2642
2642
  var index$x = /*#__PURE__*/Object.freeze({
2643
2643
  __proto__: null,
2644
- v1alpha1: index_gen$u
2644
+ v1alpha1: index_gen$t
2645
2645
  });
2646
2646
 
2647
2647
  // This file was automatically generated. DO NOT EDIT.
@@ -3068,7 +3068,7 @@ const jsonContentHeaders$s = {
3068
3068
  *
3069
3069
  * This API allows to manage your Elastic Metal server.
3070
3070
  */
3071
- let API$v = class API extends API$y {
3071
+ let API$u = class API extends API$x {
3072
3072
  /** Lists the available zones of the API. */
3073
3073
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
3074
3074
  pageOfListServers = (request = {}) => this.client.fetch({
@@ -3418,7 +3418,7 @@ let API$v = class API extends API$y {
3418
3418
  };
3419
3419
 
3420
3420
  /** Elastic Metal Private Network API. */
3421
- class PrivateNetworkAPI extends API$y {
3421
+ class PrivateNetworkAPI extends API$x {
3422
3422
  /** Lists the available zones of the API. */
3423
3423
  static LOCALITIES = ['fr-par-2'];
3424
3424
 
@@ -3476,7 +3476,7 @@ class PrivateNetworkAPI extends API$y {
3476
3476
  });
3477
3477
  }
3478
3478
 
3479
- class BaremetalV1UtilsAPI extends API$v {
3479
+ class BaremetalV1UtilsAPI extends API$u {
3480
3480
  /**
3481
3481
  * Waits for {@link ServerInstall} to be in a final state.
3482
3482
  *
@@ -3735,7 +3735,7 @@ const unmarshalListInvoicesResponse$1 = data => {
3735
3735
  *
3736
3736
  * This API allows you to query your consumption.
3737
3737
  */
3738
- let API$u = class API extends API$y {
3738
+ let API$t = class API extends API$x {
3739
3739
  /**
3740
3740
  * Get current month's consumption. The consumption reflects the amount of
3741
3741
  * money you have spent for the products you have used. The consumption value
@@ -3796,9 +3796,9 @@ let API$u = class API extends API$y {
3796
3796
  // This file was automatically generated. DO NOT EDIT.
3797
3797
  // If you have any remark or suggestion do not hesitate to open an issue.
3798
3798
 
3799
- var index_gen$t = /*#__PURE__*/Object.freeze({
3799
+ var index_gen$s = /*#__PURE__*/Object.freeze({
3800
3800
  __proto__: null,
3801
- API: API$u
3801
+ API: API$t
3802
3802
  });
3803
3803
 
3804
3804
  // This file was automatically generated. DO NOT EDIT.
@@ -3936,7 +3936,7 @@ const unmarshalListTaxesResponse = data => {
3936
3936
  *
3937
3937
  * This API allows you to query your consumption.
3938
3938
  */
3939
- let API$t = class API extends API$y {
3939
+ let API$s = class API extends API$x {
3940
3940
  pageOfListConsumptions = (request = {}) => this.client.fetch({
3941
3941
  method: 'GET',
3942
3942
  path: `/billing/v2beta1/consumptions`,
@@ -4044,15 +4044,15 @@ let API$t = class API extends API$y {
4044
4044
  // This file was automatically generated. DO NOT EDIT.
4045
4045
  // If you have any remark or suggestion do not hesitate to open an issue.
4046
4046
 
4047
- var index_gen$s = /*#__PURE__*/Object.freeze({
4047
+ var index_gen$r = /*#__PURE__*/Object.freeze({
4048
4048
  __proto__: null,
4049
- API: API$t
4049
+ API: API$s
4050
4050
  });
4051
4051
 
4052
4052
  var index$u = /*#__PURE__*/Object.freeze({
4053
4053
  __proto__: null,
4054
- v2alpha1: index_gen$t,
4055
- v2beta1: index_gen$s
4054
+ v2alpha1: index_gen$s,
4055
+ v2beta1: index_gen$r
4056
4056
  });
4057
4057
 
4058
4058
  // This file was automatically generated. DO NOT EDIT.
@@ -4231,7 +4231,7 @@ const jsonContentHeaders$r = {
4231
4231
  *
4232
4232
  * This API allows you to use and manage your Block Storage volumes.
4233
4233
  */
4234
- let API$s = class API extends API$y {
4234
+ let API$r = class API extends API$x {
4235
4235
  /** Lists the available zones of the API. */
4236
4236
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-3', 'pl-waw-3'];
4237
4237
  pageOfListVolumeTypes = (request = {}) => this.client.fetch({
@@ -4466,9 +4466,9 @@ var validationRules_gen$c = /*#__PURE__*/Object.freeze({
4466
4466
  // This file was automatically generated. DO NOT EDIT.
4467
4467
  // If you have any remark or suggestion do not hesitate to open an issue.
4468
4468
 
4469
- var index_gen$r = /*#__PURE__*/Object.freeze({
4469
+ var index_gen$q = /*#__PURE__*/Object.freeze({
4470
4470
  __proto__: null,
4471
- API: API$s,
4471
+ API: API$r,
4472
4472
  REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
4473
4473
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
4474
4474
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
@@ -4477,7 +4477,7 @@ var index_gen$r = /*#__PURE__*/Object.freeze({
4477
4477
 
4478
4478
  var index$t = /*#__PURE__*/Object.freeze({
4479
4479
  __proto__: null,
4480
- v1alpha1: index_gen$r
4480
+ v1alpha1: index_gen$q
4481
4481
  });
4482
4482
 
4483
4483
  // This file was automatically generated. DO NOT EDIT.
@@ -4765,7 +4765,7 @@ const jsonContentHeaders$q = {
4765
4765
  * logs. It also provides you with a dedicated Grafana for dashboarding to
4766
4766
  * visualize your metrics and logs.
4767
4767
  */
4768
- let API$r = class API extends API$y {
4768
+ let API$q = class API extends API$x {
4769
4769
  /**
4770
4770
  * Activate the Cockpit of a given Project specified by the Project ID.
4771
4771
  *
@@ -5100,15 +5100,15 @@ let API$r = class API extends API$y {
5100
5100
  // This file was automatically generated. DO NOT EDIT.
5101
5101
  // If you have any remark or suggestion do not hesitate to open an issue.
5102
5102
 
5103
- var index_gen$q = /*#__PURE__*/Object.freeze({
5103
+ var index_gen$p = /*#__PURE__*/Object.freeze({
5104
5104
  __proto__: null,
5105
- API: API$r,
5105
+ API: API$q,
5106
5106
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
5107
5107
  });
5108
5108
 
5109
5109
  var index$s = /*#__PURE__*/Object.freeze({
5110
5110
  __proto__: null,
5111
- v1beta1: index_gen$q
5111
+ v1beta1: index_gen$p
5112
5112
  });
5113
5113
 
5114
5114
  // This file was automatically generated. DO NOT EDIT.
@@ -5309,28 +5309,6 @@ const unmarshalListDomainsResponse$3 = data => {
5309
5309
  totalCount: data.total_count
5310
5310
  };
5311
5311
  };
5312
- const unmarshalLog$2 = data => {
5313
- if (!isJSONObject(data)) {
5314
- throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
5315
- }
5316
- return {
5317
- id: data.id,
5318
- level: data.level,
5319
- message: data.message,
5320
- source: data.source,
5321
- stream: data.stream,
5322
- timestamp: unmarshalDate(data.timestamp)
5323
- };
5324
- };
5325
- const unmarshalListLogsResponse$2 = data => {
5326
- if (!isJSONObject(data)) {
5327
- throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
5328
- }
5329
- return {
5330
- logs: unmarshalArrayOfObject(data.logs, unmarshalLog$2),
5331
- totalCount: data.total_count
5332
- };
5333
- };
5334
5312
  const unmarshalListNamespacesResponse$2 = data => {
5335
5313
  if (!isJSONObject(data)) {
5336
5314
  throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
@@ -5488,7 +5466,7 @@ const jsonContentHeaders$p = {
5488
5466
  };
5489
5467
 
5490
5468
  /** Serverless Containers API. */
5491
- let API$q = class API extends API$y {
5469
+ let API$p = class API extends API$x {
5492
5470
  /** Lists the available regions of the API. */
5493
5471
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
5494
5472
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -5717,24 +5695,6 @@ let API$q = class API extends API$y {
5717
5695
  method: 'DELETE',
5718
5696
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
5719
5697
  }, unmarshalCron$1);
5720
- pageOfListLogs = request => this.client.fetch({
5721
- method: 'GET',
5722
- path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/logs`,
5723
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
5724
- }, unmarshalListLogsResponse$2);
5725
-
5726
- /**
5727
- * Deprecated (replaced by
5728
- * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
5729
- * container logs. Deprecated (replaced by
5730
- * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
5731
- * logs of the container with the specified ID.
5732
- *
5733
- * @deprecated
5734
- * @param request - The request {@link ListLogsRequest}
5735
- * @returns A Promise of ListLogsResponse
5736
- */
5737
- listLogs = request => enrichForPagination('logs', this.pageOfListLogs, request);
5738
5698
  pageOfListDomains = request => this.client.fetch({
5739
5699
  method: 'GET',
5740
5700
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`,
@@ -6010,9 +5970,9 @@ var validationRules_gen$b = /*#__PURE__*/Object.freeze({
6010
5970
  // This file was automatically generated. DO NOT EDIT.
6011
5971
  // If you have any remark or suggestion do not hesitate to open an issue.
6012
5972
 
6013
- var index_gen$p = /*#__PURE__*/Object.freeze({
5973
+ var index_gen$o = /*#__PURE__*/Object.freeze({
6014
5974
  __proto__: null,
6015
- API: API$q,
5975
+ API: API$p,
6016
5976
  CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
6017
5977
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
6018
5978
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
@@ -6024,7 +5984,7 @@ var index_gen$p = /*#__PURE__*/Object.freeze({
6024
5984
 
6025
5985
  var index$r = /*#__PURE__*/Object.freeze({
6026
5986
  __proto__: null,
6027
- v1beta1: index_gen$p
5987
+ v1beta1: index_gen$o
6028
5988
  });
6029
5989
 
6030
5990
  // This file was automatically generated. DO NOT EDIT.
@@ -6701,7 +6661,7 @@ const jsonContentHeaders$o = {
6701
6661
  };
6702
6662
 
6703
6663
  /** Managed Document Databases API. */
6704
- let API$p = class API extends API$y {
6664
+ let API$o = class API extends API$x {
6705
6665
  /** Lists the available regions of the API. */
6706
6666
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
6707
6667
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -7485,9 +7445,9 @@ var validationRules_gen$a = /*#__PURE__*/Object.freeze({
7485
7445
  // This file was automatically generated. DO NOT EDIT.
7486
7446
  // If you have any remark or suggestion do not hesitate to open an issue.
7487
7447
 
7488
- var index_gen$o = /*#__PURE__*/Object.freeze({
7448
+ var index_gen$n = /*#__PURE__*/Object.freeze({
7489
7449
  __proto__: null,
7490
- API: API$p,
7450
+ API: API$o,
7491
7451
  INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
7492
7452
  INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES$2,
7493
7453
  MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
@@ -7498,7 +7458,7 @@ var index_gen$o = /*#__PURE__*/Object.freeze({
7498
7458
 
7499
7459
  var index$q = /*#__PURE__*/Object.freeze({
7500
7460
  __proto__: null,
7501
- v1beta1: index_gen$o
7461
+ v1beta1: index_gen$n
7502
7462
  });
7503
7463
 
7504
7464
  // This file was automatically generated. DO NOT EDIT.
@@ -7827,6 +7787,7 @@ const unmarshalDomain$2 = data => {
7827
7787
  linkedProducts: data.linked_products,
7828
7788
  organizationId: data.organization_id,
7829
7789
  ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : undefined,
7790
+ pendingTrade: data.pending_trade,
7830
7791
  projectId: data.project_id,
7831
7792
  registrar: data.registrar,
7832
7793
  status: data.status,
@@ -8121,6 +8082,7 @@ const unmarshalDomainSummary = data => {
8121
8082
  }
8122
8083
  return {
8123
8084
  autoRenewStatus: data.auto_renew_status,
8085
+ createdAt: unmarshalDate(data.created_at),
8124
8086
  dnssecStatus: data.dnssec_status,
8125
8087
  domain: data.domain,
8126
8088
  eppCode: data.epp_code,
@@ -8128,6 +8090,7 @@ const unmarshalDomainSummary = data => {
8128
8090
  externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(data.external_domain_registration_status) : undefined,
8129
8091
  isExternal: data.is_external,
8130
8092
  organizationId: data.organization_id,
8093
+ pendingTrade: data.pending_trade,
8131
8094
  projectId: data.project_id,
8132
8095
  registrar: data.registrar,
8133
8096
  status: data.status,
@@ -8710,7 +8673,7 @@ const jsonContentHeaders$n = {
8710
8673
  *
8711
8674
  * Manage your domains, DNS zones and records with the Domains and DNS API.
8712
8675
  */
8713
- let API$o = class API extends API$y {
8676
+ let API$n = class API extends API$x {
8714
8677
  pageOfListDNSZones = request => this.client.fetch({
8715
8678
  method: 'GET',
8716
8679
  path: `/domain/v2beta1/dns-zones`,
@@ -9062,7 +9025,7 @@ let API$o = class API extends API$y {
9062
9025
  *
9063
9026
  * Manage your domains and contacts.
9064
9027
  */
9065
- class RegistrarAPI extends API$y {
9028
+ class RegistrarAPI extends API$x {
9066
9029
  pageOfListTasks = (request = {}) => this.client.fetch({
9067
9030
  method: 'GET',
9068
9031
  path: `/domain/v2beta1/tasks`,
@@ -9473,9 +9436,9 @@ class RegistrarAPI extends API$y {
9473
9436
  // This file was automatically generated. DO NOT EDIT.
9474
9437
  // If you have any remark or suggestion do not hesitate to open an issue.
9475
9438
 
9476
- var index_gen$n = /*#__PURE__*/Object.freeze({
9439
+ var index_gen$m = /*#__PURE__*/Object.freeze({
9477
9440
  __proto__: null,
9478
- API: API$o,
9441
+ API: API$n,
9479
9442
  DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
9480
9443
  DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
9481
9444
  DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
@@ -9488,7 +9451,7 @@ var index_gen$n = /*#__PURE__*/Object.freeze({
9488
9451
 
9489
9452
  var index$p = /*#__PURE__*/Object.freeze({
9490
9453
  __proto__: null,
9491
- v2beta1: index_gen$n
9454
+ v2beta1: index_gen$m
9492
9455
  });
9493
9456
 
9494
9457
  // This file was automatically generated. DO NOT EDIT.
@@ -9600,7 +9563,7 @@ const jsonContentHeaders$m = {
9600
9563
  };
9601
9564
 
9602
9565
  /** Elastic Metal - Flexible IP API. */
9603
- let API$n = class API extends API$y {
9566
+ let API$m = class API extends API$x {
9604
9567
  /** Lists the available zones of the API. */
9605
9568
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
9606
9569
 
@@ -9785,9 +9748,9 @@ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
9785
9748
  // This file was automatically generated. DO NOT EDIT.
9786
9749
  // If you have any remark or suggestion do not hesitate to open an issue.
9787
9750
 
9788
- var index_gen$m = /*#__PURE__*/Object.freeze({
9751
+ var index_gen$l = /*#__PURE__*/Object.freeze({
9789
9752
  __proto__: null,
9790
- API: API$n,
9753
+ API: API$m,
9791
9754
  FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
9792
9755
  MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
9793
9756
  ValidationRules: validationRules_gen$9
@@ -9795,7 +9758,7 @@ var index_gen$m = /*#__PURE__*/Object.freeze({
9795
9758
 
9796
9759
  var index$o = /*#__PURE__*/Object.freeze({
9797
9760
  __proto__: null,
9798
- v1alpha1: index_gen$m
9761
+ v1alpha1: index_gen$l
9799
9762
  });
9800
9763
 
9801
9764
  // This file was automatically generated. DO NOT EDIT.
@@ -10031,28 +9994,6 @@ const unmarshalListFunctionsResponse = data => {
10031
9994
  totalCount: data.total_count
10032
9995
  };
10033
9996
  };
10034
- const unmarshalLog$1 = data => {
10035
- if (!isJSONObject(data)) {
10036
- throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
10037
- }
10038
- return {
10039
- id: data.id,
10040
- level: data.level,
10041
- message: data.message,
10042
- source: data.source,
10043
- stream: data.stream,
10044
- timestamp: unmarshalDate(data.timestamp)
10045
- };
10046
- };
10047
- const unmarshalListLogsResponse$1 = data => {
10048
- if (!isJSONObject(data)) {
10049
- throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
10050
- }
10051
- return {
10052
- logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
10053
- totalCount: data.total_count
10054
- };
10055
- };
10056
9997
  const unmarshalListNamespacesResponse$1 = data => {
10057
9998
  if (!isJSONObject(data)) {
10058
9999
  throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
@@ -10213,7 +10154,7 @@ const jsonContentHeaders$l = {
10213
10154
  };
10214
10155
 
10215
10156
  /** Serverless Functions API. */
10216
- let API$m = class API extends API$y {
10157
+ let API$l = class API extends API$x {
10217
10158
  /** Lists the available regions of the API. */
10218
10159
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
10219
10160
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -10482,24 +10423,6 @@ let API$m = class API extends API$y {
10482
10423
  method: 'DELETE',
10483
10424
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
10484
10425
  }, unmarshalCron);
10485
- pageOfListLogs = request => this.client.fetch({
10486
- method: 'GET',
10487
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
10488
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
10489
- }, unmarshalListLogsResponse$1);
10490
-
10491
- /**
10492
- * Deprecated (replaced by
10493
- * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
10494
- * application logs. Deprecated (replaced by
10495
- * [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
10496
- * application logs of the function with the specified ID.
10497
- *
10498
- * @deprecated
10499
- * @param request - The request {@link ListLogsRequest}
10500
- * @returns A Promise of ListLogsResponse
10501
- */
10502
- listLogs = request => enrichForPagination('logs', this.pageOfListLogs, request);
10503
10426
  pageOfListDomains = request => this.client.fetch({
10504
10427
  method: 'GET',
10505
10428
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`,
@@ -10774,9 +10697,9 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
10774
10697
  // This file was automatically generated. DO NOT EDIT.
10775
10698
  // If you have any remark or suggestion do not hesitate to open an issue.
10776
10699
 
10777
- var index_gen$l = /*#__PURE__*/Object.freeze({
10700
+ var index_gen$k = /*#__PURE__*/Object.freeze({
10778
10701
  __proto__: null,
10779
- API: API$m,
10702
+ API: API$l,
10780
10703
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
10781
10704
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
10782
10705
  FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
@@ -10788,7 +10711,7 @@ var index_gen$l = /*#__PURE__*/Object.freeze({
10788
10711
 
10789
10712
  var index$n = /*#__PURE__*/Object.freeze({
10790
10713
  __proto__: null,
10791
- v1beta1: index_gen$l
10714
+ v1beta1: index_gen$k
10792
10715
  });
10793
10716
 
10794
10717
  // This file was automatically generated. DO NOT EDIT.
@@ -11229,7 +11152,7 @@ const jsonContentHeaders$k = {
11229
11152
  };
11230
11153
 
11231
11154
  /** IAM API. */
11232
- let API$l = class API extends API$y {
11155
+ let API$k = class API extends API$x {
11233
11156
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
11234
11157
  method: 'GET',
11235
11158
  path: `/iam/v1alpha1/ssh-keys`,
@@ -12153,15 +12076,15 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
12153
12076
  // This file was automatically generated. DO NOT EDIT.
12154
12077
  // If you have any remark or suggestion do not hesitate to open an issue.
12155
12078
 
12156
- var index_gen$k = /*#__PURE__*/Object.freeze({
12079
+ var index_gen$j = /*#__PURE__*/Object.freeze({
12157
12080
  __proto__: null,
12158
- API: API$l,
12081
+ API: API$k,
12159
12082
  ValidationRules: validationRules_gen$7
12160
12083
  });
12161
12084
 
12162
12085
  var index$m = /*#__PURE__*/Object.freeze({
12163
12086
  __proto__: null,
12164
- v1alpha1: index_gen$k
12087
+ v1alpha1: index_gen$j
12165
12088
  });
12166
12089
 
12167
12090
  // This file was automatically generated. DO NOT EDIT.
@@ -12238,7 +12161,7 @@ const unmarshalVolumeSummary = data => {
12238
12161
  volumeType: data.volume_type
12239
12162
  };
12240
12163
  };
12241
- const unmarshalImage$3 = data => {
12164
+ const unmarshalImage$2 = data => {
12242
12165
  if (!isJSONObject(data)) {
12243
12166
  throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
12244
12167
  }
@@ -12368,7 +12291,7 @@ const unmarshalServer = data => {
12368
12291
  enableIpv6: data.enable_ipv6,
12369
12292
  hostname: data.hostname,
12370
12293
  id: data.id,
12371
- image: data.image ? unmarshalImage$3(data.image) : undefined,
12294
+ image: data.image ? unmarshalImage$2(data.image) : undefined,
12372
12295
  ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : undefined,
12373
12296
  location: data.location ? unmarshalServerLocation(data.location) : undefined,
12374
12297
  macAddress: data.mac_address,
@@ -12405,7 +12328,7 @@ const unmarshalCreateImageResponse = data => {
12405
12328
  throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
12406
12329
  }
12407
12330
  return {
12408
- image: data.image ? unmarshalImage$3(data.image) : undefined
12331
+ image: data.image ? unmarshalImage$2(data.image) : undefined
12409
12332
  };
12410
12333
  };
12411
12334
  const unmarshalIp$1 = data => {
@@ -12632,12 +12555,12 @@ const unmarshalGetDashboardResponse = data => {
12632
12555
  dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : undefined
12633
12556
  };
12634
12557
  };
12635
- const unmarshalGetImageResponse$1 = data => {
12558
+ const unmarshalGetImageResponse = data => {
12636
12559
  if (!isJSONObject(data)) {
12637
12560
  throw new TypeError(`Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`);
12638
12561
  }
12639
12562
  return {
12640
- image: data.image ? unmarshalImage$3(data.image) : undefined
12563
+ image: data.image ? unmarshalImage$2(data.image) : undefined
12641
12564
  };
12642
12565
  };
12643
12566
  const unmarshalGetIpResponse = data => {
@@ -12748,12 +12671,12 @@ const unmarshalListBootscriptsResponse = data => {
12748
12671
  totalCount: data.total_count
12749
12672
  };
12750
12673
  };
12751
- const unmarshalListImagesResponse$3 = data => {
12674
+ const unmarshalListImagesResponse$2 = data => {
12752
12675
  if (!isJSONObject(data)) {
12753
12676
  throw new TypeError(`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`);
12754
12677
  }
12755
12678
  return {
12756
- images: unmarshalArrayOfObject(data.images, unmarshalImage$3),
12679
+ images: unmarshalArrayOfObject(data.images, unmarshalImage$2),
12757
12680
  totalCount: data.total_count
12758
12681
  };
12759
12682
  };
@@ -12979,7 +12902,7 @@ const unmarshalSetImageResponse = data => {
12979
12902
  throw new TypeError(`Unmarshalling the type 'SetImageResponse' failed as data isn't a dictionary.`);
12980
12903
  }
12981
12904
  return {
12982
- image: data.image ? unmarshalImage$3(data.image) : undefined
12905
+ image: data.image ? unmarshalImage$2(data.image) : undefined
12983
12906
  };
12984
12907
  };
12985
12908
  const unmarshalSetPlacementGroupResponse = data => {
@@ -13043,7 +12966,7 @@ const unmarshalUpdateImageResponse = data => {
13043
12966
  throw new TypeError(`Unmarshalling the type 'UpdateImageResponse' failed as data isn't a dictionary.`);
13044
12967
  }
13045
12968
  return {
13046
- image: data.image ? unmarshalImage$3(data.image) : undefined
12969
+ image: data.image ? unmarshalImage$2(data.image) : undefined
13047
12970
  };
13048
12971
  };
13049
12972
  const unmarshalUpdateIpResponse = data => {
@@ -13655,7 +13578,7 @@ const jsonContentHeaders$j = {
13655
13578
  };
13656
13579
 
13657
13580
  /** Instance API. */
13658
- let API$k = class API extends API$y {
13581
+ let API$j = class API extends API$x {
13659
13582
  /** Lists the available zones of the API. */
13660
13583
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
13661
13584
 
@@ -13823,7 +13746,7 @@ let API$k = class API extends API$y {
13823
13746
  method: 'GET',
13824
13747
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`,
13825
13748
  urlParams: urlParams(['arch', request.arch], ['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['public', request.public], ['tags', request.tags])
13826
- }, unmarshalListImagesResponse$3);
13749
+ }, unmarshalListImagesResponse$2);
13827
13750
 
13828
13751
  /**
13829
13752
  * List Instance images. List all existing Instance images.
@@ -13842,7 +13765,7 @@ let API$k = class API extends API$y {
13842
13765
  getImage = request => this.client.fetch({
13843
13766
  method: 'GET',
13844
13767
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('imageId', request.imageId)}`
13845
- }, unmarshalGetImageResponse$1);
13768
+ }, unmarshalGetImageResponse);
13846
13769
 
13847
13770
  /**
13848
13771
  * Create an Instance image. Create an Instance image from the specified
@@ -14539,7 +14462,7 @@ const validateNotUndefined = obj => {
14539
14462
  if (obj === undefined) throw new TypeError(`object was found undefined`);
14540
14463
  return obj;
14541
14464
  };
14542
- class InstanceV1UtilsAPI extends API$k {
14465
+ class InstanceV1UtilsAPI extends API$j {
14543
14466
  /**
14544
14467
  * Waits for {@link Image} to be in a final state.
14545
14468
  *
@@ -15242,7 +15165,7 @@ const jsonContentHeaders$i = {
15242
15165
  *
15243
15166
  * This API allows you to manage IoT hubs and devices.
15244
15167
  */
15245
- let API$j = class API extends API$y {
15168
+ let API$i = class API extends API$x {
15246
15169
  /** Lists the available regions of the API. */
15247
15170
  static LOCALITIES = ['fr-par'];
15248
15171
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -15735,15 +15658,15 @@ let API$j = class API extends API$y {
15735
15658
  // This file was automatically generated. DO NOT EDIT.
15736
15659
  // If you have any remark or suggestion do not hesitate to open an issue.
15737
15660
 
15738
- var index_gen$j = /*#__PURE__*/Object.freeze({
15661
+ var index_gen$i = /*#__PURE__*/Object.freeze({
15739
15662
  __proto__: null,
15740
- API: API$j,
15663
+ API: API$i,
15741
15664
  HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
15742
15665
  });
15743
15666
 
15744
15667
  var index$j = /*#__PURE__*/Object.freeze({
15745
15668
  __proto__: null,
15746
- v1: index_gen$j
15669
+ v1: index_gen$i
15747
15670
  });
15748
15671
 
15749
15672
  // This file was automatically generated. DO NOT EDIT.
@@ -15846,7 +15769,7 @@ const jsonContentHeaders$h = {
15846
15769
  * This API allows you to manage IP addresses with Scaleway's IP Address
15847
15770
  * Management tool.
15848
15771
  */
15849
- let API$i = class API extends API$y {
15772
+ let API$h = class API extends API$x {
15850
15773
  /** Lists the available regions of the API. */
15851
15774
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15852
15775
 
@@ -15943,15 +15866,15 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
15943
15866
  // This file was automatically generated. DO NOT EDIT.
15944
15867
  // If you have any remark or suggestion do not hesitate to open an issue.
15945
15868
 
15946
- var index_gen$i = /*#__PURE__*/Object.freeze({
15869
+ var index_gen$h = /*#__PURE__*/Object.freeze({
15947
15870
  __proto__: null,
15948
- API: API$i,
15871
+ API: API$h,
15949
15872
  ValidationRules: validationRules_gen$6
15950
15873
  });
15951
15874
 
15952
15875
  var index$i = /*#__PURE__*/Object.freeze({
15953
15876
  __proto__: null,
15954
- v1: index_gen$i
15877
+ v1: index_gen$h
15955
15878
  });
15956
15879
 
15957
15880
  // This file was automatically generated. DO NOT EDIT.
@@ -16139,7 +16062,7 @@ const jsonContentHeaders$g = {
16139
16062
  };
16140
16063
 
16141
16064
  /** IPFS Pinning service API. */
16142
- let API$h = class API extends API$y {
16065
+ let API$g = class API extends API$x {
16143
16066
  /** Lists the available regions of the API. */
16144
16067
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16145
16068
 
@@ -16321,7 +16244,7 @@ let API$h = class API extends API$y {
16321
16244
  };
16322
16245
 
16323
16246
  /** IPFS Naming service API. */
16324
- class IpnsAPI extends API$y {
16247
+ class IpnsAPI extends API$x {
16325
16248
  /** Lists the available regions of the API. */
16326
16249
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16327
16250
 
@@ -16424,9 +16347,9 @@ class IpnsAPI extends API$y {
16424
16347
  // This file was automatically generated. DO NOT EDIT.
16425
16348
  // If you have any remark or suggestion do not hesitate to open an issue.
16426
16349
 
16427
- var index_gen$h = /*#__PURE__*/Object.freeze({
16350
+ var index_gen$g = /*#__PURE__*/Object.freeze({
16428
16351
  __proto__: null,
16429
- API: API$h,
16352
+ API: API$g,
16430
16353
  IpnsAPI: IpnsAPI,
16431
16354
  NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
16432
16355
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
@@ -16434,7 +16357,7 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
16434
16357
 
16435
16358
  var index$h = /*#__PURE__*/Object.freeze({
16436
16359
  __proto__: null,
16437
- v1alpha1: index_gen$h
16360
+ v1alpha1: index_gen$g
16438
16361
  });
16439
16362
 
16440
16363
  // This file was automatically generated. DO NOT EDIT.
@@ -16564,7 +16487,7 @@ const jsonContentHeaders$f = {
16564
16487
  };
16565
16488
 
16566
16489
  /** Serverless Jobs API. */
16567
- let API$g = class API extends API$y {
16490
+ let API$f = class API extends API$x {
16568
16491
  /** Lists the available regions of the API. */
16569
16492
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16570
16493
 
@@ -16793,16 +16716,16 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
16793
16716
  // This file was automatically generated. DO NOT EDIT.
16794
16717
  // If you have any remark or suggestion do not hesitate to open an issue.
16795
16718
 
16796
- var index_gen$g = /*#__PURE__*/Object.freeze({
16719
+ var index_gen$f = /*#__PURE__*/Object.freeze({
16797
16720
  __proto__: null,
16798
- API: API$g,
16721
+ API: API$f,
16799
16722
  JOB_RUN_TRANSIENT_STATUSES: JOB_RUN_TRANSIENT_STATUSES,
16800
16723
  ValidationRules: validationRules_gen$5
16801
16724
  });
16802
16725
 
16803
16726
  var index$g = /*#__PURE__*/Object.freeze({
16804
16727
  __proto__: null,
16805
- v1alpha1: index_gen$g
16728
+ v1alpha1: index_gen$f
16806
16729
  });
16807
16730
 
16808
16731
  // This file was automatically generated. DO NOT EDIT.
@@ -16858,7 +16781,7 @@ const unmarshalPool = data => {
16858
16781
  zone: data.zone
16859
16782
  };
16860
16783
  };
16861
- const unmarshalVersion$2 = data => {
16784
+ const unmarshalVersion$1 = data => {
16862
16785
  if (!isJSONObject(data)) {
16863
16786
  throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
16864
16787
  }
@@ -17033,7 +16956,7 @@ const unmarshalListClusterAvailableVersionsResponse = data => {
17033
16956
  throw new TypeError(`Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary.`);
17034
16957
  }
17035
16958
  return {
17036
- versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$2)
16959
+ versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$1)
17037
16960
  };
17038
16961
  };
17039
16962
  const unmarshalListClusterTypesResponse = data => {
@@ -17077,7 +17000,7 @@ const unmarshalListVersionsResponse$1 = data => {
17077
17000
  throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
17078
17001
  }
17079
17002
  return {
17080
- versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$2)
17003
+ versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$1)
17081
17004
  };
17082
17005
  };
17083
17006
  const marshalMaintenanceWindow = (request, defaults) => ({
@@ -17249,7 +17172,7 @@ const jsonContentHeaders$e = {
17249
17172
  };
17250
17173
 
17251
17174
  /** Kubernetes API. */
17252
- let API$f = class API extends API$y {
17175
+ let API$e = class API extends API$x {
17253
17176
  /** Lists the available regions of the API. */
17254
17177
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
17255
17178
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -17631,7 +17554,7 @@ let API$f = class API extends API$y {
17631
17554
  getVersion = request => this.client.fetch({
17632
17555
  method: 'GET',
17633
17556
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/versions/${validatePathParam('versionName', request.versionName)}`
17634
- }, unmarshalVersion$2);
17557
+ }, unmarshalVersion$1);
17635
17558
  pageOfListClusterTypes = (request = {}) => this.client.fetch({
17636
17559
  method: 'GET',
17637
17560
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/cluster-types`,
@@ -17648,7 +17571,7 @@ let API$f = class API extends API$y {
17648
17571
  listClusterTypes = (request = {}) => enrichForPagination('clusterTypes', this.pageOfListClusterTypes, request);
17649
17572
  };
17650
17573
 
17651
- class K8SUtilsAPI extends API$f {
17574
+ class K8SUtilsAPI extends API$e {
17652
17575
  /**
17653
17576
  * Get configuration of a kube cluster.
17654
17577
  *
@@ -18856,7 +18779,7 @@ const jsonContentHeaders$d = {
18856
18779
  *
18857
18780
  * This API allows you to manage your Scaleway Load Balancer services.
18858
18781
  */
18859
- class ZonedAPI extends API$y {
18782
+ class ZonedAPI extends API$x {
18860
18783
  /** Lists the available zones of the API. */
18861
18784
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
18862
18785
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -19659,7 +19582,7 @@ class ZonedAPI extends API$y {
19659
19582
  *
19660
19583
  * This API allows you to manage your load balancer service.
19661
19584
  */
19662
- let API$e = class API extends API$y {
19585
+ let API$d = class API extends API$x {
19663
19586
  /** Lists the available regions of the API. */
19664
19587
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
19665
19588
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -20330,7 +20253,7 @@ let API$e = class API extends API$y {
20330
20253
  });
20331
20254
  };
20332
20255
 
20333
- class LbV1UtilsAPI extends API$e {
20256
+ class LbV1UtilsAPI extends API$d {
20334
20257
  /**
20335
20258
  * Waits for all private networks of a load balancer to be in a final state.
20336
20259
  *
@@ -20421,115 +20344,6 @@ var index$c = /*#__PURE__*/Object.freeze({
20421
20344
  v1: index$d
20422
20345
  });
20423
20346
 
20424
- // This file was automatically generated. DO NOT EDIT.
20425
- // If you have any remark or suggestion do not hesitate to open an issue.
20426
- const unmarshalLocalImage$1 = data => {
20427
- if (!isJSONObject(data)) {
20428
- throw new TypeError(`Unmarshalling the type 'LocalImage' failed as data isn't a dictionary.`);
20429
- }
20430
- return {
20431
- arch: data.arch,
20432
- compatibleCommercialTypes: data.compatible_commercial_types,
20433
- id: data.id,
20434
- zone: data.zone
20435
- };
20436
- };
20437
- const unmarshalOrganization = data => {
20438
- if (!isJSONObject(data)) {
20439
- throw new TypeError(`Unmarshalling the type 'Organization' failed as data isn't a dictionary.`);
20440
- }
20441
- return {
20442
- id: data.id,
20443
- name: data.name
20444
- };
20445
- };
20446
- const unmarshalVersion$1 = data => {
20447
- if (!isJSONObject(data)) {
20448
- throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
20449
- }
20450
- return {
20451
- creationDate: unmarshalDate(data.creation_date),
20452
- id: data.id,
20453
- localImages: unmarshalArrayOfObject(data.local_images, unmarshalLocalImage$1),
20454
- modificationDate: unmarshalDate(data.modification_date),
20455
- name: data.name
20456
- };
20457
- };
20458
- const unmarshalImage$2 = data => {
20459
- if (!isJSONObject(data)) {
20460
- throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
20461
- }
20462
- return {
20463
- categories: data.categories,
20464
- creationDate: unmarshalDate(data.creation_date),
20465
- currentPublicVersion: data.current_public_version,
20466
- description: data.description,
20467
- id: data.id,
20468
- label: data.label,
20469
- logo: data.logo,
20470
- modificationDate: unmarshalDate(data.modification_date),
20471
- name: data.name,
20472
- organization: data.organization ? unmarshalOrganization(data.organization) : undefined,
20473
- validUntil: unmarshalDate(data.valid_until),
20474
- versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$1)
20475
- };
20476
- };
20477
- const unmarshalGetImageResponse = data => {
20478
- if (!isJSONObject(data)) {
20479
- throw new TypeError(`Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`);
20480
- }
20481
- return {
20482
- image: data.image ? unmarshalImage$2(data.image) : undefined
20483
- };
20484
- };
20485
- const unmarshalListImagesResponse$2 = data => {
20486
- if (!isJSONObject(data)) {
20487
- throw new TypeError(`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`);
20488
- }
20489
- return {
20490
- images: unmarshalArrayOfObject(data.images, unmarshalImage$2),
20491
- totalCount: data.total_count
20492
- };
20493
- };
20494
-
20495
- // This file was automatically generated. DO NOT EDIT.
20496
- // If you have any remark or suggestion do not hesitate to open an issue.
20497
- /** Marketplace API. */
20498
- let API$d = class API extends API$y {
20499
- pageOfListImages = (request = {}) => this.client.fetch({
20500
- method: 'GET',
20501
- path: `/marketplace/v1/images`,
20502
- urlParams: urlParams(['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize])
20503
- }, unmarshalListImagesResponse$2);
20504
-
20505
- /**
20506
- * List marketplace images.
20507
- *
20508
- * @param request - The request {@link ListImagesRequest}
20509
- * @returns A Promise of ListImagesResponse
20510
- */
20511
- listImages = (request = {}) => enrichForPagination('images', this.pageOfListImages, request);
20512
-
20513
- /**
20514
- * Get a specific marketplace image.
20515
- *
20516
- * @param request - The request {@link GetImageRequest}
20517
- * @returns A Promise of GetImageResponse
20518
- */
20519
- getImage = request => this.client.fetch({
20520
- method: 'GET',
20521
- path: `/marketplace/v1/images/${validatePathParam('imageId', request.imageId)}`
20522
- }, unmarshalGetImageResponse);
20523
- };
20524
-
20525
- // This file was automatically generated. DO NOT EDIT.
20526
- // If you have any remark or suggestion do not hesitate to open an issue.
20527
-
20528
- var index_gen$f = /*#__PURE__*/Object.freeze({
20529
- __proto__: null,
20530
- API: API$d
20531
- });
20532
-
20533
20347
  // This file was automatically generated. DO NOT EDIT.
20534
20348
  // If you have any remark or suggestion do not hesitate to open an issue.
20535
20349
  const unmarshalCategory = data => {
@@ -20623,7 +20437,7 @@ const unmarshalListVersionsResponse = data => {
20623
20437
  // This file was automatically generated. DO NOT EDIT.
20624
20438
  // If you have any remark or suggestion do not hesitate to open an issue.
20625
20439
  /** Marketplace API. */
20626
- let API$c = class API extends API$y {
20440
+ let API$c = class API extends API$x {
20627
20441
  pageOfListImages = request => this.client.fetch({
20628
20442
  method: 'GET',
20629
20443
  path: `/marketplace/v2/images`,
@@ -20754,7 +20568,6 @@ var index_gen$e = /*#__PURE__*/Object.freeze({
20754
20568
 
20755
20569
  var index$b = /*#__PURE__*/Object.freeze({
20756
20570
  __proto__: null,
20757
- v1: index_gen$f,
20758
20571
  v2: index_gen$e
20759
20572
  });
20760
20573
 
@@ -20976,7 +20789,7 @@ const jsonContentHeaders$c = {
20976
20789
  *
20977
20790
  * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
20978
20791
  */
20979
- class NatsAPI extends API$y {
20792
+ class NatsAPI extends API$x {
20980
20793
  /** Lists the available regions of the API. */
20981
20794
  static LOCALITIES = ['fr-par', 'nl-ams'];
20982
20795
 
@@ -21112,7 +20925,7 @@ class NatsAPI extends API$y {
21112
20925
  *
21113
20926
  * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
21114
20927
  */
21115
- class SnsAPI extends API$y {
20928
+ class SnsAPI extends API$x {
21116
20929
  /** Lists the available regions of the API. */
21117
20930
  static LOCALITIES = ['fr-par', 'nl-ams'];
21118
20931
 
@@ -21234,7 +21047,7 @@ class SnsAPI extends API$y {
21234
21047
  *
21235
21048
  * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
21236
21049
  */
21237
- class SqsAPI extends API$y {
21050
+ class SqsAPI extends API$x {
21238
21051
  /** Lists the available regions of the API. */
21239
21052
  static LOCALITIES = ['fr-par', 'nl-ams'];
21240
21053
 
@@ -22193,7 +22006,7 @@ const jsonContentHeaders$b = {
22193
22006
  };
22194
22007
 
22195
22008
  /** Managed Database for PostgreSQL and MySQL API. */
22196
- let API$b = class API extends API$y {
22009
+ let API$b = class API extends API$x {
22197
22010
  /** Lists the available regions of the API. */
22198
22011
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
22199
22012
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -23410,7 +23223,7 @@ const jsonContentHeaders$a = {
23410
23223
  };
23411
23224
 
23412
23225
  /** Managed Database for Redis™ API. */
23413
- let API$a = class API extends API$y {
23226
+ let API$a = class API extends API$x {
23414
23227
  /** Lists the available zones of the API. */
23415
23228
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
23416
23229
 
@@ -23904,7 +23717,7 @@ const jsonContentHeaders$9 = {
23904
23717
  };
23905
23718
 
23906
23719
  /** Container Registry API. */
23907
- let API$9 = class API extends API$y {
23720
+ let API$9 = class API extends API$x {
23908
23721
  /** Lists the available regions of the API. */
23909
23722
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
23910
23723
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -24320,7 +24133,7 @@ const jsonContentHeaders$8 = {
24320
24133
  * Secret Manager API. This API allows you to conveniently store, access and
24321
24134
  * share sensitive data.
24322
24135
  */
24323
- let API$8 = class API extends API$y {
24136
+ let API$8 = class API extends API$x {
24324
24137
  /** Lists the available regions of the API. */
24325
24138
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24326
24139
 
@@ -24888,7 +24701,7 @@ const jsonContentHeaders$7 = {
24888
24701
  * This API allows you to conveniently store, access and share sensitive data
24889
24702
  * such as passwords, API keys and certificates.
24890
24703
  */
24891
- let API$7 = class API extends API$y {
24704
+ let API$7 = class API extends API$x {
24892
24705
  /** Lists the available regions of the API. */
24893
24706
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24894
24707
 
@@ -24945,7 +24758,7 @@ let API$7 = class API extends API$y {
24945
24758
  pageOfListSecrets = (request = {}) => this.client.fetch({
24946
24759
  method: 'GET',
24947
24760
  path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`,
24948
- urlParams: urlParams(['ephemeral', request.ephemeral], ['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])
24761
+ urlParams: urlParams(['ephemeral', request.ephemeral], ['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], ['type', request.type])
24949
24762
  }, unmarshalListSecretsResponse);
24950
24763
 
24951
24764
  /**
@@ -25240,7 +25053,7 @@ const jsonContentHeaders$6 = {
25240
25053
  *
25241
25054
  * This API allows you to manage your Serverless SQL DB databases.
25242
25055
  */
25243
- let API$6 = class API extends API$y {
25056
+ let API$6 = class API extends API$x {
25244
25057
  /** Lists the available regions of the API. */
25245
25058
  static LOCALITIES = ['fr-par'];
25246
25059
 
@@ -25564,7 +25377,7 @@ const jsonContentHeaders$5 = {
25564
25377
  *
25565
25378
  * No Auth Service for end-to-end testing.
25566
25379
  */
25567
- let API$5 = class API extends API$y {
25380
+ let API$5 = class API extends API$x {
25568
25381
  /**
25569
25382
  * Register a user. Register a human and return a access-key and a secret-key
25570
25383
  * that must be used in all other commands.
@@ -25739,6 +25552,23 @@ const unmarshalEmail = data => {
25739
25552
  updatedAt: unmarshalDate(data.updated_at)
25740
25553
  };
25741
25554
  };
25555
+ const unmarshalDomainRecordsDMARC = data => {
25556
+ if (!isJSONObject(data)) {
25557
+ throw new TypeError(`Unmarshalling the type 'DomainRecordsDMARC' failed as data isn't a dictionary.`);
25558
+ }
25559
+ return {
25560
+ name: data.name,
25561
+ value: data.value
25562
+ };
25563
+ };
25564
+ const unmarshalDomainRecords = data => {
25565
+ if (!isJSONObject(data)) {
25566
+ throw new TypeError(`Unmarshalling the type 'DomainRecords' failed as data isn't a dictionary.`);
25567
+ }
25568
+ return {
25569
+ dmarc: data.dmarc ? unmarshalDomainRecordsDMARC(data.dmarc) : undefined
25570
+ };
25571
+ };
25742
25572
  const unmarshalDomainReputation = data => {
25743
25573
  if (!isJSONObject(data)) {
25744
25574
  throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
@@ -25776,6 +25606,7 @@ const unmarshalDomain = data => {
25776
25606
  nextCheckAt: unmarshalDate(data.next_check_at),
25777
25607
  organizationId: data.organization_id,
25778
25608
  projectId: data.project_id,
25609
+ records: data.records ? unmarshalDomainRecords(data.records) : undefined,
25779
25610
  region: data.region,
25780
25611
  reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
25781
25612
  revokedAt: unmarshalDate(data.revoked_at),
@@ -25904,7 +25735,7 @@ const jsonContentHeaders$4 = {
25904
25735
  };
25905
25736
 
25906
25737
  /** Transactional Email API. */
25907
- let API$4 = class API extends API$y {
25738
+ let API$4 = class API extends API$x {
25908
25739
  /** Lists the available regions of the API. */
25909
25740
  static LOCALITIES = ['fr-par'];
25910
25741
 
@@ -26145,7 +25976,7 @@ const jsonContentHeaders$3 = {
26145
25976
  };
26146
25977
 
26147
25978
  /** VPC API. */
26148
- let API$3 = class API extends API$y {
25979
+ let API$3 = class API extends API$x {
26149
25980
  /** Lists the available zones of the API. */
26150
25981
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
26151
25982
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -26367,7 +26198,7 @@ const jsonContentHeaders$2 = {
26367
26198
  };
26368
26199
 
26369
26200
  /** VPC API. */
26370
- let API$2 = class API extends API$y {
26201
+ let API$2 = class API extends API$x {
26371
26202
  /** Lists the available regions of the API. */
26372
26203
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
26373
26204
  pageOfListVPCs = (request = {}) => this.client.fetch({
@@ -26965,7 +26796,7 @@ const jsonContentHeaders$1 = {
26965
26796
  };
26966
26797
 
26967
26798
  /** Public Gateways API. */
26968
- let API$1 = class API extends API$y {
26799
+ let API$1 = class API extends API$x {
26969
26800
  /** Lists the available zones of the API. */
26970
26801
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
26971
26802
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -27584,6 +27415,7 @@ const unmarshalHosting = data => {
27584
27415
  platformHostname: data.platform_hostname,
27585
27416
  platformNumber: data.platform_number,
27586
27417
  projectId: data.project_id,
27418
+ protected: data.protected,
27587
27419
  region: data.region,
27588
27420
  status: data.status,
27589
27421
  tags: data.tags,
@@ -27692,8 +27524,15 @@ const unmarshalListOffersResponse = data => {
27692
27524
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer)
27693
27525
  };
27694
27526
  };
27527
+ const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
27528
+ update_all_records: request.updateAllRecords,
27529
+ update_mail_record: request.updateMailRecord,
27530
+ update_nameservers: request.updateNameservers,
27531
+ update_web_record: request.updateWebRecord
27532
+ });
27695
27533
  const marshalCreateHostingRequest = (request, defaults) => ({
27696
27534
  domain: request.domain,
27535
+ domain_configuration: request.domainConfiguration !== undefined ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration) : undefined,
27697
27536
  email: request.email,
27698
27537
  language: request.language,
27699
27538
  offer_id: request.offerId,
@@ -27705,6 +27544,7 @@ const marshalUpdateHostingRequest = (request, defaults) => ({
27705
27544
  email: request.email,
27706
27545
  offer_id: request.offerId,
27707
27546
  option_ids: request.optionIds,
27547
+ protected: request.protected,
27708
27548
  tags: request.tags
27709
27549
  });
27710
27550
 
@@ -27715,7 +27555,7 @@ const jsonContentHeaders = {
27715
27555
  };
27716
27556
 
27717
27557
  /** Web Hosting API. */
27718
- class API extends API$y {
27558
+ class API extends API$x {
27719
27559
  /** Lists the available regions of the API. */
27720
27560
  static LOCALITIES = ['fr-par', 'nl-ams'];
27721
27561
 
@@ -27899,7 +27739,7 @@ var index = /*#__PURE__*/Object.freeze({
27899
27739
  v1alpha1: index_gen
27900
27740
  });
27901
27741
 
27902
- exports.API = API$y;
27742
+ exports.API = API$x;
27903
27743
  exports.Account = index$y;
27904
27744
  exports.AppleSilicon = index$x;
27905
27745
  exports.BareMetal = index$v;