@scaleway/sdk-lb 2.4.1 → 2.4.2

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.
@@ -1,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,13 +1,14 @@
1
1
  import { CERTIFICATE_TRANSIENT_STATUSES, LB_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalAddBackendServersRequest, marshalAttachPrivateNetworkRequest, marshalCreateAclRequest, marshalCreateBackendRequest, marshalCreateCertificateRequest, marshalCreateFrontendRequest, marshalCreateIpRequest, marshalCreateLbRequest, marshalCreateRouteRequest, marshalCreateSubscriberRequest, marshalMigrateLbRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalSubscribeToLbRequest, marshalUpdateAclRequest, marshalUpdateBackendRequest, marshalUpdateCertificateRequest, marshalUpdateFrontendRequest, marshalUpdateHealthCheckRequest, marshalUpdateIpRequest, marshalUpdateLbRequest, marshalUpdateRouteRequest, marshalUpdateSubscriberRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiAttachPrivateNetworkRequest, marshalZonedApiCreateAclRequest, marshalZonedApiCreateBackendRequest, marshalZonedApiCreateCertificateRequest, marshalZonedApiCreateFrontendRequest, marshalZonedApiCreateIpRequest, marshalZonedApiCreateLbRequest, marshalZonedApiCreateRouteRequest, marshalZonedApiCreateSubscriberRequest, marshalZonedApiDetachPrivateNetworkRequest, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Load Balancer API.
7
8
 
8
9
  This API allows you to manage your Scaleway Load Balancer services.
9
10
  */
10
- var ZonedAPI = class extends API {
11
+ var ZonedAPI = class extends API$1 {
11
12
  /**
12
13
  * Locality of this API.
13
14
  * type ∈ {'zone','region','global','unspecified'}
@@ -25,7 +26,7 @@ var ZonedAPI = class extends API {
25
26
  pageOfListLbs = (request = {}) => this.client.fetch({
26
27
  method: "GET",
27
28
  path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs`,
28
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
29
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["tags", request.tags])
29
30
  }, unmarshalListLbsResponse);
30
31
  /**
31
32
  * List Load Balancers. List all Load Balancers in the specified zone, for a Scaleway Organization or Scaleway Project. By default, the Load Balancers returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
@@ -101,7 +102,7 @@ var ZonedAPI = class extends API {
101
102
  pageOfListIPs = (request = {}) => this.client.fetch({
102
103
  method: "GET",
103
104
  path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
104
- urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
105
+ urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["tags", request.tags])
105
106
  }, unmarshalListIpsResponse);
106
107
  /**
107
108
  * List IP addresses. List the Load Balancer flexible IP addresses held in the account (filtered by Organization ID or Project ID). It is also possible to search for a specific IP address.
@@ -557,7 +558,7 @@ var ZonedAPI = class extends API {
557
558
  pageOfListSubscriber = (request = {}) => this.client.fetch({
558
559
  method: "GET",
559
560
  path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers`,
560
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
561
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
561
562
  }, unmarshalListSubscriberResponse);
562
563
  /**
563
564
  * List all subscribers. List all subscribers to Load Balancer alerts. By default, returns all subscribers to Load Balancer alerts for the Organization associated with the authentication token used for the request.
@@ -650,7 +651,7 @@ var ZonedAPI = class extends API {
650
651
 
651
652
  This API allows you to manage your Load Balancers.
652
653
  */
653
- var API$1 = class extends API {
654
+ var API = class extends API$1 {
654
655
  /**
655
656
  * Locality of this API.
656
657
  * type ∈ {'zone','region','global','unspecified'}
@@ -663,7 +664,7 @@ var API$1 = class extends API {
663
664
  pageOfListLbs = (request = {}) => this.client.fetch({
664
665
  method: "GET",
665
666
  path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs`,
666
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
667
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["tags", request.tags])
667
668
  }, unmarshalListLbsResponse);
668
669
  /**
669
670
  * List load balancers.
@@ -739,7 +740,7 @@ var API$1 = class extends API {
739
740
  pageOfListIPs = (request = {}) => this.client.fetch({
740
741
  method: "GET",
741
742
  path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips`,
742
- urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
743
+ urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["tags", request.tags])
743
744
  }, unmarshalListIpsResponse);
744
745
  /**
745
746
  * List IPs.
@@ -1183,7 +1184,7 @@ var API$1 = class extends API {
1183
1184
  pageOfListSubscriber = (request = {}) => this.client.fetch({
1184
1185
  method: "GET",
1185
1186
  path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers`,
1186
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
1187
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
1187
1188
  }, unmarshalListSubscriberResponse);
1188
1189
  /**
1189
1190
  * List all subscriber.
@@ -1271,4 +1272,5 @@ var API$1 = class extends API {
1271
1272
  path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/detach`
1272
1273
  });
1273
1274
  };
1274
- export { API$1 as API, ZonedAPI };
1275
+ //#endregion
1276
+ export { API, ZonedAPI };
@@ -1,9 +1,10 @@
1
+ //#region src/v1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link CertificateStatus}. */
2
- const CERTIFICATE_TRANSIENT_STATUSES = ["pending"];
3
+ var CERTIFICATE_TRANSIENT_STATUSES = ["pending"];
3
4
  /** Lists transient statutes of the enum {@link InstanceStatus}. */
4
- const INSTANCE_TRANSIENT_STATUSES = ["pending", "migrating"];
5
+ var INSTANCE_TRANSIENT_STATUSES = ["pending", "migrating"];
5
6
  /** Lists transient statutes of the enum {@link LbStatus}. */
6
- const LB_TRANSIENT_STATUSES = [
7
+ var LB_TRANSIENT_STATUSES = [
7
8
  "pending",
8
9
  "migrating",
9
10
  "to_create",
@@ -12,5 +13,6 @@ const LB_TRANSIENT_STATUSES = [
12
13
  "deleting"
13
14
  ];
14
15
  /** Lists transient statutes of the enum {@link PrivateNetworkStatus}. */
15
- const PRIVATE_NETWORK_TRANSIENT_STATUSES = ["pending"];
16
+ var PRIVATE_NETWORK_TRANSIENT_STATUSES = ["pending"];
17
+ //#endregion
16
18
  export { CERTIFICATE_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, LB_TRANSIENT_STATUSES, PRIVATE_NETWORK_TRANSIENT_STATUSES };
@@ -3,6 +3,7 @@ import { CERTIFICATE_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, LB_TRANSIE
3
3
  import { marshalAddBackendServersRequest, marshalAttachPrivateNetworkRequest, marshalCreateAclRequest, marshalCreateBackendRequest, marshalCreateCertificateRequest, marshalCreateFrontendRequest, marshalCreateIpRequest, marshalCreateLbRequest, marshalCreateRouteRequest, marshalCreateSubscriberRequest, marshalMigrateLbRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalSubscribeToLbRequest, marshalUpdateAclRequest, marshalUpdateBackendRequest, marshalUpdateCertificateRequest, marshalUpdateFrontendRequest, marshalUpdateHealthCheckRequest, marshalUpdateIpRequest, marshalUpdateLbRequest, marshalUpdateRouteRequest, marshalUpdateSubscriberRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiAttachPrivateNetworkRequest, marshalZonedApiCreateAclRequest, marshalZonedApiCreateBackendRequest, marshalZonedApiCreateCertificateRequest, marshalZonedApiCreateFrontendRequest, marshalZonedApiCreateIpRequest, marshalZonedApiCreateLbRequest, marshalZonedApiCreateRouteRequest, marshalZonedApiCreateSubscriberRequest, marshalZonedApiDetachPrivateNetworkRequest, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalBackendServerStats, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber } from "./marshalling.gen.js";
4
4
  import { API, ZonedAPI } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  CERTIFICATE_TRANSIENT_STATUSES: () => CERTIFICATE_TRANSIENT_STATUSES,
@@ -84,4 +85,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
84
85
  unmarshalSetAclsResponse: () => unmarshalSetAclsResponse,
85
86
  unmarshalSubscriber: () => unmarshalSubscriber
86
87
  });
87
- export { index_gen_exports };
88
+ //#endregion
89
+ export { API, CERTIFICATE_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, LB_TRANSIENT_STATUSES, PRIVATE_NETWORK_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, ZonedAPI, index_gen_exports, marshalAddBackendServersRequest, marshalAttachPrivateNetworkRequest, marshalCreateAclRequest, marshalCreateBackendRequest, marshalCreateCertificateRequest, marshalCreateFrontendRequest, marshalCreateIpRequest, marshalCreateLbRequest, marshalCreateRouteRequest, marshalCreateSubscriberRequest, marshalMigrateLbRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalSubscribeToLbRequest, marshalUpdateAclRequest, marshalUpdateBackendRequest, marshalUpdateCertificateRequest, marshalUpdateFrontendRequest, marshalUpdateHealthCheckRequest, marshalUpdateIpRequest, marshalUpdateLbRequest, marshalUpdateRouteRequest, marshalUpdateSubscriberRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiAttachPrivateNetworkRequest, marshalZonedApiCreateAclRequest, marshalZonedApiCreateBackendRequest, marshalZonedApiCreateCertificateRequest, marshalZonedApiCreateFrontendRequest, marshalZonedApiCreateIpRequest, marshalZonedApiCreateLbRequest, marshalZonedApiCreateRouteRequest, marshalZonedApiCreateSubscriberRequest, marshalZonedApiDetachPrivateNetworkRequest, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalBackendServerStats, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber };
@@ -1,6 +1,7 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  import randomName from "@scaleway/random-name";
3
- const unmarshalIp = (data) => {
3
+ //#region src/v1/marshalling.gen.ts
4
+ var unmarshalIp = (data) => {
4
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
5
6
  return {
6
7
  id: data.id,
@@ -22,7 +23,7 @@ var unmarshalSubscriberWebhookConfig = (data) => {
22
23
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SubscriberWebhookConfig' failed as data isn't a dictionary.`);
23
24
  return { uri: data.uri };
24
25
  };
25
- const unmarshalSubscriber = (data) => {
26
+ var unmarshalSubscriber = (data) => {
26
27
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Subscriber' failed as data isn't a dictionary.`);
27
28
  return {
28
29
  emailConfig: data.email_config ? unmarshalSubscriberEmailConfig(data.email_config) : void 0,
@@ -70,7 +71,7 @@ var unmarshalHealthCheckTcpConfig = (data) => {
70
71
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckTcpConfig' failed as data isn't a dictionary.`);
71
72
  return {};
72
73
  };
73
- const unmarshalHealthCheck = (data) => {
74
+ var unmarshalHealthCheck = (data) => {
74
75
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheck' failed as data isn't a dictionary.`);
75
76
  return {
76
77
  checkDelay: data.check_delay,
@@ -100,7 +101,7 @@ var unmarshalInstance = (data) => {
100
101
  zone: data.zone
101
102
  };
102
103
  };
103
- const unmarshalLb = (data) => {
104
+ var unmarshalLb = (data) => {
104
105
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Lb' failed as data isn't a dictionary.`);
105
106
  return {
106
107
  backendCount: data.backend_count,
@@ -125,7 +126,7 @@ const unmarshalLb = (data) => {
125
126
  zone: data.zone
126
127
  };
127
128
  };
128
- const unmarshalBackend = (data) => {
129
+ var unmarshalBackend = (data) => {
129
130
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backend' failed as data isn't a dictionary.`);
130
131
  return {
131
132
  createdAt: unmarshalDate(data.created_at),
@@ -155,7 +156,7 @@ const unmarshalBackend = (data) => {
155
156
  updatedAt: unmarshalDate(data.updated_at)
156
157
  };
157
158
  };
158
- const unmarshalCertificate = (data) => {
159
+ var unmarshalCertificate = (data) => {
159
160
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Certificate' failed as data isn't a dictionary.`);
160
161
  return {
161
162
  commonName: data.common_name,
@@ -173,7 +174,7 @@ const unmarshalCertificate = (data) => {
173
174
  updatedAt: unmarshalDate(data.updated_at)
174
175
  };
175
176
  };
176
- const unmarshalFrontend = (data) => {
177
+ var unmarshalFrontend = (data) => {
177
178
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Frontend' failed as data isn't a dictionary.`);
178
179
  return {
179
180
  backend: data.backend ? unmarshalBackend(data.backend) : void 0,
@@ -217,7 +218,7 @@ var unmarshalAclMatch = (data) => {
217
218
  ipsEdgeServices: data.ips_edge_services
218
219
  };
219
220
  };
220
- const unmarshalAcl = (data) => {
221
+ var unmarshalAcl = (data) => {
221
222
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Acl' failed as data isn't a dictionary.`);
222
223
  return {
223
224
  action: data.action ? unmarshalAclAction(data.action) : void 0,
@@ -243,7 +244,7 @@ var unmarshalPrivateNetworkStaticConfig = (data) => {
243
244
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetworkStaticConfig' failed as data isn't a dictionary.`);
244
245
  return { ipAddress: data.ip_address ? data.ip_address : void 0 };
245
246
  };
246
- const unmarshalPrivateNetwork = (data) => {
247
+ var unmarshalPrivateNetwork = (data) => {
247
248
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
248
249
  return {
249
250
  createdAt: unmarshalDate(data.created_at),
@@ -266,7 +267,7 @@ var unmarshalRouteMatch = (data) => {
266
267
  sni: data.sni
267
268
  };
268
269
  };
269
- const unmarshalRoute = (data) => {
270
+ var unmarshalRoute = (data) => {
270
271
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Route' failed as data isn't a dictionary.`);
271
272
  return {
272
273
  backendId: data.backend_id,
@@ -277,7 +278,7 @@ const unmarshalRoute = (data) => {
277
278
  updatedAt: unmarshalDate(data.updated_at)
278
279
  };
279
280
  };
280
- const unmarshalBackendServerStats = (data) => {
281
+ var unmarshalBackendServerStats = (data) => {
281
282
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendServerStats' failed as data isn't a dictionary.`);
282
283
  return {
283
284
  backendId: data.backend_id,
@@ -288,53 +289,53 @@ const unmarshalBackendServerStats = (data) => {
288
289
  serverStateChangedAt: unmarshalDate(data.server_state_changed_at)
289
290
  };
290
291
  };
291
- const unmarshalLbStats = (data) => {
292
+ var unmarshalLbStats = (data) => {
292
293
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LbStats' failed as data isn't a dictionary.`);
293
294
  return { backendServersStats: unmarshalArrayOfObject(data.backend_servers_stats, unmarshalBackendServerStats) };
294
295
  };
295
- const unmarshalListAclResponse = (data) => {
296
+ var unmarshalListAclResponse = (data) => {
296
297
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAclResponse' failed as data isn't a dictionary.`);
297
298
  return {
298
299
  acls: unmarshalArrayOfObject(data.acls, unmarshalAcl),
299
300
  totalCount: data.total_count
300
301
  };
301
302
  };
302
- const unmarshalListBackendStatsResponse = (data) => {
303
+ var unmarshalListBackendStatsResponse = (data) => {
303
304
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStatsResponse' failed as data isn't a dictionary.`);
304
305
  return {
305
306
  backendServersStats: unmarshalArrayOfObject(data.backend_servers_stats, unmarshalBackendServerStats),
306
307
  totalCount: data.total_count
307
308
  };
308
309
  };
309
- const unmarshalListBackendsResponse = (data) => {
310
+ var unmarshalListBackendsResponse = (data) => {
310
311
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendsResponse' failed as data isn't a dictionary.`);
311
312
  return {
312
313
  backends: unmarshalArrayOfObject(data.backends, unmarshalBackend),
313
314
  totalCount: data.total_count
314
315
  };
315
316
  };
316
- const unmarshalListCertificatesResponse = (data) => {
317
+ var unmarshalListCertificatesResponse = (data) => {
317
318
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCertificatesResponse' failed as data isn't a dictionary.`);
318
319
  return {
319
320
  certificates: unmarshalArrayOfObject(data.certificates, unmarshalCertificate),
320
321
  totalCount: data.total_count
321
322
  };
322
323
  };
323
- const unmarshalListFrontendsResponse = (data) => {
324
+ var unmarshalListFrontendsResponse = (data) => {
324
325
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFrontendsResponse' failed as data isn't a dictionary.`);
325
326
  return {
326
327
  frontends: unmarshalArrayOfObject(data.frontends, unmarshalFrontend),
327
328
  totalCount: data.total_count
328
329
  };
329
330
  };
330
- const unmarshalListIpsResponse = (data) => {
331
+ var unmarshalListIpsResponse = (data) => {
331
332
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
332
333
  return {
333
334
  ips: unmarshalArrayOfObject(data.ips, unmarshalIp),
334
335
  totalCount: data.total_count
335
336
  };
336
337
  };
337
- const unmarshalListLbPrivateNetworksResponse = (data) => {
338
+ var unmarshalListLbPrivateNetworksResponse = (data) => {
338
339
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbPrivateNetworksResponse' failed as data isn't a dictionary.`);
339
340
  return {
340
341
  privateNetwork: unmarshalArrayOfObject(data.private_network, unmarshalPrivateNetwork),
@@ -351,46 +352,46 @@ var unmarshalLbType = (data) => {
351
352
  zone: data.zone
352
353
  };
353
354
  };
354
- const unmarshalListLbTypesResponse = (data) => {
355
+ var unmarshalListLbTypesResponse = (data) => {
355
356
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbTypesResponse' failed as data isn't a dictionary.`);
356
357
  return {
357
358
  lbTypes: unmarshalArrayOfObject(data.lb_types, unmarshalLbType),
358
359
  totalCount: data.total_count
359
360
  };
360
361
  };
361
- const unmarshalListLbsResponse = (data) => {
362
+ var unmarshalListLbsResponse = (data) => {
362
363
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbsResponse' failed as data isn't a dictionary.`);
363
364
  return {
364
365
  lbs: unmarshalArrayOfObject(data.lbs, unmarshalLb),
365
366
  totalCount: data.total_count
366
367
  };
367
368
  };
368
- const unmarshalListRoutesResponse = (data) => {
369
+ var unmarshalListRoutesResponse = (data) => {
369
370
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutesResponse' failed as data isn't a dictionary.`);
370
371
  return {
371
372
  routes: unmarshalArrayOfObject(data.routes, unmarshalRoute),
372
373
  totalCount: data.total_count
373
374
  };
374
375
  };
375
- const unmarshalListSubscriberResponse = (data) => {
376
+ var unmarshalListSubscriberResponse = (data) => {
376
377
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubscriberResponse' failed as data isn't a dictionary.`);
377
378
  return {
378
379
  subscribers: unmarshalArrayOfObject(data.subscribers, unmarshalSubscriber),
379
380
  totalCount: data.total_count
380
381
  };
381
382
  };
382
- const unmarshalSetAclsResponse = (data) => {
383
+ var unmarshalSetAclsResponse = (data) => {
383
384
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclsResponse' failed as data isn't a dictionary.`);
384
385
  return {
385
386
  acls: unmarshalArrayOfObject(data.acls, unmarshalAcl),
386
387
  totalCount: data.total_count
387
388
  };
388
389
  };
389
- const marshalAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
390
+ var marshalAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
390
391
  var marshalPrivateNetworkDHCPConfig = (request, defaults) => ({ ip_id: request.ipId });
391
392
  var marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
392
393
  var marshalPrivateNetworkStaticConfig = (request, defaults) => ({ ip_address: request.ipAddress });
393
- const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
394
+ var marshalAttachPrivateNetworkRequest = (request, defaults) => ({
394
395
  ipam_ids: request.ipamIds,
395
396
  ...resolveOneOf([
396
397
  {
@@ -424,7 +425,7 @@ var marshalAclMatch = (request, defaults) => ({
424
425
  ip_subnet: request.ipSubnet,
425
426
  ips_edge_services: request.ipsEdgeServices
426
427
  });
427
- const marshalCreateAclRequest = (request, defaults) => ({
428
+ var marshalCreateAclRequest = (request, defaults) => ({
428
429
  action: marshalAclAction(request.action, defaults),
429
430
  description: request.description,
430
431
  index: request.index,
@@ -487,7 +488,7 @@ var marshalHealthCheck = (request, defaults) => ({
487
488
  }
488
489
  ])
489
490
  });
490
- const marshalCreateBackendRequest = (request, defaults) => ({
491
+ var marshalCreateBackendRequest = (request, defaults) => ({
491
492
  failover_host: request.failoverHost,
492
493
  forward_port: request.forwardPort,
493
494
  forward_port_algorithm: request.forwardPortAlgorithm,
@@ -515,7 +516,7 @@ var marshalCreateCertificateRequestLetsencryptConfig = (request, defaults) => ({
515
516
  common_name: request.commonName,
516
517
  subject_alternative_name: request.subjectAlternativeName
517
518
  });
518
- const marshalCreateCertificateRequest = (request, defaults) => ({
519
+ var marshalCreateCertificateRequest = (request, defaults) => ({
519
520
  name: request.name || randomName("certificate"),
520
521
  ...resolveOneOf([{
521
522
  param: "letsencrypt",
@@ -525,7 +526,7 @@ const marshalCreateCertificateRequest = (request, defaults) => ({
525
526
  value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate, defaults) : void 0
526
527
  }])
527
528
  });
528
- const marshalCreateFrontendRequest = (request, defaults) => ({
529
+ var marshalCreateFrontendRequest = (request, defaults) => ({
529
530
  backend_id: request.backendId,
530
531
  certificate_id: request.certificateId,
531
532
  certificate_ids: request.certificateIds,
@@ -536,7 +537,7 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
536
537
  name: request.name || randomName("lbf"),
537
538
  timeout_client: request.timeoutClient
538
539
  });
539
- const marshalCreateIpRequest = (request, defaults) => ({
540
+ var marshalCreateIpRequest = (request, defaults) => ({
540
541
  is_ipv6: request.isIpv6,
541
542
  reverse: request.reverse,
542
543
  tags: request.tags,
@@ -550,7 +551,7 @@ const marshalCreateIpRequest = (request, defaults) => ({
550
551
  value: request.organizationId
551
552
  }])
552
553
  });
553
- const marshalCreateLbRequest = (request, defaults) => ({
554
+ var marshalCreateLbRequest = (request, defaults) => ({
554
555
  assign_flexible_ip: request.assignFlexibleIp,
555
556
  assign_flexible_ipv6: request.assignFlexibleIpv6,
556
557
  description: request.description,
@@ -587,14 +588,14 @@ var marshalRouteMatch = (request, defaults) => ({
587
588
  }
588
589
  ])
589
590
  });
590
- const marshalCreateRouteRequest = (request, defaults) => ({
591
+ var marshalCreateRouteRequest = (request, defaults) => ({
591
592
  backend_id: request.backendId,
592
593
  frontend_id: request.frontendId,
593
594
  match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
594
595
  });
595
596
  var marshalSubscriberEmailConfig = (request, defaults) => ({ email: request.email });
596
597
  var marshalSubscriberWebhookConfig = (request, defaults) => ({ uri: request.uri });
597
- const marshalCreateSubscriberRequest = (request, defaults) => ({
598
+ var marshalCreateSubscriberRequest = (request, defaults) => ({
598
599
  name: request.name,
599
600
  ...resolveOneOf([{
600
601
  default: defaults.defaultProjectId,
@@ -613,18 +614,18 @@ const marshalCreateSubscriberRequest = (request, defaults) => ({
613
614
  value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
614
615
  }])
615
616
  });
616
- const marshalMigrateLbRequest = (request, defaults) => ({ type: request.type });
617
- const marshalRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
618
- const marshalSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
619
- const marshalSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
620
- const marshalUpdateAclRequest = (request, defaults) => ({
617
+ var marshalMigrateLbRequest = (request, defaults) => ({ type: request.type });
618
+ var marshalRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
619
+ var marshalSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
620
+ var marshalSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
621
+ var marshalUpdateAclRequest = (request, defaults) => ({
621
622
  action: marshalAclAction(request.action, defaults),
622
623
  description: request.description,
623
624
  index: request.index,
624
625
  match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
625
626
  name: request.name
626
627
  });
627
- const marshalUpdateBackendRequest = (request, defaults) => ({
628
+ var marshalUpdateBackendRequest = (request, defaults) => ({
628
629
  failover_host: request.failoverHost,
629
630
  forward_port: request.forwardPort,
630
631
  forward_port_algorithm: request.forwardPortAlgorithm,
@@ -645,8 +646,8 @@ const marshalUpdateBackendRequest = (request, defaults) => ({
645
646
  timeout_server: request.timeoutServer,
646
647
  timeout_tunnel: request.timeoutTunnel
647
648
  });
648
- const marshalUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
649
- const marshalUpdateFrontendRequest = (request, defaults) => ({
649
+ var marshalUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
650
+ var marshalUpdateFrontendRequest = (request, defaults) => ({
650
651
  backend_id: request.backendId,
651
652
  certificate_id: request.certificateId,
652
653
  certificate_ids: request.certificateIds,
@@ -657,7 +658,7 @@ const marshalUpdateFrontendRequest = (request, defaults) => ({
657
658
  name: request.name,
658
659
  timeout_client: request.timeoutClient
659
660
  });
660
- const marshalUpdateHealthCheckRequest = (request, defaults) => ({
661
+ var marshalUpdateHealthCheckRequest = (request, defaults) => ({
661
662
  check_delay: request.checkDelay,
662
663
  check_max_retries: request.checkMaxRetries,
663
664
  check_send_proxy: request.checkSendProxy,
@@ -695,22 +696,22 @@ const marshalUpdateHealthCheckRequest = (request, defaults) => ({
695
696
  }
696
697
  ])
697
698
  });
698
- const marshalUpdateIpRequest = (request, defaults) => ({
699
+ var marshalUpdateIpRequest = (request, defaults) => ({
699
700
  lb_id: request.lbId,
700
701
  reverse: request.reverse,
701
702
  tags: request.tags
702
703
  });
703
- const marshalUpdateLbRequest = (request, defaults) => ({
704
+ var marshalUpdateLbRequest = (request, defaults) => ({
704
705
  description: request.description,
705
706
  name: request.name,
706
707
  ssl_compatibility_level: request.sslCompatibilityLevel,
707
708
  tags: request.tags
708
709
  });
709
- const marshalUpdateRouteRequest = (request, defaults) => ({
710
+ var marshalUpdateRouteRequest = (request, defaults) => ({
710
711
  backend_id: request.backendId,
711
712
  match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
712
713
  });
713
- const marshalUpdateSubscriberRequest = (request, defaults) => ({
714
+ var marshalUpdateSubscriberRequest = (request, defaults) => ({
714
715
  name: request.name,
715
716
  ...resolveOneOf([{
716
717
  param: "email_config",
@@ -720,8 +721,8 @@ const marshalUpdateSubscriberRequest = (request, defaults) => ({
720
721
  value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
721
722
  }])
722
723
  });
723
- const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
724
- const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
724
+ var marshalZonedApiAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
725
+ var marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
725
726
  ipam_ids: request.ipamIds,
726
727
  private_network_id: request.privateNetworkId,
727
728
  ...resolveOneOf([
@@ -739,14 +740,14 @@ const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
739
740
  }
740
741
  ])
741
742
  });
742
- const marshalZonedApiCreateAclRequest = (request, defaults) => ({
743
+ var marshalZonedApiCreateAclRequest = (request, defaults) => ({
743
744
  action: marshalAclAction(request.action, defaults),
744
745
  description: request.description,
745
746
  index: request.index,
746
747
  match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
747
748
  name: request.name || randomName("acl")
748
749
  });
749
- const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
750
+ var marshalZonedApiCreateBackendRequest = (request, defaults) => ({
750
751
  failover_host: request.failoverHost,
751
752
  forward_port: request.forwardPort,
752
753
  forward_port_algorithm: request.forwardPortAlgorithm,
@@ -769,7 +770,7 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
769
770
  timeout_server: request.timeoutServer,
770
771
  timeout_tunnel: request.timeoutTunnel
771
772
  });
772
- const marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
773
+ var marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
773
774
  name: request.name || randomName("certificate"),
774
775
  ...resolveOneOf([{
775
776
  param: "letsencrypt",
@@ -779,7 +780,7 @@ const marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
779
780
  value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate, defaults) : void 0
780
781
  }])
781
782
  });
782
- const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
783
+ var marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
783
784
  backend_id: request.backendId,
784
785
  certificate_id: request.certificateId,
785
786
  certificate_ids: request.certificateIds,
@@ -790,7 +791,7 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
790
791
  name: request.name || randomName("lbf"),
791
792
  timeout_client: request.timeoutClient
792
793
  });
793
- const marshalZonedApiCreateIpRequest = (request, defaults) => ({
794
+ var marshalZonedApiCreateIpRequest = (request, defaults) => ({
794
795
  is_ipv6: request.isIpv6,
795
796
  reverse: request.reverse,
796
797
  tags: request.tags,
@@ -804,7 +805,7 @@ const marshalZonedApiCreateIpRequest = (request, defaults) => ({
804
805
  value: request.organizationId
805
806
  }])
806
807
  });
807
- const marshalZonedApiCreateLbRequest = (request, defaults) => ({
808
+ var marshalZonedApiCreateLbRequest = (request, defaults) => ({
808
809
  assign_flexible_ip: request.assignFlexibleIp,
809
810
  assign_flexible_ipv6: request.assignFlexibleIpv6,
810
811
  description: request.description,
@@ -824,12 +825,12 @@ const marshalZonedApiCreateLbRequest = (request, defaults) => ({
824
825
  value: request.organizationId
825
826
  }])
826
827
  });
827
- const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
828
+ var marshalZonedApiCreateRouteRequest = (request, defaults) => ({
828
829
  backend_id: request.backendId,
829
830
  frontend_id: request.frontendId,
830
831
  match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
831
832
  });
832
- const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
833
+ var marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
833
834
  name: request.name,
834
835
  ...resolveOneOf([{
835
836
  default: defaults.defaultProjectId,
@@ -848,9 +849,9 @@ const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
848
849
  value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
849
850
  }])
850
851
  });
851
- const marshalZonedApiDetachPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
852
- const marshalZonedApiMigrateLbRequest = (request, defaults) => ({ type: request.type });
853
- const marshalZonedApiRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
852
+ var marshalZonedApiDetachPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
853
+ var marshalZonedApiMigrateLbRequest = (request, defaults) => ({ type: request.type });
854
+ var marshalZonedApiRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
854
855
  var marshalAclSpec = (request, defaults) => ({
855
856
  action: marshalAclAction(request.action, defaults),
856
857
  description: request.description,
@@ -858,17 +859,17 @@ var marshalAclSpec = (request, defaults) => ({
858
859
  match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
859
860
  name: request.name
860
861
  });
861
- const marshalZonedApiSetAclsRequest = (request, defaults) => ({ acls: request.acls.map((elt) => marshalAclSpec(elt, defaults)) });
862
- const marshalZonedApiSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
863
- const marshalZonedApiSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
864
- const marshalZonedApiUpdateAclRequest = (request, defaults) => ({
862
+ var marshalZonedApiSetAclsRequest = (request, defaults) => ({ acls: request.acls.map((elt) => marshalAclSpec(elt, defaults)) });
863
+ var marshalZonedApiSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
864
+ var marshalZonedApiSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
865
+ var marshalZonedApiUpdateAclRequest = (request, defaults) => ({
865
866
  action: marshalAclAction(request.action, defaults),
866
867
  description: request.description,
867
868
  index: request.index,
868
869
  match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
869
870
  name: request.name
870
871
  });
871
- const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
872
+ var marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
872
873
  failover_host: request.failoverHost,
873
874
  forward_port: request.forwardPort,
874
875
  forward_port_algorithm: request.forwardPortAlgorithm,
@@ -889,8 +890,8 @@ const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
889
890
  timeout_server: request.timeoutServer,
890
891
  timeout_tunnel: request.timeoutTunnel
891
892
  });
892
- const marshalZonedApiUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
893
- const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
893
+ var marshalZonedApiUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
894
+ var marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
894
895
  backend_id: request.backendId,
895
896
  certificate_id: request.certificateId,
896
897
  certificate_ids: request.certificateIds,
@@ -901,7 +902,7 @@ const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
901
902
  name: request.name,
902
903
  timeout_client: request.timeoutClient
903
904
  });
904
- const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
905
+ var marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
905
906
  check_delay: request.checkDelay,
906
907
  check_max_retries: request.checkMaxRetries,
907
908
  check_send_proxy: request.checkSendProxy,
@@ -939,22 +940,22 @@ const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
939
940
  }
940
941
  ])
941
942
  });
942
- const marshalZonedApiUpdateIpRequest = (request, defaults) => ({
943
+ var marshalZonedApiUpdateIpRequest = (request, defaults) => ({
943
944
  lb_id: request.lbId,
944
945
  reverse: request.reverse,
945
946
  tags: request.tags
946
947
  });
947
- const marshalZonedApiUpdateLbRequest = (request, defaults) => ({
948
+ var marshalZonedApiUpdateLbRequest = (request, defaults) => ({
948
949
  description: request.description,
949
950
  name: request.name,
950
951
  ssl_compatibility_level: request.sslCompatibilityLevel,
951
952
  tags: request.tags
952
953
  });
953
- const marshalZonedApiUpdateRouteRequest = (request, defaults) => ({
954
+ var marshalZonedApiUpdateRouteRequest = (request, defaults) => ({
954
955
  backend_id: request.backendId,
955
956
  match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
956
957
  });
957
- const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
958
+ var marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
958
959
  name: request.name,
959
960
  ...resolveOneOf([{
960
961
  param: "email_config",
@@ -964,4 +965,5 @@ const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
964
965
  value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
965
966
  }])
966
967
  });
968
+ //#endregion
967
969
  export { marshalAddBackendServersRequest, marshalAttachPrivateNetworkRequest, marshalCreateAclRequest, marshalCreateBackendRequest, marshalCreateCertificateRequest, marshalCreateFrontendRequest, marshalCreateIpRequest, marshalCreateLbRequest, marshalCreateRouteRequest, marshalCreateSubscriberRequest, marshalMigrateLbRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalSubscribeToLbRequest, marshalUpdateAclRequest, marshalUpdateBackendRequest, marshalUpdateCertificateRequest, marshalUpdateFrontendRequest, marshalUpdateHealthCheckRequest, marshalUpdateIpRequest, marshalUpdateLbRequest, marshalUpdateRouteRequest, marshalUpdateSubscriberRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiAttachPrivateNetworkRequest, marshalZonedApiCreateAclRequest, marshalZonedApiCreateBackendRequest, marshalZonedApiCreateCertificateRequest, marshalZonedApiCreateFrontendRequest, marshalZonedApiCreateIpRequest, marshalZonedApiCreateLbRequest, marshalZonedApiCreateRouteRequest, marshalZonedApiCreateSubscriberRequest, marshalZonedApiDetachPrivateNetworkRequest, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalBackendServerStats, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber };
@@ -1162,7 +1162,7 @@ export type CreateLbRequest = {
1162
1162
  */
1163
1163
  type: string;
1164
1164
  /**
1165
- * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
1165
+ * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0).
1166
1166
  */
1167
1167
  sslCompatibilityLevel?: SSLCompatibilityLevel;
1168
1168
  };
@@ -2186,7 +2186,7 @@ export type UpdateLbRequest = {
2186
2186
  */
2187
2187
  tags?: string[];
2188
2188
  /**
2189
- * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and don't need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
2189
+ * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0).
2190
2190
  */
2191
2191
  sslCompatibilityLevel?: SSLCompatibilityLevel;
2192
2192
  };
@@ -2563,7 +2563,7 @@ export type ZonedApiCreateLbRequest = {
2563
2563
  */
2564
2564
  type: string;
2565
2565
  /**
2566
- * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
2566
+ * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0).
2567
2567
  */
2568
2568
  sslCompatibilityLevel?: SSLCompatibilityLevel;
2569
2569
  };
@@ -3475,7 +3475,7 @@ export type ZonedApiUpdateLbRequest = {
3475
3475
  */
3476
3476
  tags?: string[];
3477
3477
  /**
3478
- * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and don't need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
3478
+ * Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0).
3479
3479
  */
3480
3480
  sslCompatibilityLevel?: SSLCompatibilityLevel;
3481
3481
  };
File without changes
@@ -1,8 +1,10 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  HealthCheckHttpConfig: () => HealthCheckHttpConfig,
4
5
  HealthCheckHttpsConfig: () => HealthCheckHttpsConfig
5
6
  });
6
- const HealthCheckHttpConfig = { hostHeader: { pattern: /^[^\s]+$/ } };
7
- const HealthCheckHttpsConfig = { hostHeader: { pattern: /^[^\s]+$/ } };
8
- export { validation_rules_gen_exports };
7
+ var HealthCheckHttpConfig = { hostHeader: { pattern: /^[^\s]+$/ } };
8
+ var HealthCheckHttpsConfig = { hostHeader: { pattern: /^[^\s]+$/ } };
9
+ //#endregion
10
+ export { HealthCheckHttpConfig, HealthCheckHttpsConfig, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-lb",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Scaleway SDK lb",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",