@scaleway/sdk-edge-services 2.8.0 → 2.10.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/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1beta1/api.gen.d.ts +1 -1
- package/dist/v1beta1/api.gen.js +6 -4
- package/dist/v1beta1/content.gen.js +4 -2
- package/dist/v1beta1/index.gen.d.ts +1 -1
- package/dist/v1beta1/index.gen.js +3 -1
- package/dist/v1beta1/marshalling.gen.js +73 -54
- package/dist/v1beta1/metadata.gen.d.ts +257 -0
- package/dist/v1beta1/metadata.gen.js +285 -0
- package/dist/v1beta1/types.gen.d.ts +35 -8
- package/dist/v1beta1/types.gen.js +0 -0
- package/dist/v1beta1/validation-rules.gen.js +6 -4
- package/package.json +5 -5
|
@@ -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 };
|
|
@@ -278,7 +278,7 @@ export declare class API extends ParentAPI {
|
|
|
278
278
|
[Symbol.asyncIterator]: () => AsyncGenerator<RouteStage[], void, void>;
|
|
279
279
|
};
|
|
280
280
|
/**
|
|
281
|
-
* Create route stage. Create a new route stage. You must specify the `waf_stage_id`
|
|
281
|
+
* Create route stage. Create a new route stage. You must specify the `waf_stage_id` or `backend_stage_id` fields to customize the route.
|
|
282
282
|
*
|
|
283
283
|
* @param request - The request {@link CreateRouteStageRequest}
|
|
284
284
|
* @returns A Promise of RouteStage
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1beta1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Edge Services API.
|
|
7
8
|
*/
|
|
8
|
-
var API
|
|
9
|
+
var API = class extends API$1 {
|
|
9
10
|
pageOfListPipelines = (request = {}) => this.client.fetch({
|
|
10
11
|
method: "GET",
|
|
11
12
|
path: `/edge-services/v1beta1/pipelines`,
|
|
@@ -397,7 +398,7 @@ var API$1 = class extends API {
|
|
|
397
398
|
*/
|
|
398
399
|
listRouteStages = (request) => enrichForPagination("stages", this.pageOfListRouteStages, request);
|
|
399
400
|
/**
|
|
400
|
-
* Create route stage. Create a new route stage. You must specify the `waf_stage_id`
|
|
401
|
+
* Create route stage. Create a new route stage. You must specify the `waf_stage_id` or `backend_stage_id` fields to customize the route.
|
|
401
402
|
*
|
|
402
403
|
* @param request - The request {@link CreateRouteStageRequest}
|
|
403
404
|
* @returns A Promise of RouteStage
|
|
@@ -573,4 +574,5 @@ var API$1 = class extends API {
|
|
|
573
574
|
path: `/edge-services/v1beta1/billing/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
574
575
|
}, unmarshalGetBillingResponse);
|
|
575
576
|
};
|
|
576
|
-
|
|
577
|
+
//#endregion
|
|
578
|
+
export { API };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
//#region src/v1beta1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link PipelineStatus}. */
|
|
2
|
-
|
|
3
|
+
var PIPELINE_TRANSIENT_STATUSES = ["pending"];
|
|
3
4
|
/** Lists transient statutes of the enum {@link PurgeRequestStatus}. */
|
|
4
|
-
|
|
5
|
+
var PURGE_REQUEST_TRANSIENT_STATUSES = ["pending"];
|
|
6
|
+
//#endregion
|
|
5
7
|
export { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, DNSStageType, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, RouteRule, RouteStage, RuleHttpMatch, RuleHttpMatchMethodFilter, RuleHttpMatchPathFilter, RuleHttpMatchPathFilterPathFilterType, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, ScalewayServerlessContainerBackendConfig, ScalewayServerlessFunctionBackendConfig, SearchBackendStagesRequest, SearchBackendStagesRequestOrderBy, SearchRouteRulesRequest, SearchRouteRulesRequestOrderBy, SearchWafStagesRequest, SearchWafStagesRequestOrderBy, SelectPlanRequest, SetHeadStageRequest, SetHeadStageRequestAddNewHeadStage, SetHeadStageRequestRemoveHeadStage, SetHeadStageRequestSwapHeadStage, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage, WafStageMode, } from './types.gen.js';
|
|
4
|
+
export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, DNSStageType, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, RouteRule, RouteStage, RuleHttpMatch, RuleHttpMatchHostFilter, RuleHttpMatchHostFilterHostFilterType, RuleHttpMatchMethodFilter, RuleHttpMatchPathFilter, RuleHttpMatchPathFilterPathFilterType, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, ScalewayServerlessContainerBackendConfig, ScalewayServerlessFunctionBackendConfig, SearchBackendStagesRequest, SearchBackendStagesRequestOrderBy, SearchRouteRulesRequest, SearchRouteRulesRequestOrderBy, SearchWafStagesRequest, SearchWafStagesRequestOrderBy, SelectPlanRequest, SetHeadStageRequest, SetHeadStageRequestAddNewHeadStage, SetHeadStageRequestRemoveHeadStage, SetHeadStageRequestSwapHeadStage, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage, WafStageMode, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -3,6 +3,7 @@ import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from ".
|
|
|
3
3
|
import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1beta1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
PIPELINE_TRANSIENT_STATUSES: () => PIPELINE_TRANSIENT_STATUSES,
|
|
@@ -61,4 +62,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
61
62
|
unmarshalTLSStage: () => unmarshalTLSStage,
|
|
62
63
|
unmarshalWafStage: () => unmarshalWafStage
|
|
63
64
|
});
|
|
64
|
-
|
|
65
|
+
//#endregion
|
|
66
|
+
export { API, PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1beta1/marshalling.gen.ts
|
|
2
3
|
var unmarshalScalewayLb = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
@@ -36,7 +37,7 @@ var unmarshalScalewayServerlessFunctionBackendConfig = (data) => {
|
|
|
36
37
|
region: data.region
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
var unmarshalBackendStage = (data) => {
|
|
40
41
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`);
|
|
41
42
|
return {
|
|
42
43
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -49,7 +50,7 @@ const unmarshalBackendStage = (data) => {
|
|
|
49
50
|
updatedAt: unmarshalDate(data.updated_at)
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
|
-
|
|
53
|
+
var unmarshalCacheStage = (data) => {
|
|
53
54
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`);
|
|
54
55
|
return {
|
|
55
56
|
backendStageId: data.backend_stage_id,
|
|
@@ -63,7 +64,7 @@ const unmarshalCacheStage = (data) => {
|
|
|
63
64
|
wafStageId: data.waf_stage_id
|
|
64
65
|
};
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
var unmarshalDNSStage = (data) => {
|
|
67
68
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`);
|
|
68
69
|
return {
|
|
69
70
|
backendStageId: data.backend_stage_id,
|
|
@@ -75,7 +76,8 @@ const unmarshalDNSStage = (data) => {
|
|
|
75
76
|
pipelineId: data.pipeline_id,
|
|
76
77
|
tlsStageId: data.tls_stage_id,
|
|
77
78
|
type: data.type,
|
|
78
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
79
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
80
|
+
wildcardDomain: data.wildcard_domain
|
|
79
81
|
};
|
|
80
82
|
};
|
|
81
83
|
var unmarshalPipelineError = (data) => {
|
|
@@ -88,7 +90,7 @@ var unmarshalPipelineError = (data) => {
|
|
|
88
90
|
type: data.type
|
|
89
91
|
};
|
|
90
92
|
};
|
|
91
|
-
|
|
93
|
+
var unmarshalPipeline = (data) => {
|
|
92
94
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`);
|
|
93
95
|
return {
|
|
94
96
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -102,7 +104,7 @@ const unmarshalPipeline = (data) => {
|
|
|
102
104
|
updatedAt: unmarshalDate(data.updated_at)
|
|
103
105
|
};
|
|
104
106
|
};
|
|
105
|
-
|
|
107
|
+
var unmarshalRouteStage = (data) => {
|
|
106
108
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteStage' failed as data isn't a dictionary.`);
|
|
107
109
|
return {
|
|
108
110
|
backendStageId: data.backend_stage_id,
|
|
@@ -120,7 +122,7 @@ var unmarshalTLSSecret = (data) => {
|
|
|
120
122
|
secretId: data.secret_id
|
|
121
123
|
};
|
|
122
124
|
};
|
|
123
|
-
|
|
125
|
+
var unmarshalTLSStage = (data) => {
|
|
124
126
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`);
|
|
125
127
|
return {
|
|
126
128
|
backendStageId: data.backend_stage_id,
|
|
@@ -136,7 +138,7 @@ const unmarshalTLSStage = (data) => {
|
|
|
136
138
|
wafStageId: data.waf_stage_id
|
|
137
139
|
};
|
|
138
140
|
};
|
|
139
|
-
|
|
141
|
+
var unmarshalWafStage = (data) => {
|
|
140
142
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafStage' failed as data isn't a dictionary.`);
|
|
141
143
|
return {
|
|
142
144
|
backendStageId: data.backend_stage_id,
|
|
@@ -148,7 +150,7 @@ const unmarshalWafStage = (data) => {
|
|
|
148
150
|
updatedAt: unmarshalDate(data.updated_at)
|
|
149
151
|
};
|
|
150
152
|
};
|
|
151
|
-
|
|
153
|
+
var unmarshalPipelineStages = (data) => {
|
|
152
154
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PipelineStages' failed as data isn't a dictionary.`);
|
|
153
155
|
return {
|
|
154
156
|
backendStages: unmarshalArrayOfObject(data.backend_stages, unmarshalBackendStage),
|
|
@@ -160,7 +162,7 @@ const unmarshalPipelineStages = (data) => {
|
|
|
160
162
|
wafStages: unmarshalArrayOfObject(data.waf_stages, unmarshalWafStage)
|
|
161
163
|
};
|
|
162
164
|
};
|
|
163
|
-
|
|
165
|
+
var unmarshalPurgeRequest = (data) => {
|
|
164
166
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`);
|
|
165
167
|
return {
|
|
166
168
|
all: data.all,
|
|
@@ -172,6 +174,13 @@ const unmarshalPurgeRequest = (data) => {
|
|
|
172
174
|
updatedAt: unmarshalDate(data.updated_at)
|
|
173
175
|
};
|
|
174
176
|
};
|
|
177
|
+
var unmarshalRuleHttpMatchHostFilter = (data) => {
|
|
178
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchHostFilter' failed as data isn't a dictionary.`);
|
|
179
|
+
return {
|
|
180
|
+
hostFilterType: data.host_filter_type,
|
|
181
|
+
value: data.value
|
|
182
|
+
};
|
|
183
|
+
};
|
|
175
184
|
var unmarshalRuleHttpMatchPathFilter = (data) => {
|
|
176
185
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchPathFilter' failed as data isn't a dictionary.`);
|
|
177
186
|
return {
|
|
@@ -182,6 +191,7 @@ var unmarshalRuleHttpMatchPathFilter = (data) => {
|
|
|
182
191
|
var unmarshalRuleHttpMatch = (data) => {
|
|
183
192
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatch' failed as data isn't a dictionary.`);
|
|
184
193
|
return {
|
|
194
|
+
hostFilter: data.host_filter ? unmarshalRuleHttpMatchHostFilter(data.host_filter) : void 0,
|
|
185
195
|
methodFilters: data.method_filters,
|
|
186
196
|
pathFilter: data.path_filter ? unmarshalRuleHttpMatchPathFilter(data.path_filter) : void 0
|
|
187
197
|
};
|
|
@@ -196,22 +206,22 @@ var unmarshalRouteRule = (data) => {
|
|
|
196
206
|
wafStageId: data.waf_stage_id
|
|
197
207
|
};
|
|
198
208
|
};
|
|
199
|
-
|
|
209
|
+
var unmarshalAddRouteRulesResponse = (data) => {
|
|
200
210
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
201
211
|
return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
|
|
202
212
|
};
|
|
203
|
-
|
|
213
|
+
var unmarshalCheckDomainResponse = (data) => {
|
|
204
214
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`);
|
|
205
215
|
return { isValid: data.is_valid };
|
|
206
216
|
};
|
|
207
|
-
|
|
217
|
+
var unmarshalCheckLbOriginResponse = (data) => {
|
|
208
218
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`);
|
|
209
219
|
return {
|
|
210
220
|
errorType: data.error_type,
|
|
211
221
|
isValid: data.is_valid
|
|
212
222
|
};
|
|
213
223
|
};
|
|
214
|
-
|
|
224
|
+
var unmarshalCheckPEMChainResponse = (data) => {
|
|
215
225
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`);
|
|
216
226
|
return { isValid: data.is_valid };
|
|
217
227
|
};
|
|
@@ -222,14 +232,15 @@ var unmarshalPlanDetails = (data) => {
|
|
|
222
232
|
packageGb: data.package_gb,
|
|
223
233
|
pipelineLimit: data.pipeline_limit,
|
|
224
234
|
planName: data.plan_name,
|
|
225
|
-
wafRequests: data.waf_requests
|
|
235
|
+
wafRequests: data.waf_requests,
|
|
236
|
+
wildcardDomain: data.wildcard_domain
|
|
226
237
|
};
|
|
227
238
|
};
|
|
228
239
|
var unmarshalPlanUsageDetails = (data) => {
|
|
229
240
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`);
|
|
230
241
|
return { planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0 };
|
|
231
242
|
};
|
|
232
|
-
|
|
243
|
+
var unmarshalGetBillingResponse = (data) => {
|
|
233
244
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetBillingResponse' failed as data isn't a dictionary.`);
|
|
234
245
|
return {
|
|
235
246
|
currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
|
|
@@ -251,25 +262,25 @@ var unmarshalHeadStageResponseHeadStage = (data) => {
|
|
|
251
262
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponseHeadStage' failed as data isn't a dictionary.`);
|
|
252
263
|
return { dnsStageId: data.dns_stage_id };
|
|
253
264
|
};
|
|
254
|
-
|
|
265
|
+
var unmarshalHeadStageResponse = (data) => {
|
|
255
266
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponse' failed as data isn't a dictionary.`);
|
|
256
267
|
return { headStage: data.head_stage ? unmarshalHeadStageResponseHeadStage(data.head_stage) : void 0 };
|
|
257
268
|
};
|
|
258
|
-
|
|
269
|
+
var unmarshalListBackendStagesResponse = (data) => {
|
|
259
270
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`);
|
|
260
271
|
return {
|
|
261
272
|
stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
|
|
262
273
|
totalCount: data.total_count
|
|
263
274
|
};
|
|
264
275
|
};
|
|
265
|
-
|
|
276
|
+
var unmarshalListCacheStagesResponse = (data) => {
|
|
266
277
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`);
|
|
267
278
|
return {
|
|
268
279
|
stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
|
|
269
280
|
totalCount: data.total_count
|
|
270
281
|
};
|
|
271
282
|
};
|
|
272
|
-
|
|
283
|
+
var unmarshalListDNSStagesResponse = (data) => {
|
|
273
284
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`);
|
|
274
285
|
return {
|
|
275
286
|
stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
|
|
@@ -280,86 +291,91 @@ var unmarshalListHeadStagesResponseHeadStage = (data) => {
|
|
|
280
291
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponseHeadStage' failed as data isn't a dictionary.`);
|
|
281
292
|
return { dnsStageId: data.dns_stage_id };
|
|
282
293
|
};
|
|
283
|
-
|
|
294
|
+
var unmarshalListHeadStagesResponse = (data) => {
|
|
284
295
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponse' failed as data isn't a dictionary.`);
|
|
285
296
|
return {
|
|
286
297
|
headStages: unmarshalArrayOfObject(data.head_stages, unmarshalListHeadStagesResponseHeadStage),
|
|
287
298
|
totalCount: data.total_count
|
|
288
299
|
};
|
|
289
300
|
};
|
|
290
|
-
|
|
301
|
+
var unmarshalListPipelinesResponse = (data) => {
|
|
291
302
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`);
|
|
292
303
|
return {
|
|
293
304
|
pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
|
|
294
305
|
totalCount: data.total_count
|
|
295
306
|
};
|
|
296
307
|
};
|
|
297
|
-
|
|
308
|
+
var unmarshalListPipelinesWithStagesResponse = (data) => {
|
|
298
309
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesWithStagesResponse' failed as data isn't a dictionary.`);
|
|
299
310
|
return {
|
|
300
311
|
pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipelineStages),
|
|
301
312
|
totalCount: data.total_count
|
|
302
313
|
};
|
|
303
314
|
};
|
|
304
|
-
|
|
315
|
+
var unmarshalListPlansResponse = (data) => {
|
|
305
316
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPlansResponse' failed as data isn't a dictionary.`);
|
|
306
317
|
return {
|
|
307
318
|
plans: unmarshalArrayOfObject(data.plans, unmarshalPlanDetails),
|
|
308
319
|
totalCount: data.total_count
|
|
309
320
|
};
|
|
310
321
|
};
|
|
311
|
-
|
|
322
|
+
var unmarshalListPurgeRequestsResponse = (data) => {
|
|
312
323
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`);
|
|
313
324
|
return {
|
|
314
325
|
purgeRequests: unmarshalArrayOfObject(data.purge_requests, unmarshalPurgeRequest),
|
|
315
326
|
totalCount: data.total_count
|
|
316
327
|
};
|
|
317
328
|
};
|
|
318
|
-
|
|
329
|
+
var unmarshalListRouteRulesResponse = (data) => {
|
|
319
330
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
320
331
|
return {
|
|
321
332
|
routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule),
|
|
322
333
|
totalCount: data.total_count
|
|
323
334
|
};
|
|
324
335
|
};
|
|
325
|
-
|
|
336
|
+
var unmarshalListRouteStagesResponse = (data) => {
|
|
326
337
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteStagesResponse' failed as data isn't a dictionary.`);
|
|
327
338
|
return {
|
|
328
339
|
stages: unmarshalArrayOfObject(data.stages, unmarshalRouteStage),
|
|
329
340
|
totalCount: data.total_count
|
|
330
341
|
};
|
|
331
342
|
};
|
|
332
|
-
|
|
343
|
+
var unmarshalListTLSStagesResponse = (data) => {
|
|
333
344
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`);
|
|
334
345
|
return {
|
|
335
346
|
stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
|
|
336
347
|
totalCount: data.total_count
|
|
337
348
|
};
|
|
338
349
|
};
|
|
339
|
-
|
|
350
|
+
var unmarshalListWafStagesResponse = (data) => {
|
|
340
351
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWafStagesResponse' failed as data isn't a dictionary.`);
|
|
341
352
|
return {
|
|
342
353
|
stages: unmarshalArrayOfObject(data.stages, unmarshalWafStage),
|
|
343
354
|
totalCount: data.total_count
|
|
344
355
|
};
|
|
345
356
|
};
|
|
346
|
-
|
|
357
|
+
var unmarshalPlan = (data) => {
|
|
347
358
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Plan' failed as data isn't a dictionary.`);
|
|
348
359
|
return { planName: data.plan_name };
|
|
349
360
|
};
|
|
350
|
-
|
|
361
|
+
var unmarshalSetRouteRulesResponse = (data) => {
|
|
351
362
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
352
363
|
return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
|
|
353
364
|
};
|
|
365
|
+
var marshalRuleHttpMatchHostFilter = (request, defaults) => ({
|
|
366
|
+
host_filter_type: request.hostFilterType,
|
|
367
|
+
value: request.value
|
|
368
|
+
});
|
|
354
369
|
var marshalRuleHttpMatchPathFilter = (request, defaults) => ({
|
|
355
370
|
path_filter_type: request.pathFilterType,
|
|
356
371
|
value: request.value
|
|
357
372
|
});
|
|
358
373
|
var marshalRuleHttpMatch = (request, defaults) => ({
|
|
374
|
+
host_filter: request.hostFilter !== void 0 ? marshalRuleHttpMatchHostFilter(request.hostFilter, defaults) : void 0,
|
|
359
375
|
method_filters: request.methodFilters,
|
|
360
376
|
path_filter: request.pathFilter !== void 0 ? marshalRuleHttpMatchPathFilter(request.pathFilter, defaults) : void 0
|
|
361
377
|
});
|
|
362
|
-
|
|
378
|
+
var marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
363
379
|
...resolveOneOf([{
|
|
364
380
|
param: "rule_http_match",
|
|
365
381
|
value: request.ruleHttpMatch !== void 0 ? marshalRuleHttpMatch(request.ruleHttpMatch, defaults) : void 0
|
|
@@ -372,7 +388,7 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
|
372
388
|
value: request.wafStageId
|
|
373
389
|
}])
|
|
374
390
|
});
|
|
375
|
-
|
|
391
|
+
var marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
376
392
|
route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0,
|
|
377
393
|
...resolveOneOf([{
|
|
378
394
|
param: "after_position",
|
|
@@ -382,7 +398,7 @@ const marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
|
382
398
|
value: request.beforePosition
|
|
383
399
|
}])
|
|
384
400
|
});
|
|
385
|
-
|
|
401
|
+
var marshalCheckDomainRequest = (request, defaults) => ({
|
|
386
402
|
cname: request.cname,
|
|
387
403
|
fqdn: request.fqdn,
|
|
388
404
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
@@ -395,12 +411,12 @@ var marshalScalewayLb = (request, defaults) => ({
|
|
|
395
411
|
is_ssl: request.isSsl,
|
|
396
412
|
zone: request.zone
|
|
397
413
|
});
|
|
398
|
-
|
|
414
|
+
var marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb, defaults) : void 0 });
|
|
399
415
|
var marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
|
|
400
416
|
secret_id: request.secretId,
|
|
401
417
|
secret_region: request.secretRegion
|
|
402
418
|
});
|
|
403
|
-
|
|
419
|
+
var marshalCheckPEMChainRequest = (request, defaults) => ({
|
|
404
420
|
fqdn: request.fqdn,
|
|
405
421
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
406
422
|
...resolveOneOf([{
|
|
@@ -425,7 +441,7 @@ var marshalScalewayServerlessFunctionBackendConfig = (request, defaults) => ({
|
|
|
425
441
|
function_id: request.functionId,
|
|
426
442
|
region: request.region
|
|
427
443
|
});
|
|
428
|
-
|
|
444
|
+
var marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
429
445
|
{
|
|
430
446
|
param: "scaleway_s3",
|
|
431
447
|
value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
|
|
@@ -443,7 +459,7 @@ const marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOne
|
|
|
443
459
|
value: request.scalewayServerlessFunction !== void 0 ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
|
|
444
460
|
}
|
|
445
461
|
]) });
|
|
446
|
-
|
|
462
|
+
var marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
447
463
|
fallback_ttl: request.fallbackTtl,
|
|
448
464
|
include_cookies: request.includeCookies,
|
|
449
465
|
...resolveOneOf([
|
|
@@ -461,8 +477,9 @@ const marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
|
461
477
|
}
|
|
462
478
|
])
|
|
463
479
|
});
|
|
464
|
-
|
|
480
|
+
var marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
465
481
|
fqdns: request.fqdns,
|
|
482
|
+
wildcard_domain: request.wildcardDomain,
|
|
466
483
|
...resolveOneOf([
|
|
467
484
|
{
|
|
468
485
|
param: "tls_stage_id",
|
|
@@ -478,12 +495,12 @@ const marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
|
478
495
|
}
|
|
479
496
|
])
|
|
480
497
|
});
|
|
481
|
-
|
|
498
|
+
var marshalCreatePipelineRequest = (request, defaults) => ({
|
|
482
499
|
description: request.description,
|
|
483
500
|
name: request.name,
|
|
484
501
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
485
502
|
});
|
|
486
|
-
|
|
503
|
+
var marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
487
504
|
pipeline_id: request.pipelineId,
|
|
488
505
|
...resolveOneOf([{
|
|
489
506
|
param: "assets",
|
|
@@ -493,7 +510,7 @@ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
|
493
510
|
value: request.all
|
|
494
511
|
}])
|
|
495
512
|
});
|
|
496
|
-
|
|
513
|
+
var marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
497
514
|
param: "waf_stage_id",
|
|
498
515
|
value: request.wafStageId
|
|
499
516
|
}, {
|
|
@@ -504,7 +521,7 @@ var marshalTLSSecret = (request, defaults) => ({
|
|
|
504
521
|
region: request.region,
|
|
505
522
|
secret_id: request.secretId
|
|
506
523
|
});
|
|
507
|
-
|
|
524
|
+
var marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
508
525
|
managed_certificate: request.managedCertificate,
|
|
509
526
|
secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt, defaults)) : void 0,
|
|
510
527
|
...resolveOneOf([
|
|
@@ -526,7 +543,7 @@ const marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
|
526
543
|
}
|
|
527
544
|
])
|
|
528
545
|
});
|
|
529
|
-
|
|
546
|
+
var marshalCreateWafStageRequest = (request, defaults) => ({
|
|
530
547
|
mode: request.mode,
|
|
531
548
|
paranoia_level: request.paranoiaLevel,
|
|
532
549
|
...resolveOneOf([{
|
|
@@ -534,7 +551,7 @@ const marshalCreateWafStageRequest = (request, defaults) => ({
|
|
|
534
551
|
value: request.backendStageId
|
|
535
552
|
}])
|
|
536
553
|
});
|
|
537
|
-
|
|
554
|
+
var marshalSelectPlanRequest = (request, defaults) => ({
|
|
538
555
|
plan_name: request.planName,
|
|
539
556
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
540
557
|
});
|
|
@@ -544,7 +561,7 @@ var marshalSetHeadStageRequestSwapHeadStage = (request, defaults) => ({
|
|
|
544
561
|
current_stage_id: request.currentStageId,
|
|
545
562
|
new_stage_id: request.newStageId
|
|
546
563
|
});
|
|
547
|
-
|
|
564
|
+
var marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
548
565
|
{
|
|
549
566
|
param: "add_new_head_stage",
|
|
550
567
|
value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage, defaults) : void 0
|
|
@@ -558,8 +575,8 @@ const marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
|
558
575
|
value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage, defaults) : void 0
|
|
559
576
|
}
|
|
560
577
|
]) });
|
|
561
|
-
|
|
562
|
-
|
|
578
|
+
var marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
|
|
579
|
+
var marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
563
580
|
pipeline_id: request.pipelineId,
|
|
564
581
|
...resolveOneOf([
|
|
565
582
|
{
|
|
@@ -580,7 +597,7 @@ const marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
|
580
597
|
}
|
|
581
598
|
])
|
|
582
599
|
});
|
|
583
|
-
|
|
600
|
+
var marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
584
601
|
fallback_ttl: request.fallbackTtl,
|
|
585
602
|
include_cookies: request.includeCookies,
|
|
586
603
|
...resolveOneOf([
|
|
@@ -598,8 +615,9 @@ const marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
|
598
615
|
}
|
|
599
616
|
])
|
|
600
617
|
});
|
|
601
|
-
|
|
618
|
+
var marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
602
619
|
fqdns: request.fqdns,
|
|
620
|
+
wildcard_domain: request.wildcardDomain,
|
|
603
621
|
...resolveOneOf([
|
|
604
622
|
{
|
|
605
623
|
param: "tls_stage_id",
|
|
@@ -615,11 +633,11 @@ const marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
|
615
633
|
}
|
|
616
634
|
])
|
|
617
635
|
});
|
|
618
|
-
|
|
636
|
+
var marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
619
637
|
description: request.description,
|
|
620
638
|
name: request.name
|
|
621
639
|
});
|
|
622
|
-
|
|
640
|
+
var marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
623
641
|
param: "waf_stage_id",
|
|
624
642
|
value: request.wafStageId
|
|
625
643
|
}, {
|
|
@@ -627,7 +645,7 @@ const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf
|
|
|
627
645
|
value: request.backendStageId
|
|
628
646
|
}]) });
|
|
629
647
|
var marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
|
|
630
|
-
|
|
648
|
+
var marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
631
649
|
managed_certificate: request.managedCertificate,
|
|
632
650
|
tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig, defaults) : void 0,
|
|
633
651
|
...resolveOneOf([
|
|
@@ -649,7 +667,7 @@ const marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
|
649
667
|
}
|
|
650
668
|
])
|
|
651
669
|
});
|
|
652
|
-
|
|
670
|
+
var marshalUpdateWafStageRequest = (request, defaults) => ({
|
|
653
671
|
mode: request.mode,
|
|
654
672
|
paranoia_level: request.paranoiaLevel,
|
|
655
673
|
...resolveOneOf([{
|
|
@@ -657,4 +675,5 @@ const marshalUpdateWafStageRequest = (request, defaults) => ({
|
|
|
657
675
|
value: request.backendStageId
|
|
658
676
|
}])
|
|
659
677
|
});
|
|
678
|
+
//#endregion
|
|
660
679
|
export { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage };
|