@scaleway/sdk-edge-services 2.9.0 → 2.11.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.
@@ -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` field to customize the route.
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
@@ -398,7 +398,7 @@ var API = class extends API$1 {
398
398
  */
399
399
  listRouteStages = (request) => enrichForPagination("stages", this.pageOfListRouteStages, request);
400
400
  /**
401
- * Create route stage. Create a new route stage. You must specify the `waf_stage_id` field to customize the route.
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.
402
402
  *
403
403
  * @param request - The request {@link CreateRouteStageRequest}
404
404
  * @returns A Promise of RouteStage
@@ -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, 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';
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, StageStatus, 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';
@@ -47,6 +47,7 @@ var unmarshalBackendStage = (data) => {
47
47
  scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
48
48
  scalewayServerlessContainer: data.scaleway_serverless_container ? unmarshalScalewayServerlessContainerBackendConfig(data.scaleway_serverless_container) : void 0,
49
49
  scalewayServerlessFunction: data.scaleway_serverless_function ? unmarshalScalewayServerlessFunctionBackendConfig(data.scaleway_serverless_function) : void 0,
50
+ status: data.status,
50
51
  updatedAt: unmarshalDate(data.updated_at)
51
52
  };
52
53
  };
@@ -60,6 +61,7 @@ var unmarshalCacheStage = (data) => {
60
61
  includeCookies: data.include_cookies,
61
62
  pipelineId: data.pipeline_id,
62
63
  routeStageId: data.route_stage_id,
64
+ status: data.status,
63
65
  updatedAt: unmarshalDate(data.updated_at),
64
66
  wafStageId: data.waf_stage_id
65
67
  };
@@ -74,6 +76,7 @@ var unmarshalDNSStage = (data) => {
74
76
  fqdns: data.fqdns,
75
77
  id: data.id,
76
78
  pipelineId: data.pipeline_id,
79
+ status: data.status,
77
80
  tlsStageId: data.tls_stage_id,
78
81
  type: data.type,
79
82
  updatedAt: unmarshalDate(data.updated_at),
@@ -111,6 +114,7 @@ var unmarshalRouteStage = (data) => {
111
114
  createdAt: unmarshalDate(data.created_at),
112
115
  id: data.id,
113
116
  pipelineId: data.pipeline_id,
117
+ status: data.status,
114
118
  updatedAt: unmarshalDate(data.updated_at),
115
119
  wafStageId: data.waf_stage_id
116
120
  };
@@ -134,6 +138,7 @@ var unmarshalTLSStage = (data) => {
134
138
  pipelineId: data.pipeline_id,
135
139
  routeStageId: data.route_stage_id,
136
140
  secrets: unmarshalArrayOfObject(data.secrets, unmarshalTLSSecret),
141
+ status: data.status,
137
142
  updatedAt: unmarshalDate(data.updated_at),
138
143
  wafStageId: data.waf_stage_id
139
144
  };
@@ -147,6 +152,7 @@ var unmarshalWafStage = (data) => {
147
152
  mode: data.mode,
148
153
  paranoiaLevel: data.paranoia_level,
149
154
  pipelineId: data.pipeline_id,
155
+ status: data.status,
150
156
  updatedAt: unmarshalDate(data.updated_at)
151
157
  };
152
158
  };
@@ -0,0 +1,257 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "edge_services";
3
+ readonly version: "v1beta1";
4
+ readonly folderName: "edgeServicesv1beta1";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "API";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listPipelines";
9
+ readonly protoName: "ListPipelines";
10
+ readonly paramsType: "ListPipelinesRequest";
11
+ readonly returnType: "ListPipelinesResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "Pipeline";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }, {
19
+ readonly methodName: "getPipeline";
20
+ readonly protoName: "GetPipeline";
21
+ readonly paramsType: "GetPipelineRequest";
22
+ readonly returnType: "Pipeline";
23
+ readonly isList: false;
24
+ readonly paginationType: "none";
25
+ readonly isPrivate: false;
26
+ readonly description: "\"";
27
+ readonly hasWaiter: true;
28
+ }, {
29
+ readonly methodName: "listPipelinesWithStages";
30
+ readonly protoName: "ListPipelinesWithStages";
31
+ readonly paramsType: "ListPipelinesWithStagesRequest";
32
+ readonly returnType: "ListPipelinesWithStagesResponse";
33
+ readonly isList: true;
34
+ readonly paginationType: "offset";
35
+ readonly pageParamKey: "page";
36
+ readonly listItemType: "PipelineStages";
37
+ readonly isPrivate: false;
38
+ readonly description: "\"";
39
+ }, {
40
+ readonly methodName: "listHeadStages";
41
+ readonly protoName: "ListHeadStages";
42
+ readonly paramsType: "ListHeadStagesRequest";
43
+ readonly returnType: "ListHeadStagesResponse";
44
+ readonly isList: true;
45
+ readonly paginationType: "offset";
46
+ readonly pageParamKey: "page";
47
+ readonly listItemType: "ListHeadStagesResponseHeadStage";
48
+ readonly isPrivate: false;
49
+ readonly description: "\"";
50
+ }, {
51
+ readonly methodName: "listDNSStages";
52
+ readonly protoName: "ListDNSStages";
53
+ readonly paramsType: "ListDNSStagesRequest";
54
+ readonly returnType: "ListDNSStagesResponse";
55
+ readonly isList: true;
56
+ readonly paginationType: "offset";
57
+ readonly pageParamKey: "page";
58
+ readonly listItemType: "DNSStage";
59
+ readonly isPrivate: false;
60
+ readonly description: "\"";
61
+ }, {
62
+ readonly methodName: "getDNSStage";
63
+ readonly protoName: "GetDNSStage";
64
+ readonly paramsType: "GetDNSStageRequest";
65
+ readonly returnType: "DNSStage";
66
+ readonly isList: false;
67
+ readonly paginationType: "none";
68
+ readonly isPrivate: false;
69
+ readonly description: "\"";
70
+ }, {
71
+ readonly methodName: "listTLSStages";
72
+ readonly protoName: "ListTLSStages";
73
+ readonly paramsType: "ListTLSStagesRequest";
74
+ readonly returnType: "ListTLSStagesResponse";
75
+ readonly isList: true;
76
+ readonly paginationType: "offset";
77
+ readonly pageParamKey: "page";
78
+ readonly listItemType: "TLSStage";
79
+ readonly isPrivate: false;
80
+ readonly description: "\"";
81
+ }, {
82
+ readonly methodName: "getTLSStage";
83
+ readonly protoName: "GetTLSStage";
84
+ readonly paramsType: "GetTLSStageRequest";
85
+ readonly returnType: "TLSStage";
86
+ readonly isList: false;
87
+ readonly paginationType: "none";
88
+ readonly isPrivate: false;
89
+ readonly description: "\"";
90
+ }, {
91
+ readonly methodName: "listCacheStages";
92
+ readonly protoName: "ListCacheStages";
93
+ readonly paramsType: "ListCacheStagesRequest";
94
+ readonly returnType: "ListCacheStagesResponse";
95
+ readonly isList: true;
96
+ readonly paginationType: "offset";
97
+ readonly pageParamKey: "page";
98
+ readonly listItemType: "CacheStage";
99
+ readonly isPrivate: false;
100
+ readonly description: "\"";
101
+ }, {
102
+ readonly methodName: "getCacheStage";
103
+ readonly protoName: "GetCacheStage";
104
+ readonly paramsType: "GetCacheStageRequest";
105
+ readonly returnType: "CacheStage";
106
+ readonly isList: false;
107
+ readonly paginationType: "none";
108
+ readonly isPrivate: false;
109
+ readonly description: "\"";
110
+ }, {
111
+ readonly methodName: "listBackendStages";
112
+ readonly protoName: "ListBackendStages";
113
+ readonly paramsType: "ListBackendStagesRequest";
114
+ readonly returnType: "ListBackendStagesResponse";
115
+ readonly isList: true;
116
+ readonly paginationType: "offset";
117
+ readonly pageParamKey: "page";
118
+ readonly listItemType: "BackendStage";
119
+ readonly isPrivate: false;
120
+ readonly description: "\"";
121
+ }, {
122
+ readonly methodName: "getBackendStage";
123
+ readonly protoName: "GetBackendStage";
124
+ readonly paramsType: "GetBackendStageRequest";
125
+ readonly returnType: "BackendStage";
126
+ readonly isList: false;
127
+ readonly paginationType: "none";
128
+ readonly isPrivate: false;
129
+ readonly description: "\"";
130
+ }, {
131
+ readonly methodName: "searchBackendStages";
132
+ readonly protoName: "SearchBackendStages";
133
+ readonly paramsType: "SearchBackendStagesRequest";
134
+ readonly returnType: "ListBackendStagesResponse";
135
+ readonly isList: false;
136
+ readonly paginationType: "none";
137
+ readonly isPrivate: false;
138
+ readonly description: "\"";
139
+ }, {
140
+ readonly methodName: "listWafStages";
141
+ readonly protoName: "ListWafStages";
142
+ readonly paramsType: "ListWafStagesRequest";
143
+ readonly returnType: "ListWafStagesResponse";
144
+ readonly isList: true;
145
+ readonly paginationType: "offset";
146
+ readonly pageParamKey: "page";
147
+ readonly listItemType: "WafStage";
148
+ readonly isPrivate: false;
149
+ readonly description: "\"";
150
+ }, {
151
+ readonly methodName: "getWafStage";
152
+ readonly protoName: "GetWafStage";
153
+ readonly paramsType: "GetWafStageRequest";
154
+ readonly returnType: "WafStage";
155
+ readonly isList: false;
156
+ readonly paginationType: "none";
157
+ readonly isPrivate: false;
158
+ readonly description: "\"";
159
+ }, {
160
+ readonly methodName: "searchWafStages";
161
+ readonly protoName: "SearchWafStages";
162
+ readonly paramsType: "SearchWafStagesRequest";
163
+ readonly returnType: "ListWafStagesResponse";
164
+ readonly isList: false;
165
+ readonly paginationType: "none";
166
+ readonly isPrivate: false;
167
+ readonly description: "\"";
168
+ }, {
169
+ readonly methodName: "listRouteStages";
170
+ readonly protoName: "ListRouteStages";
171
+ readonly paramsType: "ListRouteStagesRequest";
172
+ readonly returnType: "ListRouteStagesResponse";
173
+ readonly isList: true;
174
+ readonly paginationType: "offset";
175
+ readonly pageParamKey: "page";
176
+ readonly listItemType: "RouteStage";
177
+ readonly isPrivate: false;
178
+ readonly description: "\"";
179
+ }, {
180
+ readonly methodName: "getRouteStage";
181
+ readonly protoName: "GetRouteStage";
182
+ readonly paramsType: "GetRouteStageRequest";
183
+ readonly returnType: "RouteStage";
184
+ readonly isList: false;
185
+ readonly paginationType: "none";
186
+ readonly isPrivate: false;
187
+ readonly description: "\"";
188
+ }, {
189
+ readonly methodName: "listRouteRules";
190
+ readonly protoName: "ListRouteRules";
191
+ readonly paramsType: "ListRouteRulesRequest";
192
+ readonly returnType: "ListRouteRulesResponse";
193
+ readonly isList: false;
194
+ readonly paginationType: "none";
195
+ readonly isPrivate: false;
196
+ readonly description: "\"";
197
+ }, {
198
+ readonly methodName: "searchRouteRules";
199
+ readonly protoName: "SearchRouteRules";
200
+ readonly paramsType: "SearchRouteRulesRequest";
201
+ readonly returnType: "ListRouteRulesResponse";
202
+ readonly isList: false;
203
+ readonly paginationType: "none";
204
+ readonly isPrivate: false;
205
+ readonly description: "\"";
206
+ }, {
207
+ readonly methodName: "listPurgeRequests";
208
+ readonly protoName: "ListPurgeRequests";
209
+ readonly paramsType: "ListPurgeRequestsRequest";
210
+ readonly returnType: "ListPurgeRequestsResponse";
211
+ readonly isList: true;
212
+ readonly paginationType: "offset";
213
+ readonly pageParamKey: "page";
214
+ readonly listItemType: "PurgeRequest";
215
+ readonly isPrivate: false;
216
+ readonly description: "\"";
217
+ }, {
218
+ readonly methodName: "getPurgeRequest";
219
+ readonly protoName: "GetPurgeRequest";
220
+ readonly paramsType: "GetPurgeRequestRequest";
221
+ readonly returnType: "PurgeRequest";
222
+ readonly isList: false;
223
+ readonly paginationType: "none";
224
+ readonly isPrivate: false;
225
+ readonly description: "\"";
226
+ readonly hasWaiter: true;
227
+ }, {
228
+ readonly methodName: "listPlans";
229
+ readonly protoName: "ListPlans";
230
+ readonly paramsType: "";
231
+ readonly returnType: "ListPlansResponse";
232
+ readonly isList: false;
233
+ readonly paginationType: "none";
234
+ readonly isPrivate: false;
235
+ readonly description: "\"";
236
+ }, {
237
+ readonly methodName: "getCurrentPlan";
238
+ readonly protoName: "GetCurrentPlan";
239
+ readonly paramsType: "GetCurrentPlanRequest";
240
+ readonly returnType: "Plan";
241
+ readonly isList: false;
242
+ readonly paginationType: "none";
243
+ readonly isPrivate: false;
244
+ readonly description: "\"";
245
+ }, {
246
+ readonly methodName: "getBilling";
247
+ readonly protoName: "GetBilling";
248
+ readonly paramsType: "GetBillingRequest";
249
+ readonly returnType: "GetBillingResponse";
250
+ readonly isList: false;
251
+ readonly paginationType: "none";
252
+ readonly isPrivate: false;
253
+ readonly description: "\"";
254
+ }];
255
+ }];
256
+ };
257
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,285 @@
1
+ //#region src/v1beta1/metadata.gen.ts
2
+ var queriesMetadata = {
3
+ namespace: "edge_services",
4
+ version: "v1beta1",
5
+ folderName: "edgeServicesv1beta1",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "listPipelines",
11
+ protoName: "ListPipelines",
12
+ paramsType: "ListPipelinesRequest",
13
+ returnType: "ListPipelinesResponse",
14
+ isList: true,
15
+ paginationType: "offset",
16
+ pageParamKey: "page",
17
+ listItemType: "Pipeline",
18
+ isPrivate: false,
19
+ description: "\""
20
+ },
21
+ {
22
+ methodName: "getPipeline",
23
+ protoName: "GetPipeline",
24
+ paramsType: "GetPipelineRequest",
25
+ returnType: "Pipeline",
26
+ isList: false,
27
+ paginationType: "none",
28
+ isPrivate: false,
29
+ description: "\"",
30
+ hasWaiter: true
31
+ },
32
+ {
33
+ methodName: "listPipelinesWithStages",
34
+ protoName: "ListPipelinesWithStages",
35
+ paramsType: "ListPipelinesWithStagesRequest",
36
+ returnType: "ListPipelinesWithStagesResponse",
37
+ isList: true,
38
+ paginationType: "offset",
39
+ pageParamKey: "page",
40
+ listItemType: "PipelineStages",
41
+ isPrivate: false,
42
+ description: "\""
43
+ },
44
+ {
45
+ methodName: "listHeadStages",
46
+ protoName: "ListHeadStages",
47
+ paramsType: "ListHeadStagesRequest",
48
+ returnType: "ListHeadStagesResponse",
49
+ isList: true,
50
+ paginationType: "offset",
51
+ pageParamKey: "page",
52
+ listItemType: "ListHeadStagesResponseHeadStage",
53
+ isPrivate: false,
54
+ description: "\""
55
+ },
56
+ {
57
+ methodName: "listDNSStages",
58
+ protoName: "ListDNSStages",
59
+ paramsType: "ListDNSStagesRequest",
60
+ returnType: "ListDNSStagesResponse",
61
+ isList: true,
62
+ paginationType: "offset",
63
+ pageParamKey: "page",
64
+ listItemType: "DNSStage",
65
+ isPrivate: false,
66
+ description: "\""
67
+ },
68
+ {
69
+ methodName: "getDNSStage",
70
+ protoName: "GetDNSStage",
71
+ paramsType: "GetDNSStageRequest",
72
+ returnType: "DNSStage",
73
+ isList: false,
74
+ paginationType: "none",
75
+ isPrivate: false,
76
+ description: "\""
77
+ },
78
+ {
79
+ methodName: "listTLSStages",
80
+ protoName: "ListTLSStages",
81
+ paramsType: "ListTLSStagesRequest",
82
+ returnType: "ListTLSStagesResponse",
83
+ isList: true,
84
+ paginationType: "offset",
85
+ pageParamKey: "page",
86
+ listItemType: "TLSStage",
87
+ isPrivate: false,
88
+ description: "\""
89
+ },
90
+ {
91
+ methodName: "getTLSStage",
92
+ protoName: "GetTLSStage",
93
+ paramsType: "GetTLSStageRequest",
94
+ returnType: "TLSStage",
95
+ isList: false,
96
+ paginationType: "none",
97
+ isPrivate: false,
98
+ description: "\""
99
+ },
100
+ {
101
+ methodName: "listCacheStages",
102
+ protoName: "ListCacheStages",
103
+ paramsType: "ListCacheStagesRequest",
104
+ returnType: "ListCacheStagesResponse",
105
+ isList: true,
106
+ paginationType: "offset",
107
+ pageParamKey: "page",
108
+ listItemType: "CacheStage",
109
+ isPrivate: false,
110
+ description: "\""
111
+ },
112
+ {
113
+ methodName: "getCacheStage",
114
+ protoName: "GetCacheStage",
115
+ paramsType: "GetCacheStageRequest",
116
+ returnType: "CacheStage",
117
+ isList: false,
118
+ paginationType: "none",
119
+ isPrivate: false,
120
+ description: "\""
121
+ },
122
+ {
123
+ methodName: "listBackendStages",
124
+ protoName: "ListBackendStages",
125
+ paramsType: "ListBackendStagesRequest",
126
+ returnType: "ListBackendStagesResponse",
127
+ isList: true,
128
+ paginationType: "offset",
129
+ pageParamKey: "page",
130
+ listItemType: "BackendStage",
131
+ isPrivate: false,
132
+ description: "\""
133
+ },
134
+ {
135
+ methodName: "getBackendStage",
136
+ protoName: "GetBackendStage",
137
+ paramsType: "GetBackendStageRequest",
138
+ returnType: "BackendStage",
139
+ isList: false,
140
+ paginationType: "none",
141
+ isPrivate: false,
142
+ description: "\""
143
+ },
144
+ {
145
+ methodName: "searchBackendStages",
146
+ protoName: "SearchBackendStages",
147
+ paramsType: "SearchBackendStagesRequest",
148
+ returnType: "ListBackendStagesResponse",
149
+ isList: false,
150
+ paginationType: "none",
151
+ isPrivate: false,
152
+ description: "\""
153
+ },
154
+ {
155
+ methodName: "listWafStages",
156
+ protoName: "ListWafStages",
157
+ paramsType: "ListWafStagesRequest",
158
+ returnType: "ListWafStagesResponse",
159
+ isList: true,
160
+ paginationType: "offset",
161
+ pageParamKey: "page",
162
+ listItemType: "WafStage",
163
+ isPrivate: false,
164
+ description: "\""
165
+ },
166
+ {
167
+ methodName: "getWafStage",
168
+ protoName: "GetWafStage",
169
+ paramsType: "GetWafStageRequest",
170
+ returnType: "WafStage",
171
+ isList: false,
172
+ paginationType: "none",
173
+ isPrivate: false,
174
+ description: "\""
175
+ },
176
+ {
177
+ methodName: "searchWafStages",
178
+ protoName: "SearchWafStages",
179
+ paramsType: "SearchWafStagesRequest",
180
+ returnType: "ListWafStagesResponse",
181
+ isList: false,
182
+ paginationType: "none",
183
+ isPrivate: false,
184
+ description: "\""
185
+ },
186
+ {
187
+ methodName: "listRouteStages",
188
+ protoName: "ListRouteStages",
189
+ paramsType: "ListRouteStagesRequest",
190
+ returnType: "ListRouteStagesResponse",
191
+ isList: true,
192
+ paginationType: "offset",
193
+ pageParamKey: "page",
194
+ listItemType: "RouteStage",
195
+ isPrivate: false,
196
+ description: "\""
197
+ },
198
+ {
199
+ methodName: "getRouteStage",
200
+ protoName: "GetRouteStage",
201
+ paramsType: "GetRouteStageRequest",
202
+ returnType: "RouteStage",
203
+ isList: false,
204
+ paginationType: "none",
205
+ isPrivate: false,
206
+ description: "\""
207
+ },
208
+ {
209
+ methodName: "listRouteRules",
210
+ protoName: "ListRouteRules",
211
+ paramsType: "ListRouteRulesRequest",
212
+ returnType: "ListRouteRulesResponse",
213
+ isList: false,
214
+ paginationType: "none",
215
+ isPrivate: false,
216
+ description: "\""
217
+ },
218
+ {
219
+ methodName: "searchRouteRules",
220
+ protoName: "SearchRouteRules",
221
+ paramsType: "SearchRouteRulesRequest",
222
+ returnType: "ListRouteRulesResponse",
223
+ isList: false,
224
+ paginationType: "none",
225
+ isPrivate: false,
226
+ description: "\""
227
+ },
228
+ {
229
+ methodName: "listPurgeRequests",
230
+ protoName: "ListPurgeRequests",
231
+ paramsType: "ListPurgeRequestsRequest",
232
+ returnType: "ListPurgeRequestsResponse",
233
+ isList: true,
234
+ paginationType: "offset",
235
+ pageParamKey: "page",
236
+ listItemType: "PurgeRequest",
237
+ isPrivate: false,
238
+ description: "\""
239
+ },
240
+ {
241
+ methodName: "getPurgeRequest",
242
+ protoName: "GetPurgeRequest",
243
+ paramsType: "GetPurgeRequestRequest",
244
+ returnType: "PurgeRequest",
245
+ isList: false,
246
+ paginationType: "none",
247
+ isPrivate: false,
248
+ description: "\"",
249
+ hasWaiter: true
250
+ },
251
+ {
252
+ methodName: "listPlans",
253
+ protoName: "ListPlans",
254
+ paramsType: "",
255
+ returnType: "ListPlansResponse",
256
+ isList: false,
257
+ paginationType: "none",
258
+ isPrivate: false,
259
+ description: "\""
260
+ },
261
+ {
262
+ methodName: "getCurrentPlan",
263
+ protoName: "GetCurrentPlan",
264
+ paramsType: "GetCurrentPlanRequest",
265
+ returnType: "Plan",
266
+ isList: false,
267
+ paginationType: "none",
268
+ isPrivate: false,
269
+ description: "\""
270
+ },
271
+ {
272
+ methodName: "getBilling",
273
+ protoName: "GetBilling",
274
+ paramsType: "GetBillingRequest",
275
+ returnType: "GetBillingResponse",
276
+ isList: false,
277
+ paginationType: "none",
278
+ isPrivate: false,
279
+ description: "\""
280
+ }
281
+ ]
282
+ }]
283
+ };
284
+ //#endregion
285
+ export { queriesMetadata };
@@ -23,6 +23,7 @@ export type RuleHttpMatchPathFilterPathFilterType = 'unknown_path_filter' | 'reg
23
23
  export type SearchBackendStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
24
24
  export type SearchRouteRulesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
25
25
  export type SearchWafStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
26
+ export type StageStatus = 'unknown_status' | 'inactive' | 'active';
26
27
  export type WafStageMode = 'unknown_mode' | 'disable' | 'log_only' | 'enable';
27
28
  export interface ScalewayLb {
28
29
  /**
@@ -138,6 +139,10 @@ export interface BackendStage {
138
139
  * Pipeline ID the backend stage belongs to.
139
140
  */
140
141
  pipelineId: string;
142
+ /**
143
+ * Current status of the stage.
144
+ */
145
+ status: StageStatus;
141
146
  /**
142
147
  * Date the backend stage was created.
143
148
  */
@@ -186,6 +191,10 @@ export interface CacheStage {
186
191
  * Defines whether responses to requests with cookies must be stored in the cache.
187
192
  */
188
193
  includeCookies: boolean;
194
+ /**
195
+ * Current status of the stage.
196
+ */
197
+ status: StageStatus;
189
198
  /**
190
199
  * Date the cache stage was created.
191
200
  */
@@ -195,19 +204,19 @@ export interface CacheStage {
195
204
  */
196
205
  updatedAt?: Date;
197
206
  /**
198
- * Backend stage ID the cache stage is linked to.
199
207
  *
200
- * One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
208
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
201
209
  */
202
- backendStageId?: string;
210
+ wafStageId?: string;
203
211
  /**
212
+ * Backend stage ID the cache stage is linked to.
204
213
  *
205
- * One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
214
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
206
215
  */
207
- wafStageId?: string;
216
+ backendStageId?: string;
208
217
  /**
209
218
  *
210
- * One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
219
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
211
220
  */
212
221
  routeStageId?: string;
213
222
  }
@@ -232,6 +241,10 @@ export interface DNSStage {
232
241
  * Pipeline ID the DNS stage belongs to.
233
242
  */
234
243
  pipelineId: string;
244
+ /**
245
+ * Current status of the stage.
246
+ */
247
+ status: StageStatus;
235
248
  /**
236
249
  * Date the DNS stage was created.
237
250
  */
@@ -322,6 +335,10 @@ export interface RouteStage {
322
335
  * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
323
336
  */
324
337
  backendStageId?: string;
338
+ /**
339
+ * Current status of the stage.
340
+ */
341
+ status: StageStatus;
325
342
  /**
326
343
  * Date the route stage was created.
327
344
  */
@@ -352,6 +369,10 @@ export interface TLSStage {
352
369
  * Expiration date of the certificate.
353
370
  */
354
371
  certificateExpiresAt?: Date;
372
+ /**
373
+ * Current status of the stage.
374
+ */
375
+ status: StageStatus;
355
376
  /**
356
377
  * Date the TLS stage was created.
357
378
  */
@@ -400,6 +421,10 @@ export interface WafStage {
400
421
  * Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
401
422
  */
402
423
  paranoiaLevel: number;
424
+ /**
425
+ * Current status of the stage.
426
+ */
427
+ status: StageStatus;
403
428
  /**
404
429
  * Date the WAF stage was created.
405
430
  */
@@ -417,7 +442,7 @@ export interface WafStage {
417
442
  }
418
443
  export interface SetRouteRulesRequestRouteRule {
419
444
  /**
420
- * Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` field. Requests that do not match will be checked by the next rule's condition.
445
+ * Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition.
421
446
  *
422
447
  * One-of ('match'): at most one of 'ruleHttpMatch' could be set.
423
448
  */
@@ -437,7 +462,7 @@ export interface SetRouteRulesRequestRouteRule {
437
462
  }
438
463
  export interface RouteRule {
439
464
  /**
440
- * Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` field. Requests that do not match will be checked by the next rule's condition.
465
+ * Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition.
441
466
  *
442
467
  * One-of ('match'): at most one of 'ruleHttpMatch' could be set.
443
468
  */
@@ -578,7 +603,7 @@ export type AddRouteRulesRequest = {
578
603
  */
579
604
  routeStageId: string;
580
605
  /**
581
- * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
606
+ * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
582
607
  */
583
608
  routeRules?: SetRouteRulesRequestRouteRule[];
584
609
  /**
@@ -596,7 +621,7 @@ export type AddRouteRulesRequest = {
596
621
  };
597
622
  export interface AddRouteRulesResponse {
598
623
  /**
599
- * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
624
+ * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
600
625
  */
601
626
  routeRules: RouteRule[];
602
627
  }
@@ -766,6 +791,7 @@ export type CreateRouteStageRequest = {
766
791
  */
767
792
  wafStageId?: string;
768
793
  /**
794
+ * ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
769
795
  *
770
796
  * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
771
797
  */
@@ -1210,7 +1236,7 @@ export type ListRouteRulesRequest = {
1210
1236
  };
1211
1237
  export interface ListRouteRulesResponse {
1212
1238
  /**
1213
- * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
1239
+ * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
1214
1240
  */
1215
1241
  routeRules: RouteRule[];
1216
1242
  /**
@@ -1369,13 +1395,13 @@ export type SetRouteRulesRequest = {
1369
1395
  */
1370
1396
  routeStageId: string;
1371
1397
  /**
1372
- * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
1398
+ * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
1373
1399
  */
1374
1400
  routeRules?: SetRouteRulesRequestRouteRule[];
1375
1401
  };
1376
1402
  export interface SetRouteRulesResponse {
1377
1403
  /**
1378
- * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by `waf_stage_id`.
1404
+ * List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
1379
1405
  */
1380
1406
  routeRules: RouteRule[];
1381
1407
  }
@@ -1499,6 +1525,7 @@ export type UpdateRouteStageRequest = {
1499
1525
  */
1500
1526
  wafStageId?: string;
1501
1527
  /**
1528
+ * ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
1502
1529
  *
1503
1530
  * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
1504
1531
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [