@scaleway/sdk-edge-services 2.28.0 → 2.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,12 +4,12 @@ import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unma
4
4
  const unmarshalScalewayLb = (data) => {
5
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`);
6
6
  return {
7
- domainName: data.domain_name,
7
+ domainName: data.domain_name ?? null,
8
8
  frontendId: data.frontend_id,
9
- hasWebsocket: data.has_websocket,
9
+ hasWebsocket: data.has_websocket ?? null,
10
10
  id: data.id,
11
- isSsl: data.is_ssl,
12
- privateNetworkId: data.private_network_id,
11
+ isSsl: data.is_ssl ?? null,
12
+ privateNetworkId: data.private_network_id ?? null,
13
13
  zone: data.zone
14
14
  };
15
15
  };
@@ -20,9 +20,9 @@ const unmarshalScalewayLbBackendConfig = (data) => {
20
20
  const unmarshalScalewayS3BackendConfig = (data) => {
21
21
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayS3BackendConfig' failed as data isn't a dictionary.`);
22
22
  return {
23
- bucketName: data.bucket_name,
24
- bucketRegion: data.bucket_region,
25
- isWebsite: data.is_website
23
+ bucketName: data.bucket_name ?? null,
24
+ bucketRegion: data.bucket_region ?? null,
25
+ isWebsite: data.is_website ?? null
26
26
  };
27
27
  };
28
28
  const unmarshalScalewayServerlessContainerBackendConfig = (data) => {
@@ -42,38 +42,38 @@ const unmarshalScalewayServerlessFunctionBackendConfig = (data) => {
42
42
  const unmarshalBackendStage = (data) => {
43
43
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`);
44
44
  return {
45
- createdAt: unmarshalDate(data.created_at),
45
+ createdAt: unmarshalDate(data.created_at) ?? null,
46
46
  id: data.id,
47
47
  pipelineId: data.pipeline_id,
48
- scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : void 0,
49
- scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
50
- scalewayServerlessContainer: data.scaleway_serverless_container ? unmarshalScalewayServerlessContainerBackendConfig(data.scaleway_serverless_container) : void 0,
51
- scalewayServerlessFunction: data.scaleway_serverless_function ? unmarshalScalewayServerlessFunctionBackendConfig(data.scaleway_serverless_function) : void 0,
48
+ scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : null,
49
+ scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : null,
50
+ scalewayServerlessContainer: data.scaleway_serverless_container ? unmarshalScalewayServerlessContainerBackendConfig(data.scaleway_serverless_container) : null,
51
+ scalewayServerlessFunction: data.scaleway_serverless_function ? unmarshalScalewayServerlessFunctionBackendConfig(data.scaleway_serverless_function) : null,
52
52
  status: data.status,
53
- updatedAt: unmarshalDate(data.updated_at)
53
+ updatedAt: unmarshalDate(data.updated_at) ?? null
54
54
  };
55
55
  };
56
56
  const unmarshalCacheStage = (data) => {
57
57
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`);
58
58
  return {
59
- backendStageId: data.backend_stage_id,
60
- createdAt: unmarshalDate(data.created_at),
61
- fallbackTtl: data.fallback_ttl,
59
+ backendStageId: data.backend_stage_id ?? null,
60
+ createdAt: unmarshalDate(data.created_at) ?? null,
61
+ fallbackTtl: data.fallback_ttl ?? null,
62
62
  id: data.id,
63
63
  includeCookies: data.include_cookies,
64
64
  pipelineId: data.pipeline_id,
65
- routeStageId: data.route_stage_id,
65
+ routeStageId: data.route_stage_id ?? null,
66
66
  status: data.status,
67
- updatedAt: unmarshalDate(data.updated_at),
68
- wafStageId: data.waf_stage_id
67
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
68
+ wafStageId: data.waf_stage_id ?? null
69
69
  };
70
70
  };
71
71
  const unmarshalDNSStage = (data) => {
72
72
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`);
73
73
  return {
74
- backendStageId: data.backend_stage_id,
75
- cacheStageId: data.cache_stage_id,
76
- createdAt: unmarshalDate(data.created_at),
74
+ backendStageId: data.backend_stage_id ?? null,
75
+ cacheStageId: data.cache_stage_id ?? null,
76
+ createdAt: unmarshalDate(data.created_at) ?? null,
77
77
  defaultFqdn: data.default_fqdn,
78
78
  defaultPrivateFqdn: data.default_private_fqdn,
79
79
  fqdns: data.fqdns,
@@ -81,9 +81,9 @@ const unmarshalDNSStage = (data) => {
81
81
  id: data.id,
82
82
  pipelineId: data.pipeline_id,
83
83
  status: data.status,
84
- tlsStageId: data.tls_stage_id,
84
+ tlsStageId: data.tls_stage_id ?? null,
85
85
  type: data.type,
86
- updatedAt: unmarshalDate(data.updated_at),
86
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
87
87
  wildcardDomain: data.wildcard_domain
88
88
  };
89
89
  };
@@ -100,7 +100,7 @@ const unmarshalPipelineError = (data) => {
100
100
  const unmarshalPipeline = (data) => {
101
101
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`);
102
102
  return {
103
- createdAt: unmarshalDate(data.created_at),
103
+ createdAt: unmarshalDate(data.created_at) ?? null,
104
104
  description: data.description,
105
105
  errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
106
106
  id: data.id,
@@ -108,20 +108,20 @@ const unmarshalPipeline = (data) => {
108
108
  organizationId: data.organization_id,
109
109
  projectId: data.project_id,
110
110
  status: data.status,
111
- updatedAt: unmarshalDate(data.updated_at),
111
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
112
112
  vpcEndpointIds: data.vpc_endpoint_ids
113
113
  };
114
114
  };
115
115
  const unmarshalRouteStage = (data) => {
116
116
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteStage' failed as data isn't a dictionary.`);
117
117
  return {
118
- backendStageId: data.backend_stage_id,
119
- createdAt: unmarshalDate(data.created_at),
118
+ backendStageId: data.backend_stage_id ?? null,
119
+ createdAt: unmarshalDate(data.created_at) ?? null,
120
120
  id: data.id,
121
121
  pipelineId: data.pipeline_id,
122
122
  status: data.status,
123
- updatedAt: unmarshalDate(data.updated_at),
124
- wafStageId: data.waf_stage_id
123
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
124
+ wafStageId: data.waf_stage_id ?? null
125
125
  };
126
126
  };
127
127
  const unmarshalTLSSecret = (data) => {
@@ -134,18 +134,18 @@ const unmarshalTLSSecret = (data) => {
134
134
  const unmarshalTLSStage = (data) => {
135
135
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`);
136
136
  return {
137
- backendStageId: data.backend_stage_id,
138
- cacheStageId: data.cache_stage_id,
139
- certificateExpiresAt: unmarshalDate(data.certificate_expires_at),
140
- createdAt: unmarshalDate(data.created_at),
137
+ backendStageId: data.backend_stage_id ?? null,
138
+ cacheStageId: data.cache_stage_id ?? null,
139
+ certificateExpiresAt: unmarshalDate(data.certificate_expires_at) ?? null,
140
+ createdAt: unmarshalDate(data.created_at) ?? null,
141
141
  id: data.id,
142
142
  managedCertificate: data.managed_certificate,
143
143
  pipelineId: data.pipeline_id,
144
- routeStageId: data.route_stage_id,
144
+ routeStageId: data.route_stage_id ?? null,
145
145
  secrets: unmarshalArrayOfObject(data.secrets, unmarshalTLSSecret),
146
146
  status: data.status,
147
- updatedAt: unmarshalDate(data.updated_at),
148
- wafStageId: data.waf_stage_id
147
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
148
+ wafStageId: data.waf_stage_id ?? null
149
149
  };
150
150
  };
151
151
  const unmarshalWafExclusionRule = (data) => {
@@ -155,15 +155,15 @@ const unmarshalWafExclusionRule = (data) => {
155
155
  const unmarshalWafStage = (data) => {
156
156
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafStage' failed as data isn't a dictionary.`);
157
157
  return {
158
- backendStageId: data.backend_stage_id,
159
- createdAt: unmarshalDate(data.created_at),
158
+ backendStageId: data.backend_stage_id ?? null,
159
+ createdAt: unmarshalDate(data.created_at) ?? null,
160
160
  exclusionRules: unmarshalArrayOfObject(data.exclusion_rules, unmarshalWafExclusionRule),
161
161
  id: data.id,
162
162
  mode: data.mode,
163
163
  paranoiaLevel: data.paranoia_level,
164
164
  pipelineId: data.pipeline_id,
165
165
  status: data.status,
166
- updatedAt: unmarshalDate(data.updated_at)
166
+ updatedAt: unmarshalDate(data.updated_at) ?? null
167
167
  };
168
168
  };
169
169
  const unmarshalPipelineStages = (data) => {
@@ -172,7 +172,7 @@ const unmarshalPipelineStages = (data) => {
172
172
  backendStages: unmarshalArrayOfObject(data.backend_stages, unmarshalBackendStage),
173
173
  cacheStages: unmarshalArrayOfObject(data.cache_stages, unmarshalCacheStage),
174
174
  dnsStages: unmarshalArrayOfObject(data.dns_stages, unmarshalDNSStage),
175
- pipeline: data.pipeline ? unmarshalPipeline(data.pipeline) : void 0,
175
+ pipeline: data.pipeline ? unmarshalPipeline(data.pipeline) : null,
176
176
  routeStages: unmarshalArrayOfObject(data.route_stages, unmarshalRouteStage),
177
177
  tlsStages: unmarshalArrayOfObject(data.tls_stages, unmarshalTLSStage),
178
178
  wafStages: unmarshalArrayOfObject(data.waf_stages, unmarshalWafStage)
@@ -181,24 +181,24 @@ const unmarshalPipelineStages = (data) => {
181
181
  const unmarshalPurgeRequest = (data) => {
182
182
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`);
183
183
  return {
184
- all: data.all,
185
- assets: data.assets,
186
- createdAt: unmarshalDate(data.created_at),
184
+ all: data.all ?? null,
185
+ assets: data.assets ?? null,
186
+ createdAt: unmarshalDate(data.created_at) ?? null,
187
187
  id: data.id,
188
188
  pipelineId: data.pipeline_id,
189
189
  status: data.status,
190
- updatedAt: unmarshalDate(data.updated_at)
190
+ updatedAt: unmarshalDate(data.updated_at) ?? null
191
191
  };
192
192
  };
193
193
  const unmarshalVPCEndpoint = (data) => {
194
194
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPCEndpoint' failed as data isn't a dictionary.`);
195
195
  return {
196
- createdAt: unmarshalDate(data.created_at),
196
+ createdAt: unmarshalDate(data.created_at) ?? null,
197
197
  id: data.id,
198
198
  privateNetworkId: data.private_network_id,
199
199
  projectId: data.project_id,
200
200
  region: data.region,
201
- updatedAt: unmarshalDate(data.updated_at)
201
+ updatedAt: unmarshalDate(data.updated_at) ?? null
202
202
  };
203
203
  };
204
204
  const unmarshalRuleHttpMatchHostFilter = (data) => {
@@ -218,19 +218,19 @@ const unmarshalRuleHttpMatchPathFilter = (data) => {
218
218
  const unmarshalRuleHttpMatch = (data) => {
219
219
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatch' failed as data isn't a dictionary.`);
220
220
  return {
221
- hostFilter: data.host_filter ? unmarshalRuleHttpMatchHostFilter(data.host_filter) : void 0,
221
+ hostFilter: data.host_filter ? unmarshalRuleHttpMatchHostFilter(data.host_filter) : null,
222
222
  methodFilters: data.method_filters,
223
- pathFilter: data.path_filter ? unmarshalRuleHttpMatchPathFilter(data.path_filter) : void 0
223
+ pathFilter: data.path_filter ? unmarshalRuleHttpMatchPathFilter(data.path_filter) : null
224
224
  };
225
225
  };
226
226
  const unmarshalRouteRule = (data) => {
227
227
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteRule' failed as data isn't a dictionary.`);
228
228
  return {
229
- backendStageId: data.backend_stage_id,
229
+ backendStageId: data.backend_stage_id ?? null,
230
230
  position: data.position,
231
231
  routeStageId: data.route_stage_id,
232
- ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : void 0,
233
- wafStageId: data.waf_stage_id
232
+ ruleHttpMatch: data.rule_http_match ? unmarshalRuleHttpMatch(data.rule_http_match) : null,
233
+ wafStageId: data.waf_stage_id ?? null
234
234
  };
235
235
  };
236
236
  const unmarshalAddRouteRulesResponse = (data) => {
@@ -265,33 +265,33 @@ const unmarshalPlanDetails = (data) => {
265
265
  };
266
266
  const unmarshalPlanUsageDetails = (data) => {
267
267
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`);
268
- return { planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0 };
268
+ return { planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : null };
269
269
  };
270
270
  const unmarshalGetBillingResponse = (data) => {
271
271
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetBillingResponse' failed as data isn't a dictionary.`);
272
272
  return {
273
- currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
273
+ currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : null,
274
274
  currentPlanCacheUsage: data.current_plan_cache_usage,
275
275
  currentPlanWafUsage: data.current_plan_waf_usage,
276
- extraCacheCost: data.extra_cache_cost ? unmarshalMoney(data.extra_cache_cost) : void 0,
276
+ extraCacheCost: data.extra_cache_cost ? unmarshalMoney(data.extra_cache_cost) : null,
277
277
  extraCacheUsage: data.extra_cache_usage,
278
- extraPipelinesCost: data.extra_pipelines_cost ? unmarshalMoney(data.extra_pipelines_cost) : void 0,
279
- extraWafCost: data.extra_waf_cost ? unmarshalMoney(data.extra_waf_cost) : void 0,
278
+ extraPipelinesCost: data.extra_pipelines_cost ? unmarshalMoney(data.extra_pipelines_cost) : null,
279
+ extraWafCost: data.extra_waf_cost ? unmarshalMoney(data.extra_waf_cost) : null,
280
280
  extraWafUsage: data.extra_waf_usage,
281
281
  pipelineNumber: data.pipeline_number,
282
- planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0,
282
+ planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : null,
283
283
  plansUsageDetails: unmarshalMapOfObject(data.plans_usage_details, unmarshalPlanUsageDetails),
284
- totalCost: data.total_cost ? unmarshalMoney(data.total_cost) : void 0,
285
- wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : void 0
284
+ totalCost: data.total_cost ? unmarshalMoney(data.total_cost) : null,
285
+ wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : null
286
286
  };
287
287
  };
288
288
  const unmarshalHeadStageResponseHeadStage = (data) => {
289
289
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponseHeadStage' failed as data isn't a dictionary.`);
290
- return { dnsStageId: data.dns_stage_id };
290
+ return { dnsStageId: data.dns_stage_id ?? null };
291
291
  };
292
292
  const unmarshalHeadStageResponse = (data) => {
293
293
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponse' failed as data isn't a dictionary.`);
294
- return { headStage: data.head_stage ? unmarshalHeadStageResponseHeadStage(data.head_stage) : void 0 };
294
+ return { headStage: data.head_stage ? unmarshalHeadStageResponseHeadStage(data.head_stage) : null };
295
295
  };
296
296
  const unmarshalListBackendStagesResponse = (data) => {
297
297
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`);
@@ -316,7 +316,7 @@ const unmarshalListDNSStagesResponse = (data) => {
316
316
  };
317
317
  const unmarshalListHeadStagesResponseHeadStage = (data) => {
318
318
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponseHeadStage' failed as data isn't a dictionary.`);
319
- return { dnsStageId: data.dns_stage_id };
319
+ return { dnsStageId: data.dns_stage_id ?? null };
320
320
  };
321
321
  const unmarshalListHeadStagesResponse = (data) => {
322
322
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponse' failed as data isn't a dictionary.`);
@@ -424,14 +424,14 @@ const marshalRuleHttpMatchPathFilter = (request, defaults) => ({
424
424
  value: request.value
425
425
  });
426
426
  const marshalRuleHttpMatch = (request, defaults) => ({
427
- host_filter: request.hostFilter !== void 0 ? marshalRuleHttpMatchHostFilter(request.hostFilter, defaults) : void 0,
427
+ host_filter: request.hostFilter != null ? marshalRuleHttpMatchHostFilter(request.hostFilter, defaults) : void 0,
428
428
  method_filters: request.methodFilters,
429
- path_filter: request.pathFilter !== void 0 ? marshalRuleHttpMatchPathFilter(request.pathFilter, defaults) : void 0
429
+ path_filter: request.pathFilter != null ? marshalRuleHttpMatchPathFilter(request.pathFilter, defaults) : void 0
430
430
  });
431
431
  const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
432
432
  ...resolveOneOf([{
433
433
  param: "rule_http_match",
434
- value: request.ruleHttpMatch !== void 0 ? marshalRuleHttpMatch(request.ruleHttpMatch, defaults) : void 0
434
+ value: request.ruleHttpMatch != null ? marshalRuleHttpMatch(request.ruleHttpMatch, defaults) : void 0
435
435
  }]),
436
436
  ...resolveOneOf([{
437
437
  param: "backend_stage_id",
@@ -442,7 +442,7 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
442
442
  }])
443
443
  });
444
444
  const marshalAddRouteRulesRequest = (request, defaults) => ({
445
- route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0,
445
+ route_rules: request.routeRules != null ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0,
446
446
  ...resolveOneOf([{
447
447
  param: "after_position",
448
448
  value: request.afterPosition
@@ -465,7 +465,7 @@ const marshalScalewayLb = (request, defaults) => ({
465
465
  private_network_id: request.privateNetworkId,
466
466
  zone: request.zone
467
467
  });
468
- const marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb, defaults) : void 0 });
468
+ const marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb != null ? marshalScalewayLb(request.lb, defaults) : void 0 });
469
469
  const marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
470
470
  secret_id: request.secretId,
471
471
  secret_region: request.secretRegion
@@ -475,7 +475,7 @@ const marshalCheckPEMChainRequest = (request, defaults) => ({
475
475
  project_id: request.projectId ?? defaults.defaultProjectId,
476
476
  ...resolveOneOf([{
477
477
  param: "secret",
478
- value: request.secret !== void 0 ? marshalCheckPEMChainRequestSecretChain(request.secret, defaults) : void 0
478
+ value: request.secret != null ? marshalCheckPEMChainRequestSecretChain(request.secret, defaults) : void 0
479
479
  }, {
480
480
  param: "raw",
481
481
  value: request.raw
@@ -498,19 +498,19 @@ const marshalScalewayServerlessFunctionBackendConfig = (request, defaults) => ({
498
498
  const marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf([
499
499
  {
500
500
  param: "scaleway_s3",
501
- value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
501
+ value: request.scalewayS3 != null ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
502
502
  },
503
503
  {
504
504
  param: "scaleway_lb",
505
- value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb, defaults) : void 0
505
+ value: request.scalewayLb != null ? marshalScalewayLbBackendConfig(request.scalewayLb, defaults) : void 0
506
506
  },
507
507
  {
508
508
  param: "scaleway_serverless_container",
509
- value: request.scalewayServerlessContainer !== void 0 ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer, defaults) : void 0
509
+ value: request.scalewayServerlessContainer != null ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer, defaults) : void 0
510
510
  },
511
511
  {
512
512
  param: "scaleway_serverless_function",
513
- value: request.scalewayServerlessFunction !== void 0 ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
513
+ value: request.scalewayServerlessFunction != null ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
514
514
  }
515
515
  ]) });
516
516
  const marshalCreateCacheStageRequest = (request, defaults) => ({
@@ -578,7 +578,7 @@ const marshalTLSSecret = (request, defaults) => ({
578
578
  });
579
579
  const marshalCreateTLSStageRequest = (request, defaults) => ({
580
580
  managed_certificate: request.managedCertificate,
581
- secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt, defaults)) : void 0,
581
+ secrets: request.secrets != null ? request.secrets.map((elt) => marshalTLSSecret(elt, defaults)) : void 0,
582
582
  ...resolveOneOf([
583
583
  {
584
584
  param: "cache_stage_id",
@@ -606,7 +606,7 @@ const marshalCreateVPCEndpointRequest = (request, defaults) => ({
606
606
  const marshalWafExclusionRule = (request, defaults) => ({ rule_id: request.ruleId });
607
607
  const marshalWafExclusionRules = (request, defaults) => ({ rules: request.rules.map((elt) => marshalWafExclusionRule(elt, defaults)) });
608
608
  const marshalCreateWafStageRequest = (request, defaults) => ({
609
- exclusion_rules: request.exclusionRules !== void 0 ? marshalWafExclusionRules(request.exclusionRules, defaults) : void 0,
609
+ exclusion_rules: request.exclusionRules != null ? marshalWafExclusionRules(request.exclusionRules, defaults) : void 0,
610
610
  mode: request.mode,
611
611
  paranoia_level: request.paranoiaLevel,
612
612
  ...resolveOneOf([{
@@ -627,37 +627,37 @@ const marshalSetHeadStageRequestSwapHeadStage = (request, defaults) => ({
627
627
  const marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
628
628
  {
629
629
  param: "add_new_head_stage",
630
- value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage, defaults) : void 0
630
+ value: request.addNewHeadStage != null ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage, defaults) : void 0
631
631
  },
632
632
  {
633
633
  param: "remove_head_stage",
634
- value: request.removeHeadStage !== void 0 ? marshalSetHeadStageRequestRemoveHeadStage(request.removeHeadStage, defaults) : void 0
634
+ value: request.removeHeadStage != null ? marshalSetHeadStageRequestRemoveHeadStage(request.removeHeadStage, defaults) : void 0
635
635
  },
636
636
  {
637
637
  param: "swap_head_stage",
638
- value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage, defaults) : void 0
638
+ value: request.swapHeadStage != null ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage, defaults) : void 0
639
639
  }
640
640
  ]) });
641
641
  const marshalSetPipelineVPCEndpointsRequest = (request, defaults) => ({ vpc_endpoint_ids: request.vpcEndpointIds });
642
- const marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
642
+ const marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules != null ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
643
643
  const marshalUpdateBackendStageRequest = (request, defaults) => ({
644
644
  pipeline_id: request.pipelineId,
645
645
  ...resolveOneOf([
646
646
  {
647
647
  param: "scaleway_s3",
648
- value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
648
+ value: request.scalewayS3 != null ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
649
649
  },
650
650
  {
651
651
  param: "scaleway_lb",
652
- value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb, defaults) : void 0
652
+ value: request.scalewayLb != null ? marshalScalewayLbBackendConfig(request.scalewayLb, defaults) : void 0
653
653
  },
654
654
  {
655
655
  param: "scaleway_serverless_container",
656
- value: request.scalewayServerlessContainer !== void 0 ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer, defaults) : void 0
656
+ value: request.scalewayServerlessContainer != null ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer, defaults) : void 0
657
657
  },
658
658
  {
659
659
  param: "scaleway_serverless_function",
660
- value: request.scalewayServerlessFunction !== void 0 ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
660
+ value: request.scalewayServerlessFunction != null ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
661
661
  }
662
662
  ])
663
663
  });
@@ -712,7 +712,7 @@ const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf
712
712
  const marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
713
713
  const marshalUpdateTLSStageRequest = (request, defaults) => ({
714
714
  managed_certificate: request.managedCertificate,
715
- tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig, defaults) : void 0,
715
+ tls_secrets_config: request.tlsSecretsConfig != null ? marshalTLSSecretsConfig(request.tlsSecretsConfig, defaults) : void 0,
716
716
  ...resolveOneOf([
717
717
  {
718
718
  param: "cache_stage_id",
@@ -733,7 +733,7 @@ const marshalUpdateTLSStageRequest = (request, defaults) => ({
733
733
  ])
734
734
  });
735
735
  const marshalUpdateWafStageRequest = (request, defaults) => ({
736
- exclusion_rules: request.exclusionRules !== void 0 ? marshalWafExclusionRules(request.exclusionRules, defaults) : void 0,
736
+ exclusion_rules: request.exclusionRules != null ? marshalWafExclusionRules(request.exclusionRules, defaults) : void 0,
737
737
  mode: request.mode,
738
738
  paranoia_level: request.paranoiaLevel,
739
739
  ...resolveOneOf([{