@distilled.cloud/cloudflare 0.6.1 → 0.7.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/lib/services/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
|
@@ -83,19 +83,31 @@ export interface GetLoadBalancerResponse {
|
|
|
83
83
|
} | null;
|
|
84
84
|
name?: string | null;
|
|
85
85
|
overrides?: {
|
|
86
|
-
adaptiveRouting?:
|
|
86
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
87
87
|
countryPools?: Record<string, unknown> | null;
|
|
88
88
|
defaultPools?: string[] | null;
|
|
89
89
|
fallbackPool?: string | null;
|
|
90
|
-
locationStrategy?:
|
|
90
|
+
locationStrategy?: {
|
|
91
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
92
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
93
|
+
} | null;
|
|
91
94
|
popPools?: Record<string, unknown> | null;
|
|
92
|
-
randomSteering?:
|
|
95
|
+
randomSteering?: {
|
|
96
|
+
defaultWeight?: number | null;
|
|
97
|
+
poolWeights?: Record<string, unknown> | null;
|
|
98
|
+
} | null;
|
|
93
99
|
regionPools?: Record<string, unknown> | null;
|
|
94
100
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
|
|
95
|
-
sessionAffinityAttributes?:
|
|
101
|
+
sessionAffinityAttributes?: {
|
|
102
|
+
drainDuration?: number | null;
|
|
103
|
+
headers?: string[] | null;
|
|
104
|
+
requireAllHeaders?: boolean | null;
|
|
105
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
106
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
107
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
108
|
+
} | null;
|
|
96
109
|
sessionAffinityTtl?: number | null;
|
|
97
110
|
steeringPolicy?:
|
|
98
|
-
| ""
|
|
99
111
|
| "off"
|
|
100
112
|
| "geo"
|
|
101
113
|
| "random"
|
|
@@ -103,6 +115,7 @@ export interface GetLoadBalancerResponse {
|
|
|
103
115
|
| "proximity"
|
|
104
116
|
| "least_outstanding_requests"
|
|
105
117
|
| "least_connections"
|
|
118
|
+
| ""
|
|
106
119
|
| null;
|
|
107
120
|
ttl?: number | null;
|
|
108
121
|
} | null;
|
|
@@ -125,7 +138,6 @@ export interface GetLoadBalancerResponse {
|
|
|
125
138
|
sessionAffinityTtl?: number | null;
|
|
126
139
|
/** Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determi */
|
|
127
140
|
steeringPolicy?:
|
|
128
|
-
| ""
|
|
129
141
|
| "off"
|
|
130
142
|
| "geo"
|
|
131
143
|
| "random"
|
|
@@ -133,6 +145,7 @@ export interface GetLoadBalancerResponse {
|
|
|
133
145
|
| "proximity"
|
|
134
146
|
| "least_outstanding_requests"
|
|
135
147
|
| "least_connections"
|
|
148
|
+
| ""
|
|
136
149
|
| null;
|
|
137
150
|
/** Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
138
151
|
ttl?: number | null;
|
|
@@ -155,7 +168,7 @@ export const GetLoadBalancerResponse =
|
|
|
155
168
|
]),
|
|
156
169
|
),
|
|
157
170
|
countryPools: Schema.optional(
|
|
158
|
-
Schema.Union([Schema.
|
|
171
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
159
172
|
),
|
|
160
173
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
161
174
|
defaultPools: Schema.optional(
|
|
@@ -188,7 +201,9 @@ export const GetLoadBalancerResponse =
|
|
|
188
201
|
networks: Schema.optional(
|
|
189
202
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
190
203
|
),
|
|
191
|
-
popPools: Schema.optional(
|
|
204
|
+
popPools: Schema.optional(
|
|
205
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
206
|
+
),
|
|
192
207
|
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
193
208
|
randomSteering: Schema.optional(
|
|
194
209
|
Schema.Union([
|
|
@@ -197,7 +212,10 @@ export const GetLoadBalancerResponse =
|
|
|
197
212
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
198
213
|
),
|
|
199
214
|
poolWeights: Schema.optional(
|
|
200
|
-
Schema.Union([
|
|
215
|
+
Schema.Union([
|
|
216
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
217
|
+
Schema.Null,
|
|
218
|
+
]),
|
|
201
219
|
),
|
|
202
220
|
}).pipe(
|
|
203
221
|
Schema.encodeKeys({
|
|
@@ -209,7 +227,7 @@ export const GetLoadBalancerResponse =
|
|
|
209
227
|
]),
|
|
210
228
|
),
|
|
211
229
|
regionPools: Schema.optional(
|
|
212
|
-
Schema.Union([Schema.
|
|
230
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
213
231
|
),
|
|
214
232
|
rules: Schema.optional(
|
|
215
233
|
Schema.Union([
|
|
@@ -252,10 +270,24 @@ export const GetLoadBalancerResponse =
|
|
|
252
270
|
Schema.Union([
|
|
253
271
|
Schema.Struct({
|
|
254
272
|
adaptiveRouting: Schema.optional(
|
|
255
|
-
Schema.Union([
|
|
273
|
+
Schema.Union([
|
|
274
|
+
Schema.Struct({
|
|
275
|
+
failoverAcrossPools: Schema.optional(
|
|
276
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
277
|
+
),
|
|
278
|
+
}).pipe(
|
|
279
|
+
Schema.encodeKeys({
|
|
280
|
+
failoverAcrossPools: "failover_across_pools",
|
|
281
|
+
}),
|
|
282
|
+
),
|
|
283
|
+
Schema.Null,
|
|
284
|
+
]),
|
|
256
285
|
),
|
|
257
286
|
countryPools: Schema.optional(
|
|
258
|
-
Schema.Union([
|
|
287
|
+
Schema.Union([
|
|
288
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
289
|
+
Schema.Null,
|
|
290
|
+
]),
|
|
259
291
|
),
|
|
260
292
|
defaultPools: Schema.optional(
|
|
261
293
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -264,16 +296,66 @@ export const GetLoadBalancerResponse =
|
|
|
264
296
|
Schema.Union([Schema.String, Schema.Null]),
|
|
265
297
|
),
|
|
266
298
|
locationStrategy: Schema.optional(
|
|
267
|
-
Schema.Union([
|
|
299
|
+
Schema.Union([
|
|
300
|
+
Schema.Struct({
|
|
301
|
+
mode: Schema.optional(
|
|
302
|
+
Schema.Union([
|
|
303
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
304
|
+
Schema.Null,
|
|
305
|
+
]),
|
|
306
|
+
),
|
|
307
|
+
preferEcs: Schema.optional(
|
|
308
|
+
Schema.Union([
|
|
309
|
+
Schema.Literals([
|
|
310
|
+
"always",
|
|
311
|
+
"never",
|
|
312
|
+
"proximity",
|
|
313
|
+
"geo",
|
|
314
|
+
]),
|
|
315
|
+
Schema.Null,
|
|
316
|
+
]),
|
|
317
|
+
),
|
|
318
|
+
}).pipe(
|
|
319
|
+
Schema.encodeKeys({
|
|
320
|
+
mode: "mode",
|
|
321
|
+
preferEcs: "prefer_ecs",
|
|
322
|
+
}),
|
|
323
|
+
),
|
|
324
|
+
Schema.Null,
|
|
325
|
+
]),
|
|
268
326
|
),
|
|
269
327
|
popPools: Schema.optional(
|
|
270
|
-
Schema.Union([
|
|
328
|
+
Schema.Union([
|
|
329
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
330
|
+
Schema.Null,
|
|
331
|
+
]),
|
|
271
332
|
),
|
|
272
333
|
randomSteering: Schema.optional(
|
|
273
|
-
Schema.Union([
|
|
334
|
+
Schema.Union([
|
|
335
|
+
Schema.Struct({
|
|
336
|
+
defaultWeight: Schema.optional(
|
|
337
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
338
|
+
),
|
|
339
|
+
poolWeights: Schema.optional(
|
|
340
|
+
Schema.Union([
|
|
341
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
342
|
+
Schema.Null,
|
|
343
|
+
]),
|
|
344
|
+
),
|
|
345
|
+
}).pipe(
|
|
346
|
+
Schema.encodeKeys({
|
|
347
|
+
defaultWeight: "default_weight",
|
|
348
|
+
poolWeights: "pool_weights",
|
|
349
|
+
}),
|
|
350
|
+
),
|
|
351
|
+
Schema.Null,
|
|
352
|
+
]),
|
|
274
353
|
),
|
|
275
354
|
regionPools: Schema.optional(
|
|
276
|
-
Schema.Union([
|
|
355
|
+
Schema.Union([
|
|
356
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
357
|
+
Schema.Null,
|
|
358
|
+
]),
|
|
277
359
|
),
|
|
278
360
|
sessionAffinity: Schema.optional(
|
|
279
361
|
Schema.Union([
|
|
@@ -287,7 +369,50 @@ export const GetLoadBalancerResponse =
|
|
|
287
369
|
]),
|
|
288
370
|
),
|
|
289
371
|
sessionAffinityAttributes: Schema.optional(
|
|
290
|
-
Schema.Union([
|
|
372
|
+
Schema.Union([
|
|
373
|
+
Schema.Struct({
|
|
374
|
+
drainDuration: Schema.optional(
|
|
375
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
376
|
+
),
|
|
377
|
+
headers: Schema.optional(
|
|
378
|
+
Schema.Union([
|
|
379
|
+
Schema.Array(Schema.String),
|
|
380
|
+
Schema.Null,
|
|
381
|
+
]),
|
|
382
|
+
),
|
|
383
|
+
requireAllHeaders: Schema.optional(
|
|
384
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
385
|
+
),
|
|
386
|
+
samesite: Schema.optional(
|
|
387
|
+
Schema.Union([
|
|
388
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
389
|
+
Schema.Null,
|
|
390
|
+
]),
|
|
391
|
+
),
|
|
392
|
+
secure: Schema.optional(
|
|
393
|
+
Schema.Union([
|
|
394
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
395
|
+
Schema.Null,
|
|
396
|
+
]),
|
|
397
|
+
),
|
|
398
|
+
zeroDowntimeFailover: Schema.optional(
|
|
399
|
+
Schema.Union([
|
|
400
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
401
|
+
Schema.Null,
|
|
402
|
+
]),
|
|
403
|
+
),
|
|
404
|
+
}).pipe(
|
|
405
|
+
Schema.encodeKeys({
|
|
406
|
+
drainDuration: "drain_duration",
|
|
407
|
+
headers: "headers",
|
|
408
|
+
requireAllHeaders: "require_all_headers",
|
|
409
|
+
samesite: "samesite",
|
|
410
|
+
secure: "secure",
|
|
411
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
412
|
+
}),
|
|
413
|
+
),
|
|
414
|
+
Schema.Null,
|
|
415
|
+
]),
|
|
291
416
|
),
|
|
292
417
|
sessionAffinityTtl: Schema.optional(
|
|
293
418
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -295,7 +420,6 @@ export const GetLoadBalancerResponse =
|
|
|
295
420
|
steeringPolicy: Schema.optional(
|
|
296
421
|
Schema.Union([
|
|
297
422
|
Schema.Literals([
|
|
298
|
-
"",
|
|
299
423
|
"off",
|
|
300
424
|
"geo",
|
|
301
425
|
"random",
|
|
@@ -303,6 +427,7 @@ export const GetLoadBalancerResponse =
|
|
|
303
427
|
"proximity",
|
|
304
428
|
"least_outstanding_requests",
|
|
305
429
|
"least_connections",
|
|
430
|
+
"",
|
|
306
431
|
]),
|
|
307
432
|
Schema.Null,
|
|
308
433
|
]),
|
|
@@ -406,7 +531,6 @@ export const GetLoadBalancerResponse =
|
|
|
406
531
|
steeringPolicy: Schema.optional(
|
|
407
532
|
Schema.Union([
|
|
408
533
|
Schema.Literals([
|
|
409
|
-
"",
|
|
410
534
|
"off",
|
|
411
535
|
"geo",
|
|
412
536
|
"random",
|
|
@@ -414,6 +538,7 @@ export const GetLoadBalancerResponse =
|
|
|
414
538
|
"proximity",
|
|
415
539
|
"least_outstanding_requests",
|
|
416
540
|
"least_connections",
|
|
541
|
+
"",
|
|
417
542
|
]),
|
|
418
543
|
Schema.Null,
|
|
419
544
|
]),
|
|
@@ -512,19 +637,31 @@ export interface ListLoadBalancersResponse {
|
|
|
512
637
|
} | null;
|
|
513
638
|
name?: string | null;
|
|
514
639
|
overrides?: {
|
|
515
|
-
adaptiveRouting?:
|
|
640
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
516
641
|
countryPools?: Record<string, unknown> | null;
|
|
517
642
|
defaultPools?: string[] | null;
|
|
518
643
|
fallbackPool?: string | null;
|
|
519
|
-
locationStrategy?:
|
|
644
|
+
locationStrategy?: {
|
|
645
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
646
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
647
|
+
} | null;
|
|
520
648
|
popPools?: Record<string, unknown> | null;
|
|
521
|
-
randomSteering?:
|
|
649
|
+
randomSteering?: {
|
|
650
|
+
defaultWeight?: number | null;
|
|
651
|
+
poolWeights?: Record<string, unknown> | null;
|
|
652
|
+
} | null;
|
|
522
653
|
regionPools?: Record<string, unknown> | null;
|
|
523
654
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
|
|
524
|
-
sessionAffinityAttributes?:
|
|
655
|
+
sessionAffinityAttributes?: {
|
|
656
|
+
drainDuration?: number | null;
|
|
657
|
+
headers?: string[] | null;
|
|
658
|
+
requireAllHeaders?: boolean | null;
|
|
659
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
660
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
661
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
662
|
+
} | null;
|
|
525
663
|
sessionAffinityTtl?: number | null;
|
|
526
664
|
steeringPolicy?:
|
|
527
|
-
| ""
|
|
528
665
|
| "off"
|
|
529
666
|
| "geo"
|
|
530
667
|
| "random"
|
|
@@ -532,6 +669,7 @@ export interface ListLoadBalancersResponse {
|
|
|
532
669
|
| "proximity"
|
|
533
670
|
| "least_outstanding_requests"
|
|
534
671
|
| "least_connections"
|
|
672
|
+
| ""
|
|
535
673
|
| null;
|
|
536
674
|
ttl?: number | null;
|
|
537
675
|
} | null;
|
|
@@ -550,7 +688,6 @@ export interface ListLoadBalancersResponse {
|
|
|
550
688
|
} | null;
|
|
551
689
|
sessionAffinityTtl?: number | null;
|
|
552
690
|
steeringPolicy?:
|
|
553
|
-
| ""
|
|
554
691
|
| "off"
|
|
555
692
|
| "geo"
|
|
556
693
|
| "random"
|
|
@@ -558,6 +695,7 @@ export interface ListLoadBalancersResponse {
|
|
|
558
695
|
| "proximity"
|
|
559
696
|
| "least_outstanding_requests"
|
|
560
697
|
| "least_connections"
|
|
698
|
+
| ""
|
|
561
699
|
| null;
|
|
562
700
|
ttl?: number | null;
|
|
563
701
|
zoneName?: string | null;
|
|
@@ -584,7 +722,10 @@ export const ListLoadBalancersResponse =
|
|
|
584
722
|
]),
|
|
585
723
|
),
|
|
586
724
|
countryPools: Schema.optional(
|
|
587
|
-
Schema.Union([
|
|
725
|
+
Schema.Union([
|
|
726
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
727
|
+
Schema.Null,
|
|
728
|
+
]),
|
|
588
729
|
),
|
|
589
730
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
590
731
|
defaultPools: Schema.optional(
|
|
@@ -624,7 +765,10 @@ export const ListLoadBalancersResponse =
|
|
|
624
765
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
625
766
|
),
|
|
626
767
|
popPools: Schema.optional(
|
|
627
|
-
Schema.Union([
|
|
768
|
+
Schema.Union([
|
|
769
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
770
|
+
Schema.Null,
|
|
771
|
+
]),
|
|
628
772
|
),
|
|
629
773
|
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
630
774
|
randomSteering: Schema.optional(
|
|
@@ -634,7 +778,10 @@ export const ListLoadBalancersResponse =
|
|
|
634
778
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
635
779
|
),
|
|
636
780
|
poolWeights: Schema.optional(
|
|
637
|
-
Schema.Union([
|
|
781
|
+
Schema.Union([
|
|
782
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
783
|
+
Schema.Null,
|
|
784
|
+
]),
|
|
638
785
|
),
|
|
639
786
|
}).pipe(
|
|
640
787
|
Schema.encodeKeys({
|
|
@@ -646,7 +793,10 @@ export const ListLoadBalancersResponse =
|
|
|
646
793
|
]),
|
|
647
794
|
),
|
|
648
795
|
regionPools: Schema.optional(
|
|
649
|
-
Schema.Union([
|
|
796
|
+
Schema.Union([
|
|
797
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
798
|
+
Schema.Null,
|
|
799
|
+
]),
|
|
650
800
|
),
|
|
651
801
|
rules: Schema.optional(
|
|
652
802
|
Schema.Union([
|
|
@@ -691,10 +841,24 @@ export const ListLoadBalancersResponse =
|
|
|
691
841
|
Schema.Union([
|
|
692
842
|
Schema.Struct({
|
|
693
843
|
adaptiveRouting: Schema.optional(
|
|
694
|
-
Schema.Union([
|
|
844
|
+
Schema.Union([
|
|
845
|
+
Schema.Struct({
|
|
846
|
+
failoverAcrossPools: Schema.optional(
|
|
847
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
848
|
+
),
|
|
849
|
+
}).pipe(
|
|
850
|
+
Schema.encodeKeys({
|
|
851
|
+
failoverAcrossPools: "failover_across_pools",
|
|
852
|
+
}),
|
|
853
|
+
),
|
|
854
|
+
Schema.Null,
|
|
855
|
+
]),
|
|
695
856
|
),
|
|
696
857
|
countryPools: Schema.optional(
|
|
697
|
-
Schema.Union([
|
|
858
|
+
Schema.Union([
|
|
859
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
860
|
+
Schema.Null,
|
|
861
|
+
]),
|
|
698
862
|
),
|
|
699
863
|
defaultPools: Schema.optional(
|
|
700
864
|
Schema.Union([
|
|
@@ -706,16 +870,66 @@ export const ListLoadBalancersResponse =
|
|
|
706
870
|
Schema.Union([Schema.String, Schema.Null]),
|
|
707
871
|
),
|
|
708
872
|
locationStrategy: Schema.optional(
|
|
709
|
-
Schema.Union([
|
|
873
|
+
Schema.Union([
|
|
874
|
+
Schema.Struct({
|
|
875
|
+
mode: Schema.optional(
|
|
876
|
+
Schema.Union([
|
|
877
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
878
|
+
Schema.Null,
|
|
879
|
+
]),
|
|
880
|
+
),
|
|
881
|
+
preferEcs: Schema.optional(
|
|
882
|
+
Schema.Union([
|
|
883
|
+
Schema.Literals([
|
|
884
|
+
"always",
|
|
885
|
+
"never",
|
|
886
|
+
"proximity",
|
|
887
|
+
"geo",
|
|
888
|
+
]),
|
|
889
|
+
Schema.Null,
|
|
890
|
+
]),
|
|
891
|
+
),
|
|
892
|
+
}).pipe(
|
|
893
|
+
Schema.encodeKeys({
|
|
894
|
+
mode: "mode",
|
|
895
|
+
preferEcs: "prefer_ecs",
|
|
896
|
+
}),
|
|
897
|
+
),
|
|
898
|
+
Schema.Null,
|
|
899
|
+
]),
|
|
710
900
|
),
|
|
711
901
|
popPools: Schema.optional(
|
|
712
|
-
Schema.Union([
|
|
902
|
+
Schema.Union([
|
|
903
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
904
|
+
Schema.Null,
|
|
905
|
+
]),
|
|
713
906
|
),
|
|
714
907
|
randomSteering: Schema.optional(
|
|
715
|
-
Schema.Union([
|
|
908
|
+
Schema.Union([
|
|
909
|
+
Schema.Struct({
|
|
910
|
+
defaultWeight: Schema.optional(
|
|
911
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
912
|
+
),
|
|
913
|
+
poolWeights: Schema.optional(
|
|
914
|
+
Schema.Union([
|
|
915
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
916
|
+
Schema.Null,
|
|
917
|
+
]),
|
|
918
|
+
),
|
|
919
|
+
}).pipe(
|
|
920
|
+
Schema.encodeKeys({
|
|
921
|
+
defaultWeight: "default_weight",
|
|
922
|
+
poolWeights: "pool_weights",
|
|
923
|
+
}),
|
|
924
|
+
),
|
|
925
|
+
Schema.Null,
|
|
926
|
+
]),
|
|
716
927
|
),
|
|
717
928
|
regionPools: Schema.optional(
|
|
718
|
-
Schema.Union([
|
|
929
|
+
Schema.Union([
|
|
930
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
931
|
+
Schema.Null,
|
|
932
|
+
]),
|
|
719
933
|
),
|
|
720
934
|
sessionAffinity: Schema.optional(
|
|
721
935
|
Schema.Union([
|
|
@@ -729,7 +943,59 @@ export const ListLoadBalancersResponse =
|
|
|
729
943
|
]),
|
|
730
944
|
),
|
|
731
945
|
sessionAffinityAttributes: Schema.optional(
|
|
732
|
-
Schema.Union([
|
|
946
|
+
Schema.Union([
|
|
947
|
+
Schema.Struct({
|
|
948
|
+
drainDuration: Schema.optional(
|
|
949
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
950
|
+
),
|
|
951
|
+
headers: Schema.optional(
|
|
952
|
+
Schema.Union([
|
|
953
|
+
Schema.Array(Schema.String),
|
|
954
|
+
Schema.Null,
|
|
955
|
+
]),
|
|
956
|
+
),
|
|
957
|
+
requireAllHeaders: Schema.optional(
|
|
958
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
959
|
+
),
|
|
960
|
+
samesite: Schema.optional(
|
|
961
|
+
Schema.Union([
|
|
962
|
+
Schema.Literals([
|
|
963
|
+
"Auto",
|
|
964
|
+
"Lax",
|
|
965
|
+
"None",
|
|
966
|
+
"Strict",
|
|
967
|
+
]),
|
|
968
|
+
Schema.Null,
|
|
969
|
+
]),
|
|
970
|
+
),
|
|
971
|
+
secure: Schema.optional(
|
|
972
|
+
Schema.Union([
|
|
973
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
974
|
+
Schema.Null,
|
|
975
|
+
]),
|
|
976
|
+
),
|
|
977
|
+
zeroDowntimeFailover: Schema.optional(
|
|
978
|
+
Schema.Union([
|
|
979
|
+
Schema.Literals([
|
|
980
|
+
"none",
|
|
981
|
+
"temporary",
|
|
982
|
+
"sticky",
|
|
983
|
+
]),
|
|
984
|
+
Schema.Null,
|
|
985
|
+
]),
|
|
986
|
+
),
|
|
987
|
+
}).pipe(
|
|
988
|
+
Schema.encodeKeys({
|
|
989
|
+
drainDuration: "drain_duration",
|
|
990
|
+
headers: "headers",
|
|
991
|
+
requireAllHeaders: "require_all_headers",
|
|
992
|
+
samesite: "samesite",
|
|
993
|
+
secure: "secure",
|
|
994
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
995
|
+
}),
|
|
996
|
+
),
|
|
997
|
+
Schema.Null,
|
|
998
|
+
]),
|
|
733
999
|
),
|
|
734
1000
|
sessionAffinityTtl: Schema.optional(
|
|
735
1001
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -737,7 +1003,6 @@ export const ListLoadBalancersResponse =
|
|
|
737
1003
|
steeringPolicy: Schema.optional(
|
|
738
1004
|
Schema.Union([
|
|
739
1005
|
Schema.Literals([
|
|
740
|
-
"",
|
|
741
1006
|
"off",
|
|
742
1007
|
"geo",
|
|
743
1008
|
"random",
|
|
@@ -745,6 +1010,7 @@ export const ListLoadBalancersResponse =
|
|
|
745
1010
|
"proximity",
|
|
746
1011
|
"least_outstanding_requests",
|
|
747
1012
|
"least_connections",
|
|
1013
|
+
"",
|
|
748
1014
|
]),
|
|
749
1015
|
Schema.Null,
|
|
750
1016
|
]),
|
|
@@ -849,7 +1115,6 @@ export const ListLoadBalancersResponse =
|
|
|
849
1115
|
steeringPolicy: Schema.optional(
|
|
850
1116
|
Schema.Union([
|
|
851
1117
|
Schema.Literals([
|
|
852
|
-
"",
|
|
853
1118
|
"off",
|
|
854
1119
|
"geo",
|
|
855
1120
|
"random",
|
|
@@ -857,6 +1122,7 @@ export const ListLoadBalancersResponse =
|
|
|
857
1122
|
"proximity",
|
|
858
1123
|
"least_outstanding_requests",
|
|
859
1124
|
"least_connections",
|
|
1125
|
+
"",
|
|
860
1126
|
]),
|
|
861
1127
|
Schema.Null,
|
|
862
1128
|
]),
|
|
@@ -944,13 +1210,19 @@ export const listLoadBalancers: API.PaginatedOperationMethod<
|
|
|
944
1210
|
} | null;
|
|
945
1211
|
name?: string | null;
|
|
946
1212
|
overrides?: {
|
|
947
|
-
adaptiveRouting?:
|
|
1213
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
948
1214
|
countryPools?: Record<string, unknown> | null;
|
|
949
1215
|
defaultPools?: string[] | null;
|
|
950
1216
|
fallbackPool?: string | null;
|
|
951
|
-
locationStrategy?:
|
|
1217
|
+
locationStrategy?: {
|
|
1218
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
1219
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
1220
|
+
} | null;
|
|
952
1221
|
popPools?: Record<string, unknown> | null;
|
|
953
|
-
randomSteering?:
|
|
1222
|
+
randomSteering?: {
|
|
1223
|
+
defaultWeight?: number | null;
|
|
1224
|
+
poolWeights?: Record<string, unknown> | null;
|
|
1225
|
+
} | null;
|
|
954
1226
|
regionPools?: Record<string, unknown> | null;
|
|
955
1227
|
sessionAffinity?:
|
|
956
1228
|
| "none"
|
|
@@ -958,10 +1230,16 @@ export const listLoadBalancers: API.PaginatedOperationMethod<
|
|
|
958
1230
|
| "ip_cookie"
|
|
959
1231
|
| "header"
|
|
960
1232
|
| null;
|
|
961
|
-
sessionAffinityAttributes?:
|
|
1233
|
+
sessionAffinityAttributes?: {
|
|
1234
|
+
drainDuration?: number | null;
|
|
1235
|
+
headers?: string[] | null;
|
|
1236
|
+
requireAllHeaders?: boolean | null;
|
|
1237
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
1238
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
1239
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
1240
|
+
} | null;
|
|
962
1241
|
sessionAffinityTtl?: number | null;
|
|
963
1242
|
steeringPolicy?:
|
|
964
|
-
| ""
|
|
965
1243
|
| "off"
|
|
966
1244
|
| "geo"
|
|
967
1245
|
| "random"
|
|
@@ -969,6 +1247,7 @@ export const listLoadBalancers: API.PaginatedOperationMethod<
|
|
|
969
1247
|
| "proximity"
|
|
970
1248
|
| "least_outstanding_requests"
|
|
971
1249
|
| "least_connections"
|
|
1250
|
+
| ""
|
|
972
1251
|
| null;
|
|
973
1252
|
ttl?: number | null;
|
|
974
1253
|
} | null;
|
|
@@ -987,7 +1266,6 @@ export const listLoadBalancers: API.PaginatedOperationMethod<
|
|
|
987
1266
|
} | null;
|
|
988
1267
|
sessionAffinityTtl?: number | null;
|
|
989
1268
|
steeringPolicy?:
|
|
990
|
-
| ""
|
|
991
1269
|
| "off"
|
|
992
1270
|
| "geo"
|
|
993
1271
|
| "random"
|
|
@@ -995,6 +1273,7 @@ export const listLoadBalancers: API.PaginatedOperationMethod<
|
|
|
995
1273
|
| "proximity"
|
|
996
1274
|
| "least_outstanding_requests"
|
|
997
1275
|
| "least_connections"
|
|
1276
|
+
| ""
|
|
998
1277
|
| null;
|
|
999
1278
|
ttl?: number | null;
|
|
1000
1279
|
zoneName?: string | null;
|
|
@@ -1057,26 +1336,39 @@ export interface CreateLoadBalancerRequest {
|
|
|
1057
1336
|
};
|
|
1058
1337
|
name?: string;
|
|
1059
1338
|
overrides?: {
|
|
1060
|
-
adaptiveRouting?:
|
|
1339
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean };
|
|
1061
1340
|
countryPools?: Record<string, unknown>;
|
|
1062
1341
|
defaultPools?: string[];
|
|
1063
1342
|
fallbackPool?: string;
|
|
1064
|
-
locationStrategy?:
|
|
1343
|
+
locationStrategy?: {
|
|
1344
|
+
mode?: "pop" | "resolver_ip";
|
|
1345
|
+
preferEcs?: "always" | "never" | "proximity" | "geo";
|
|
1346
|
+
};
|
|
1065
1347
|
popPools?: Record<string, unknown>;
|
|
1066
|
-
randomSteering?:
|
|
1348
|
+
randomSteering?: {
|
|
1349
|
+
defaultWeight?: number;
|
|
1350
|
+
poolWeights?: Record<string, unknown>;
|
|
1351
|
+
};
|
|
1067
1352
|
regionPools?: Record<string, unknown>;
|
|
1068
1353
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header";
|
|
1069
|
-
sessionAffinityAttributes?:
|
|
1354
|
+
sessionAffinityAttributes?: {
|
|
1355
|
+
drainDuration?: number;
|
|
1356
|
+
headers?: string[];
|
|
1357
|
+
requireAllHeaders?: boolean;
|
|
1358
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict";
|
|
1359
|
+
secure?: "Auto" | "Always" | "Never";
|
|
1360
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky";
|
|
1361
|
+
};
|
|
1070
1362
|
sessionAffinityTtl?: number;
|
|
1071
1363
|
steeringPolicy?:
|
|
1072
|
-
| ""
|
|
1073
1364
|
| "off"
|
|
1074
1365
|
| "geo"
|
|
1075
1366
|
| "random"
|
|
1076
1367
|
| "dynamic_latency"
|
|
1077
1368
|
| "proximity"
|
|
1078
1369
|
| "least_outstanding_requests"
|
|
1079
|
-
| "least_connections"
|
|
1370
|
+
| "least_connections"
|
|
1371
|
+
| "";
|
|
1080
1372
|
ttl?: number;
|
|
1081
1373
|
};
|
|
1082
1374
|
priority?: number;
|
|
@@ -1097,14 +1389,14 @@ export interface CreateLoadBalancerRequest {
|
|
|
1097
1389
|
sessionAffinityTtl?: number;
|
|
1098
1390
|
/** Body param: Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools */
|
|
1099
1391
|
steeringPolicy?:
|
|
1100
|
-
| ""
|
|
1101
1392
|
| "off"
|
|
1102
1393
|
| "geo"
|
|
1103
1394
|
| "random"
|
|
1104
1395
|
| "dynamic_latency"
|
|
1105
1396
|
| "proximity"
|
|
1106
1397
|
| "least_outstanding_requests"
|
|
1107
|
-
| "least_connections"
|
|
1398
|
+
| "least_connections"
|
|
1399
|
+
| "";
|
|
1108
1400
|
/** Body param: Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
1109
1401
|
ttl?: number;
|
|
1110
1402
|
}
|
|
@@ -1122,7 +1414,7 @@ export const CreateLoadBalancerRequest =
|
|
|
1122
1414
|
Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }),
|
|
1123
1415
|
),
|
|
1124
1416
|
),
|
|
1125
|
-
countryPools: Schema.optional(Schema.
|
|
1417
|
+
countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1126
1418
|
description: Schema.optional(Schema.String),
|
|
1127
1419
|
locationStrategy: Schema.optional(
|
|
1128
1420
|
Schema.Struct({
|
|
@@ -1133,12 +1425,14 @@ export const CreateLoadBalancerRequest =
|
|
|
1133
1425
|
}).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
|
|
1134
1426
|
),
|
|
1135
1427
|
networks: Schema.optional(Schema.Array(Schema.String)),
|
|
1136
|
-
popPools: Schema.optional(Schema.
|
|
1428
|
+
popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1137
1429
|
proxied: Schema.optional(Schema.Boolean),
|
|
1138
1430
|
randomSteering: Schema.optional(
|
|
1139
1431
|
Schema.Struct({
|
|
1140
1432
|
defaultWeight: Schema.optional(Schema.Number),
|
|
1141
|
-
poolWeights: Schema.optional(
|
|
1433
|
+
poolWeights: Schema.optional(
|
|
1434
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1435
|
+
),
|
|
1142
1436
|
}).pipe(
|
|
1143
1437
|
Schema.encodeKeys({
|
|
1144
1438
|
defaultWeight: "default_weight",
|
|
@@ -1146,7 +1440,7 @@ export const CreateLoadBalancerRequest =
|
|
|
1146
1440
|
}),
|
|
1147
1441
|
),
|
|
1148
1442
|
),
|
|
1149
|
-
regionPools: Schema.optional(Schema.
|
|
1443
|
+
regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1150
1444
|
rules: Schema.optional(
|
|
1151
1445
|
Schema.Array(
|
|
1152
1446
|
Schema.Struct({
|
|
@@ -1170,22 +1464,82 @@ export const CreateLoadBalancerRequest =
|
|
|
1170
1464
|
name: Schema.optional(Schema.String),
|
|
1171
1465
|
overrides: Schema.optional(
|
|
1172
1466
|
Schema.Struct({
|
|
1173
|
-
adaptiveRouting: Schema.optional(
|
|
1174
|
-
|
|
1467
|
+
adaptiveRouting: Schema.optional(
|
|
1468
|
+
Schema.Struct({
|
|
1469
|
+
failoverAcrossPools: Schema.optional(Schema.Boolean),
|
|
1470
|
+
}).pipe(
|
|
1471
|
+
Schema.encodeKeys({
|
|
1472
|
+
failoverAcrossPools: "failover_across_pools",
|
|
1473
|
+
}),
|
|
1474
|
+
),
|
|
1475
|
+
),
|
|
1476
|
+
countryPools: Schema.optional(
|
|
1477
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1478
|
+
),
|
|
1175
1479
|
defaultPools: Schema.optional(Schema.Array(Schema.String)),
|
|
1176
1480
|
fallbackPool: Schema.optional(Schema.String),
|
|
1177
|
-
locationStrategy: Schema.optional(
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1481
|
+
locationStrategy: Schema.optional(
|
|
1482
|
+
Schema.Struct({
|
|
1483
|
+
mode: Schema.optional(
|
|
1484
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
1485
|
+
),
|
|
1486
|
+
preferEcs: Schema.optional(
|
|
1487
|
+
Schema.Literals(["always", "never", "proximity", "geo"]),
|
|
1488
|
+
),
|
|
1489
|
+
}).pipe(
|
|
1490
|
+
Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }),
|
|
1491
|
+
),
|
|
1492
|
+
),
|
|
1493
|
+
popPools: Schema.optional(
|
|
1494
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1495
|
+
),
|
|
1496
|
+
randomSteering: Schema.optional(
|
|
1497
|
+
Schema.Struct({
|
|
1498
|
+
defaultWeight: Schema.optional(Schema.Number),
|
|
1499
|
+
poolWeights: Schema.optional(
|
|
1500
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1501
|
+
),
|
|
1502
|
+
}).pipe(
|
|
1503
|
+
Schema.encodeKeys({
|
|
1504
|
+
defaultWeight: "default_weight",
|
|
1505
|
+
poolWeights: "pool_weights",
|
|
1506
|
+
}),
|
|
1507
|
+
),
|
|
1508
|
+
),
|
|
1509
|
+
regionPools: Schema.optional(
|
|
1510
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1511
|
+
),
|
|
1181
1512
|
sessionAffinity: Schema.optional(
|
|
1182
1513
|
Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
|
|
1183
1514
|
),
|
|
1184
|
-
sessionAffinityAttributes: Schema.optional(
|
|
1515
|
+
sessionAffinityAttributes: Schema.optional(
|
|
1516
|
+
Schema.Struct({
|
|
1517
|
+
drainDuration: Schema.optional(Schema.Number),
|
|
1518
|
+
headers: Schema.optional(Schema.Array(Schema.String)),
|
|
1519
|
+
requireAllHeaders: Schema.optional(Schema.Boolean),
|
|
1520
|
+
samesite: Schema.optional(
|
|
1521
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
1522
|
+
),
|
|
1523
|
+
secure: Schema.optional(
|
|
1524
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
1525
|
+
),
|
|
1526
|
+
zeroDowntimeFailover: Schema.optional(
|
|
1527
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
1528
|
+
),
|
|
1529
|
+
}).pipe(
|
|
1530
|
+
Schema.encodeKeys({
|
|
1531
|
+
drainDuration: "drain_duration",
|
|
1532
|
+
headers: "headers",
|
|
1533
|
+
requireAllHeaders: "require_all_headers",
|
|
1534
|
+
samesite: "samesite",
|
|
1535
|
+
secure: "secure",
|
|
1536
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
1537
|
+
}),
|
|
1538
|
+
),
|
|
1539
|
+
),
|
|
1185
1540
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
1186
1541
|
steeringPolicy: Schema.optional(
|
|
1187
1542
|
Schema.Literals([
|
|
1188
|
-
"",
|
|
1189
1543
|
"off",
|
|
1190
1544
|
"geo",
|
|
1191
1545
|
"random",
|
|
@@ -1193,6 +1547,7 @@ export const CreateLoadBalancerRequest =
|
|
|
1193
1547
|
"proximity",
|
|
1194
1548
|
"least_outstanding_requests",
|
|
1195
1549
|
"least_connections",
|
|
1550
|
+
"",
|
|
1196
1551
|
]),
|
|
1197
1552
|
),
|
|
1198
1553
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -1258,7 +1613,6 @@ export const CreateLoadBalancerRequest =
|
|
|
1258
1613
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
1259
1614
|
steeringPolicy: Schema.optional(
|
|
1260
1615
|
Schema.Literals([
|
|
1261
|
-
"",
|
|
1262
1616
|
"off",
|
|
1263
1617
|
"geo",
|
|
1264
1618
|
"random",
|
|
@@ -1266,6 +1620,7 @@ export const CreateLoadBalancerRequest =
|
|
|
1266
1620
|
"proximity",
|
|
1267
1621
|
"least_outstanding_requests",
|
|
1268
1622
|
"least_connections",
|
|
1623
|
+
"",
|
|
1269
1624
|
]),
|
|
1270
1625
|
),
|
|
1271
1626
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -1342,19 +1697,31 @@ export interface CreateLoadBalancerResponse {
|
|
|
1342
1697
|
} | null;
|
|
1343
1698
|
name?: string | null;
|
|
1344
1699
|
overrides?: {
|
|
1345
|
-
adaptiveRouting?:
|
|
1700
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
1346
1701
|
countryPools?: Record<string, unknown> | null;
|
|
1347
1702
|
defaultPools?: string[] | null;
|
|
1348
1703
|
fallbackPool?: string | null;
|
|
1349
|
-
locationStrategy?:
|
|
1704
|
+
locationStrategy?: {
|
|
1705
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
1706
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
1707
|
+
} | null;
|
|
1350
1708
|
popPools?: Record<string, unknown> | null;
|
|
1351
|
-
randomSteering?:
|
|
1709
|
+
randomSteering?: {
|
|
1710
|
+
defaultWeight?: number | null;
|
|
1711
|
+
poolWeights?: Record<string, unknown> | null;
|
|
1712
|
+
} | null;
|
|
1352
1713
|
regionPools?: Record<string, unknown> | null;
|
|
1353
1714
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
|
|
1354
|
-
sessionAffinityAttributes?:
|
|
1715
|
+
sessionAffinityAttributes?: {
|
|
1716
|
+
drainDuration?: number | null;
|
|
1717
|
+
headers?: string[] | null;
|
|
1718
|
+
requireAllHeaders?: boolean | null;
|
|
1719
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
1720
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
1721
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
1722
|
+
} | null;
|
|
1355
1723
|
sessionAffinityTtl?: number | null;
|
|
1356
1724
|
steeringPolicy?:
|
|
1357
|
-
| ""
|
|
1358
1725
|
| "off"
|
|
1359
1726
|
| "geo"
|
|
1360
1727
|
| "random"
|
|
@@ -1362,6 +1729,7 @@ export interface CreateLoadBalancerResponse {
|
|
|
1362
1729
|
| "proximity"
|
|
1363
1730
|
| "least_outstanding_requests"
|
|
1364
1731
|
| "least_connections"
|
|
1732
|
+
| ""
|
|
1365
1733
|
| null;
|
|
1366
1734
|
ttl?: number | null;
|
|
1367
1735
|
} | null;
|
|
@@ -1384,7 +1752,6 @@ export interface CreateLoadBalancerResponse {
|
|
|
1384
1752
|
sessionAffinityTtl?: number | null;
|
|
1385
1753
|
/** Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determi */
|
|
1386
1754
|
steeringPolicy?:
|
|
1387
|
-
| ""
|
|
1388
1755
|
| "off"
|
|
1389
1756
|
| "geo"
|
|
1390
1757
|
| "random"
|
|
@@ -1392,6 +1759,7 @@ export interface CreateLoadBalancerResponse {
|
|
|
1392
1759
|
| "proximity"
|
|
1393
1760
|
| "least_outstanding_requests"
|
|
1394
1761
|
| "least_connections"
|
|
1762
|
+
| ""
|
|
1395
1763
|
| null;
|
|
1396
1764
|
/** Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
1397
1765
|
ttl?: number | null;
|
|
@@ -1414,7 +1782,7 @@ export const CreateLoadBalancerResponse =
|
|
|
1414
1782
|
]),
|
|
1415
1783
|
),
|
|
1416
1784
|
countryPools: Schema.optional(
|
|
1417
|
-
Schema.Union([Schema.
|
|
1785
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
1418
1786
|
),
|
|
1419
1787
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1420
1788
|
defaultPools: Schema.optional(
|
|
@@ -1447,7 +1815,9 @@ export const CreateLoadBalancerResponse =
|
|
|
1447
1815
|
networks: Schema.optional(
|
|
1448
1816
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1449
1817
|
),
|
|
1450
|
-
popPools: Schema.optional(
|
|
1818
|
+
popPools: Schema.optional(
|
|
1819
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
1820
|
+
),
|
|
1451
1821
|
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1452
1822
|
randomSteering: Schema.optional(
|
|
1453
1823
|
Schema.Union([
|
|
@@ -1456,7 +1826,10 @@ export const CreateLoadBalancerResponse =
|
|
|
1456
1826
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
1457
1827
|
),
|
|
1458
1828
|
poolWeights: Schema.optional(
|
|
1459
|
-
Schema.Union([
|
|
1829
|
+
Schema.Union([
|
|
1830
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1831
|
+
Schema.Null,
|
|
1832
|
+
]),
|
|
1460
1833
|
),
|
|
1461
1834
|
}).pipe(
|
|
1462
1835
|
Schema.encodeKeys({
|
|
@@ -1468,7 +1841,7 @@ export const CreateLoadBalancerResponse =
|
|
|
1468
1841
|
]),
|
|
1469
1842
|
),
|
|
1470
1843
|
regionPools: Schema.optional(
|
|
1471
|
-
Schema.Union([Schema.
|
|
1844
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
1472
1845
|
),
|
|
1473
1846
|
rules: Schema.optional(
|
|
1474
1847
|
Schema.Union([
|
|
@@ -1511,10 +1884,24 @@ export const CreateLoadBalancerResponse =
|
|
|
1511
1884
|
Schema.Union([
|
|
1512
1885
|
Schema.Struct({
|
|
1513
1886
|
adaptiveRouting: Schema.optional(
|
|
1514
|
-
Schema.Union([
|
|
1887
|
+
Schema.Union([
|
|
1888
|
+
Schema.Struct({
|
|
1889
|
+
failoverAcrossPools: Schema.optional(
|
|
1890
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1891
|
+
),
|
|
1892
|
+
}).pipe(
|
|
1893
|
+
Schema.encodeKeys({
|
|
1894
|
+
failoverAcrossPools: "failover_across_pools",
|
|
1895
|
+
}),
|
|
1896
|
+
),
|
|
1897
|
+
Schema.Null,
|
|
1898
|
+
]),
|
|
1515
1899
|
),
|
|
1516
1900
|
countryPools: Schema.optional(
|
|
1517
|
-
Schema.Union([
|
|
1901
|
+
Schema.Union([
|
|
1902
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1903
|
+
Schema.Null,
|
|
1904
|
+
]),
|
|
1518
1905
|
),
|
|
1519
1906
|
defaultPools: Schema.optional(
|
|
1520
1907
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -1523,16 +1910,66 @@ export const CreateLoadBalancerResponse =
|
|
|
1523
1910
|
Schema.Union([Schema.String, Schema.Null]),
|
|
1524
1911
|
),
|
|
1525
1912
|
locationStrategy: Schema.optional(
|
|
1526
|
-
Schema.Union([
|
|
1913
|
+
Schema.Union([
|
|
1914
|
+
Schema.Struct({
|
|
1915
|
+
mode: Schema.optional(
|
|
1916
|
+
Schema.Union([
|
|
1917
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
1918
|
+
Schema.Null,
|
|
1919
|
+
]),
|
|
1920
|
+
),
|
|
1921
|
+
preferEcs: Schema.optional(
|
|
1922
|
+
Schema.Union([
|
|
1923
|
+
Schema.Literals([
|
|
1924
|
+
"always",
|
|
1925
|
+
"never",
|
|
1926
|
+
"proximity",
|
|
1927
|
+
"geo",
|
|
1928
|
+
]),
|
|
1929
|
+
Schema.Null,
|
|
1930
|
+
]),
|
|
1931
|
+
),
|
|
1932
|
+
}).pipe(
|
|
1933
|
+
Schema.encodeKeys({
|
|
1934
|
+
mode: "mode",
|
|
1935
|
+
preferEcs: "prefer_ecs",
|
|
1936
|
+
}),
|
|
1937
|
+
),
|
|
1938
|
+
Schema.Null,
|
|
1939
|
+
]),
|
|
1527
1940
|
),
|
|
1528
1941
|
popPools: Schema.optional(
|
|
1529
|
-
Schema.Union([
|
|
1942
|
+
Schema.Union([
|
|
1943
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1944
|
+
Schema.Null,
|
|
1945
|
+
]),
|
|
1530
1946
|
),
|
|
1531
1947
|
randomSteering: Schema.optional(
|
|
1532
|
-
Schema.Union([
|
|
1948
|
+
Schema.Union([
|
|
1949
|
+
Schema.Struct({
|
|
1950
|
+
defaultWeight: Schema.optional(
|
|
1951
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1952
|
+
),
|
|
1953
|
+
poolWeights: Schema.optional(
|
|
1954
|
+
Schema.Union([
|
|
1955
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1956
|
+
Schema.Null,
|
|
1957
|
+
]),
|
|
1958
|
+
),
|
|
1959
|
+
}).pipe(
|
|
1960
|
+
Schema.encodeKeys({
|
|
1961
|
+
defaultWeight: "default_weight",
|
|
1962
|
+
poolWeights: "pool_weights",
|
|
1963
|
+
}),
|
|
1964
|
+
),
|
|
1965
|
+
Schema.Null,
|
|
1966
|
+
]),
|
|
1533
1967
|
),
|
|
1534
1968
|
regionPools: Schema.optional(
|
|
1535
|
-
Schema.Union([
|
|
1969
|
+
Schema.Union([
|
|
1970
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1971
|
+
Schema.Null,
|
|
1972
|
+
]),
|
|
1536
1973
|
),
|
|
1537
1974
|
sessionAffinity: Schema.optional(
|
|
1538
1975
|
Schema.Union([
|
|
@@ -1546,7 +1983,50 @@ export const CreateLoadBalancerResponse =
|
|
|
1546
1983
|
]),
|
|
1547
1984
|
),
|
|
1548
1985
|
sessionAffinityAttributes: Schema.optional(
|
|
1549
|
-
Schema.Union([
|
|
1986
|
+
Schema.Union([
|
|
1987
|
+
Schema.Struct({
|
|
1988
|
+
drainDuration: Schema.optional(
|
|
1989
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1990
|
+
),
|
|
1991
|
+
headers: Schema.optional(
|
|
1992
|
+
Schema.Union([
|
|
1993
|
+
Schema.Array(Schema.String),
|
|
1994
|
+
Schema.Null,
|
|
1995
|
+
]),
|
|
1996
|
+
),
|
|
1997
|
+
requireAllHeaders: Schema.optional(
|
|
1998
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1999
|
+
),
|
|
2000
|
+
samesite: Schema.optional(
|
|
2001
|
+
Schema.Union([
|
|
2002
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
2003
|
+
Schema.Null,
|
|
2004
|
+
]),
|
|
2005
|
+
),
|
|
2006
|
+
secure: Schema.optional(
|
|
2007
|
+
Schema.Union([
|
|
2008
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
2009
|
+
Schema.Null,
|
|
2010
|
+
]),
|
|
2011
|
+
),
|
|
2012
|
+
zeroDowntimeFailover: Schema.optional(
|
|
2013
|
+
Schema.Union([
|
|
2014
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
2015
|
+
Schema.Null,
|
|
2016
|
+
]),
|
|
2017
|
+
),
|
|
2018
|
+
}).pipe(
|
|
2019
|
+
Schema.encodeKeys({
|
|
2020
|
+
drainDuration: "drain_duration",
|
|
2021
|
+
headers: "headers",
|
|
2022
|
+
requireAllHeaders: "require_all_headers",
|
|
2023
|
+
samesite: "samesite",
|
|
2024
|
+
secure: "secure",
|
|
2025
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
2026
|
+
}),
|
|
2027
|
+
),
|
|
2028
|
+
Schema.Null,
|
|
2029
|
+
]),
|
|
1550
2030
|
),
|
|
1551
2031
|
sessionAffinityTtl: Schema.optional(
|
|
1552
2032
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -1554,7 +2034,6 @@ export const CreateLoadBalancerResponse =
|
|
|
1554
2034
|
steeringPolicy: Schema.optional(
|
|
1555
2035
|
Schema.Union([
|
|
1556
2036
|
Schema.Literals([
|
|
1557
|
-
"",
|
|
1558
2037
|
"off",
|
|
1559
2038
|
"geo",
|
|
1560
2039
|
"random",
|
|
@@ -1562,6 +2041,7 @@ export const CreateLoadBalancerResponse =
|
|
|
1562
2041
|
"proximity",
|
|
1563
2042
|
"least_outstanding_requests",
|
|
1564
2043
|
"least_connections",
|
|
2044
|
+
"",
|
|
1565
2045
|
]),
|
|
1566
2046
|
Schema.Null,
|
|
1567
2047
|
]),
|
|
@@ -1665,7 +2145,6 @@ export const CreateLoadBalancerResponse =
|
|
|
1665
2145
|
steeringPolicy: Schema.optional(
|
|
1666
2146
|
Schema.Union([
|
|
1667
2147
|
Schema.Literals([
|
|
1668
|
-
"",
|
|
1669
2148
|
"off",
|
|
1670
2149
|
"geo",
|
|
1671
2150
|
"random",
|
|
@@ -1673,6 +2152,7 @@ export const CreateLoadBalancerResponse =
|
|
|
1673
2152
|
"proximity",
|
|
1674
2153
|
"least_outstanding_requests",
|
|
1675
2154
|
"least_connections",
|
|
2155
|
+
"",
|
|
1676
2156
|
]),
|
|
1677
2157
|
Schema.Null,
|
|
1678
2158
|
]),
|
|
@@ -1772,26 +2252,39 @@ export interface UpdateLoadBalancerRequest {
|
|
|
1772
2252
|
};
|
|
1773
2253
|
name?: string;
|
|
1774
2254
|
overrides?: {
|
|
1775
|
-
adaptiveRouting?:
|
|
2255
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean };
|
|
1776
2256
|
countryPools?: Record<string, unknown>;
|
|
1777
2257
|
defaultPools?: string[];
|
|
1778
2258
|
fallbackPool?: string;
|
|
1779
|
-
locationStrategy?:
|
|
2259
|
+
locationStrategy?: {
|
|
2260
|
+
mode?: "pop" | "resolver_ip";
|
|
2261
|
+
preferEcs?: "always" | "never" | "proximity" | "geo";
|
|
2262
|
+
};
|
|
1780
2263
|
popPools?: Record<string, unknown>;
|
|
1781
|
-
randomSteering?:
|
|
2264
|
+
randomSteering?: {
|
|
2265
|
+
defaultWeight?: number;
|
|
2266
|
+
poolWeights?: Record<string, unknown>;
|
|
2267
|
+
};
|
|
1782
2268
|
regionPools?: Record<string, unknown>;
|
|
1783
2269
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header";
|
|
1784
|
-
sessionAffinityAttributes?:
|
|
2270
|
+
sessionAffinityAttributes?: {
|
|
2271
|
+
drainDuration?: number;
|
|
2272
|
+
headers?: string[];
|
|
2273
|
+
requireAllHeaders?: boolean;
|
|
2274
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict";
|
|
2275
|
+
secure?: "Auto" | "Always" | "Never";
|
|
2276
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky";
|
|
2277
|
+
};
|
|
1785
2278
|
sessionAffinityTtl?: number;
|
|
1786
2279
|
steeringPolicy?:
|
|
1787
|
-
| ""
|
|
1788
2280
|
| "off"
|
|
1789
2281
|
| "geo"
|
|
1790
2282
|
| "random"
|
|
1791
2283
|
| "dynamic_latency"
|
|
1792
2284
|
| "proximity"
|
|
1793
2285
|
| "least_outstanding_requests"
|
|
1794
|
-
| "least_connections"
|
|
2286
|
+
| "least_connections"
|
|
2287
|
+
| "";
|
|
1795
2288
|
ttl?: number;
|
|
1796
2289
|
};
|
|
1797
2290
|
priority?: number;
|
|
@@ -1812,14 +2305,14 @@ export interface UpdateLoadBalancerRequest {
|
|
|
1812
2305
|
sessionAffinityTtl?: number;
|
|
1813
2306
|
/** Body param: Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools */
|
|
1814
2307
|
steeringPolicy?:
|
|
1815
|
-
| ""
|
|
1816
2308
|
| "off"
|
|
1817
2309
|
| "geo"
|
|
1818
2310
|
| "random"
|
|
1819
2311
|
| "dynamic_latency"
|
|
1820
2312
|
| "proximity"
|
|
1821
2313
|
| "least_outstanding_requests"
|
|
1822
|
-
| "least_connections"
|
|
2314
|
+
| "least_connections"
|
|
2315
|
+
| "";
|
|
1823
2316
|
/** Body param: Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
1824
2317
|
ttl?: number;
|
|
1825
2318
|
}
|
|
@@ -1838,7 +2331,7 @@ export const UpdateLoadBalancerRequest =
|
|
|
1838
2331
|
Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }),
|
|
1839
2332
|
),
|
|
1840
2333
|
),
|
|
1841
|
-
countryPools: Schema.optional(Schema.
|
|
2334
|
+
countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1842
2335
|
description: Schema.optional(Schema.String),
|
|
1843
2336
|
enabled: Schema.optional(Schema.Boolean),
|
|
1844
2337
|
locationStrategy: Schema.optional(
|
|
@@ -1850,12 +2343,14 @@ export const UpdateLoadBalancerRequest =
|
|
|
1850
2343
|
}).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
|
|
1851
2344
|
),
|
|
1852
2345
|
networks: Schema.optional(Schema.Array(Schema.String)),
|
|
1853
|
-
popPools: Schema.optional(Schema.
|
|
2346
|
+
popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1854
2347
|
proxied: Schema.optional(Schema.Boolean),
|
|
1855
2348
|
randomSteering: Schema.optional(
|
|
1856
2349
|
Schema.Struct({
|
|
1857
2350
|
defaultWeight: Schema.optional(Schema.Number),
|
|
1858
|
-
poolWeights: Schema.optional(
|
|
2351
|
+
poolWeights: Schema.optional(
|
|
2352
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2353
|
+
),
|
|
1859
2354
|
}).pipe(
|
|
1860
2355
|
Schema.encodeKeys({
|
|
1861
2356
|
defaultWeight: "default_weight",
|
|
@@ -1863,7 +2358,7 @@ export const UpdateLoadBalancerRequest =
|
|
|
1863
2358
|
}),
|
|
1864
2359
|
),
|
|
1865
2360
|
),
|
|
1866
|
-
regionPools: Schema.optional(Schema.
|
|
2361
|
+
regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1867
2362
|
rules: Schema.optional(
|
|
1868
2363
|
Schema.Array(
|
|
1869
2364
|
Schema.Struct({
|
|
@@ -1887,22 +2382,82 @@ export const UpdateLoadBalancerRequest =
|
|
|
1887
2382
|
name: Schema.optional(Schema.String),
|
|
1888
2383
|
overrides: Schema.optional(
|
|
1889
2384
|
Schema.Struct({
|
|
1890
|
-
adaptiveRouting: Schema.optional(
|
|
1891
|
-
|
|
2385
|
+
adaptiveRouting: Schema.optional(
|
|
2386
|
+
Schema.Struct({
|
|
2387
|
+
failoverAcrossPools: Schema.optional(Schema.Boolean),
|
|
2388
|
+
}).pipe(
|
|
2389
|
+
Schema.encodeKeys({
|
|
2390
|
+
failoverAcrossPools: "failover_across_pools",
|
|
2391
|
+
}),
|
|
2392
|
+
),
|
|
2393
|
+
),
|
|
2394
|
+
countryPools: Schema.optional(
|
|
2395
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2396
|
+
),
|
|
1892
2397
|
defaultPools: Schema.optional(Schema.Array(Schema.String)),
|
|
1893
2398
|
fallbackPool: Schema.optional(Schema.String),
|
|
1894
|
-
locationStrategy: Schema.optional(
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
2399
|
+
locationStrategy: Schema.optional(
|
|
2400
|
+
Schema.Struct({
|
|
2401
|
+
mode: Schema.optional(
|
|
2402
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
2403
|
+
),
|
|
2404
|
+
preferEcs: Schema.optional(
|
|
2405
|
+
Schema.Literals(["always", "never", "proximity", "geo"]),
|
|
2406
|
+
),
|
|
2407
|
+
}).pipe(
|
|
2408
|
+
Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }),
|
|
2409
|
+
),
|
|
2410
|
+
),
|
|
2411
|
+
popPools: Schema.optional(
|
|
2412
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2413
|
+
),
|
|
2414
|
+
randomSteering: Schema.optional(
|
|
2415
|
+
Schema.Struct({
|
|
2416
|
+
defaultWeight: Schema.optional(Schema.Number),
|
|
2417
|
+
poolWeights: Schema.optional(
|
|
2418
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2419
|
+
),
|
|
2420
|
+
}).pipe(
|
|
2421
|
+
Schema.encodeKeys({
|
|
2422
|
+
defaultWeight: "default_weight",
|
|
2423
|
+
poolWeights: "pool_weights",
|
|
2424
|
+
}),
|
|
2425
|
+
),
|
|
2426
|
+
),
|
|
2427
|
+
regionPools: Schema.optional(
|
|
2428
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2429
|
+
),
|
|
1898
2430
|
sessionAffinity: Schema.optional(
|
|
1899
2431
|
Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
|
|
1900
2432
|
),
|
|
1901
|
-
sessionAffinityAttributes: Schema.optional(
|
|
2433
|
+
sessionAffinityAttributes: Schema.optional(
|
|
2434
|
+
Schema.Struct({
|
|
2435
|
+
drainDuration: Schema.optional(Schema.Number),
|
|
2436
|
+
headers: Schema.optional(Schema.Array(Schema.String)),
|
|
2437
|
+
requireAllHeaders: Schema.optional(Schema.Boolean),
|
|
2438
|
+
samesite: Schema.optional(
|
|
2439
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
2440
|
+
),
|
|
2441
|
+
secure: Schema.optional(
|
|
2442
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
2443
|
+
),
|
|
2444
|
+
zeroDowntimeFailover: Schema.optional(
|
|
2445
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
2446
|
+
),
|
|
2447
|
+
}).pipe(
|
|
2448
|
+
Schema.encodeKeys({
|
|
2449
|
+
drainDuration: "drain_duration",
|
|
2450
|
+
headers: "headers",
|
|
2451
|
+
requireAllHeaders: "require_all_headers",
|
|
2452
|
+
samesite: "samesite",
|
|
2453
|
+
secure: "secure",
|
|
2454
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
2455
|
+
}),
|
|
2456
|
+
),
|
|
2457
|
+
),
|
|
1902
2458
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
1903
2459
|
steeringPolicy: Schema.optional(
|
|
1904
2460
|
Schema.Literals([
|
|
1905
|
-
"",
|
|
1906
2461
|
"off",
|
|
1907
2462
|
"geo",
|
|
1908
2463
|
"random",
|
|
@@ -1910,6 +2465,7 @@ export const UpdateLoadBalancerRequest =
|
|
|
1910
2465
|
"proximity",
|
|
1911
2466
|
"least_outstanding_requests",
|
|
1912
2467
|
"least_connections",
|
|
2468
|
+
"",
|
|
1913
2469
|
]),
|
|
1914
2470
|
),
|
|
1915
2471
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -1975,7 +2531,6 @@ export const UpdateLoadBalancerRequest =
|
|
|
1975
2531
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
1976
2532
|
steeringPolicy: Schema.optional(
|
|
1977
2533
|
Schema.Literals([
|
|
1978
|
-
"",
|
|
1979
2534
|
"off",
|
|
1980
2535
|
"geo",
|
|
1981
2536
|
"random",
|
|
@@ -1983,6 +2538,7 @@ export const UpdateLoadBalancerRequest =
|
|
|
1983
2538
|
"proximity",
|
|
1984
2539
|
"least_outstanding_requests",
|
|
1985
2540
|
"least_connections",
|
|
2541
|
+
"",
|
|
1986
2542
|
]),
|
|
1987
2543
|
),
|
|
1988
2544
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -2063,19 +2619,31 @@ export interface UpdateLoadBalancerResponse {
|
|
|
2063
2619
|
} | null;
|
|
2064
2620
|
name?: string | null;
|
|
2065
2621
|
overrides?: {
|
|
2066
|
-
adaptiveRouting?:
|
|
2622
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
2067
2623
|
countryPools?: Record<string, unknown> | null;
|
|
2068
2624
|
defaultPools?: string[] | null;
|
|
2069
2625
|
fallbackPool?: string | null;
|
|
2070
|
-
locationStrategy?:
|
|
2626
|
+
locationStrategy?: {
|
|
2627
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
2628
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
2629
|
+
} | null;
|
|
2071
2630
|
popPools?: Record<string, unknown> | null;
|
|
2072
|
-
randomSteering?:
|
|
2631
|
+
randomSteering?: {
|
|
2632
|
+
defaultWeight?: number | null;
|
|
2633
|
+
poolWeights?: Record<string, unknown> | null;
|
|
2634
|
+
} | null;
|
|
2073
2635
|
regionPools?: Record<string, unknown> | null;
|
|
2074
2636
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
|
|
2075
|
-
sessionAffinityAttributes?:
|
|
2637
|
+
sessionAffinityAttributes?: {
|
|
2638
|
+
drainDuration?: number | null;
|
|
2639
|
+
headers?: string[] | null;
|
|
2640
|
+
requireAllHeaders?: boolean | null;
|
|
2641
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
2642
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
2643
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
2644
|
+
} | null;
|
|
2076
2645
|
sessionAffinityTtl?: number | null;
|
|
2077
2646
|
steeringPolicy?:
|
|
2078
|
-
| ""
|
|
2079
2647
|
| "off"
|
|
2080
2648
|
| "geo"
|
|
2081
2649
|
| "random"
|
|
@@ -2083,6 +2651,7 @@ export interface UpdateLoadBalancerResponse {
|
|
|
2083
2651
|
| "proximity"
|
|
2084
2652
|
| "least_outstanding_requests"
|
|
2085
2653
|
| "least_connections"
|
|
2654
|
+
| ""
|
|
2086
2655
|
| null;
|
|
2087
2656
|
ttl?: number | null;
|
|
2088
2657
|
} | null;
|
|
@@ -2105,7 +2674,6 @@ export interface UpdateLoadBalancerResponse {
|
|
|
2105
2674
|
sessionAffinityTtl?: number | null;
|
|
2106
2675
|
/** Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determi */
|
|
2107
2676
|
steeringPolicy?:
|
|
2108
|
-
| ""
|
|
2109
2677
|
| "off"
|
|
2110
2678
|
| "geo"
|
|
2111
2679
|
| "random"
|
|
@@ -2113,6 +2681,7 @@ export interface UpdateLoadBalancerResponse {
|
|
|
2113
2681
|
| "proximity"
|
|
2114
2682
|
| "least_outstanding_requests"
|
|
2115
2683
|
| "least_connections"
|
|
2684
|
+
| ""
|
|
2116
2685
|
| null;
|
|
2117
2686
|
/** Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
2118
2687
|
ttl?: number | null;
|
|
@@ -2135,7 +2704,7 @@ export const UpdateLoadBalancerResponse =
|
|
|
2135
2704
|
]),
|
|
2136
2705
|
),
|
|
2137
2706
|
countryPools: Schema.optional(
|
|
2138
|
-
Schema.Union([Schema.
|
|
2707
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
2139
2708
|
),
|
|
2140
2709
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2141
2710
|
defaultPools: Schema.optional(
|
|
@@ -2168,7 +2737,9 @@ export const UpdateLoadBalancerResponse =
|
|
|
2168
2737
|
networks: Schema.optional(
|
|
2169
2738
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2170
2739
|
),
|
|
2171
|
-
popPools: Schema.optional(
|
|
2740
|
+
popPools: Schema.optional(
|
|
2741
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
2742
|
+
),
|
|
2172
2743
|
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2173
2744
|
randomSteering: Schema.optional(
|
|
2174
2745
|
Schema.Union([
|
|
@@ -2177,7 +2748,10 @@ export const UpdateLoadBalancerResponse =
|
|
|
2177
2748
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
2178
2749
|
),
|
|
2179
2750
|
poolWeights: Schema.optional(
|
|
2180
|
-
Schema.Union([
|
|
2751
|
+
Schema.Union([
|
|
2752
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2753
|
+
Schema.Null,
|
|
2754
|
+
]),
|
|
2181
2755
|
),
|
|
2182
2756
|
}).pipe(
|
|
2183
2757
|
Schema.encodeKeys({
|
|
@@ -2189,7 +2763,7 @@ export const UpdateLoadBalancerResponse =
|
|
|
2189
2763
|
]),
|
|
2190
2764
|
),
|
|
2191
2765
|
regionPools: Schema.optional(
|
|
2192
|
-
Schema.Union([Schema.
|
|
2766
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
2193
2767
|
),
|
|
2194
2768
|
rules: Schema.optional(
|
|
2195
2769
|
Schema.Union([
|
|
@@ -2232,10 +2806,24 @@ export const UpdateLoadBalancerResponse =
|
|
|
2232
2806
|
Schema.Union([
|
|
2233
2807
|
Schema.Struct({
|
|
2234
2808
|
adaptiveRouting: Schema.optional(
|
|
2235
|
-
Schema.Union([
|
|
2809
|
+
Schema.Union([
|
|
2810
|
+
Schema.Struct({
|
|
2811
|
+
failoverAcrossPools: Schema.optional(
|
|
2812
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2813
|
+
),
|
|
2814
|
+
}).pipe(
|
|
2815
|
+
Schema.encodeKeys({
|
|
2816
|
+
failoverAcrossPools: "failover_across_pools",
|
|
2817
|
+
}),
|
|
2818
|
+
),
|
|
2819
|
+
Schema.Null,
|
|
2820
|
+
]),
|
|
2236
2821
|
),
|
|
2237
2822
|
countryPools: Schema.optional(
|
|
2238
|
-
Schema.Union([
|
|
2823
|
+
Schema.Union([
|
|
2824
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2825
|
+
Schema.Null,
|
|
2826
|
+
]),
|
|
2239
2827
|
),
|
|
2240
2828
|
defaultPools: Schema.optional(
|
|
2241
2829
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -2244,16 +2832,66 @@ export const UpdateLoadBalancerResponse =
|
|
|
2244
2832
|
Schema.Union([Schema.String, Schema.Null]),
|
|
2245
2833
|
),
|
|
2246
2834
|
locationStrategy: Schema.optional(
|
|
2247
|
-
Schema.Union([
|
|
2835
|
+
Schema.Union([
|
|
2836
|
+
Schema.Struct({
|
|
2837
|
+
mode: Schema.optional(
|
|
2838
|
+
Schema.Union([
|
|
2839
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
2840
|
+
Schema.Null,
|
|
2841
|
+
]),
|
|
2842
|
+
),
|
|
2843
|
+
preferEcs: Schema.optional(
|
|
2844
|
+
Schema.Union([
|
|
2845
|
+
Schema.Literals([
|
|
2846
|
+
"always",
|
|
2847
|
+
"never",
|
|
2848
|
+
"proximity",
|
|
2849
|
+
"geo",
|
|
2850
|
+
]),
|
|
2851
|
+
Schema.Null,
|
|
2852
|
+
]),
|
|
2853
|
+
),
|
|
2854
|
+
}).pipe(
|
|
2855
|
+
Schema.encodeKeys({
|
|
2856
|
+
mode: "mode",
|
|
2857
|
+
preferEcs: "prefer_ecs",
|
|
2858
|
+
}),
|
|
2859
|
+
),
|
|
2860
|
+
Schema.Null,
|
|
2861
|
+
]),
|
|
2248
2862
|
),
|
|
2249
2863
|
popPools: Schema.optional(
|
|
2250
|
-
Schema.Union([
|
|
2864
|
+
Schema.Union([
|
|
2865
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2866
|
+
Schema.Null,
|
|
2867
|
+
]),
|
|
2251
2868
|
),
|
|
2252
2869
|
randomSteering: Schema.optional(
|
|
2253
|
-
Schema.Union([
|
|
2254
|
-
|
|
2870
|
+
Schema.Union([
|
|
2871
|
+
Schema.Struct({
|
|
2872
|
+
defaultWeight: Schema.optional(
|
|
2873
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2874
|
+
),
|
|
2875
|
+
poolWeights: Schema.optional(
|
|
2876
|
+
Schema.Union([
|
|
2877
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2878
|
+
Schema.Null,
|
|
2879
|
+
]),
|
|
2880
|
+
),
|
|
2881
|
+
}).pipe(
|
|
2882
|
+
Schema.encodeKeys({
|
|
2883
|
+
defaultWeight: "default_weight",
|
|
2884
|
+
poolWeights: "pool_weights",
|
|
2885
|
+
}),
|
|
2886
|
+
),
|
|
2887
|
+
Schema.Null,
|
|
2888
|
+
]),
|
|
2889
|
+
),
|
|
2255
2890
|
regionPools: Schema.optional(
|
|
2256
|
-
Schema.Union([
|
|
2891
|
+
Schema.Union([
|
|
2892
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2893
|
+
Schema.Null,
|
|
2894
|
+
]),
|
|
2257
2895
|
),
|
|
2258
2896
|
sessionAffinity: Schema.optional(
|
|
2259
2897
|
Schema.Union([
|
|
@@ -2267,7 +2905,50 @@ export const UpdateLoadBalancerResponse =
|
|
|
2267
2905
|
]),
|
|
2268
2906
|
),
|
|
2269
2907
|
sessionAffinityAttributes: Schema.optional(
|
|
2270
|
-
Schema.Union([
|
|
2908
|
+
Schema.Union([
|
|
2909
|
+
Schema.Struct({
|
|
2910
|
+
drainDuration: Schema.optional(
|
|
2911
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2912
|
+
),
|
|
2913
|
+
headers: Schema.optional(
|
|
2914
|
+
Schema.Union([
|
|
2915
|
+
Schema.Array(Schema.String),
|
|
2916
|
+
Schema.Null,
|
|
2917
|
+
]),
|
|
2918
|
+
),
|
|
2919
|
+
requireAllHeaders: Schema.optional(
|
|
2920
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2921
|
+
),
|
|
2922
|
+
samesite: Schema.optional(
|
|
2923
|
+
Schema.Union([
|
|
2924
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
2925
|
+
Schema.Null,
|
|
2926
|
+
]),
|
|
2927
|
+
),
|
|
2928
|
+
secure: Schema.optional(
|
|
2929
|
+
Schema.Union([
|
|
2930
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
2931
|
+
Schema.Null,
|
|
2932
|
+
]),
|
|
2933
|
+
),
|
|
2934
|
+
zeroDowntimeFailover: Schema.optional(
|
|
2935
|
+
Schema.Union([
|
|
2936
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
2937
|
+
Schema.Null,
|
|
2938
|
+
]),
|
|
2939
|
+
),
|
|
2940
|
+
}).pipe(
|
|
2941
|
+
Schema.encodeKeys({
|
|
2942
|
+
drainDuration: "drain_duration",
|
|
2943
|
+
headers: "headers",
|
|
2944
|
+
requireAllHeaders: "require_all_headers",
|
|
2945
|
+
samesite: "samesite",
|
|
2946
|
+
secure: "secure",
|
|
2947
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
2948
|
+
}),
|
|
2949
|
+
),
|
|
2950
|
+
Schema.Null,
|
|
2951
|
+
]),
|
|
2271
2952
|
),
|
|
2272
2953
|
sessionAffinityTtl: Schema.optional(
|
|
2273
2954
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -2275,7 +2956,6 @@ export const UpdateLoadBalancerResponse =
|
|
|
2275
2956
|
steeringPolicy: Schema.optional(
|
|
2276
2957
|
Schema.Union([
|
|
2277
2958
|
Schema.Literals([
|
|
2278
|
-
"",
|
|
2279
2959
|
"off",
|
|
2280
2960
|
"geo",
|
|
2281
2961
|
"random",
|
|
@@ -2283,6 +2963,7 @@ export const UpdateLoadBalancerResponse =
|
|
|
2283
2963
|
"proximity",
|
|
2284
2964
|
"least_outstanding_requests",
|
|
2285
2965
|
"least_connections",
|
|
2966
|
+
"",
|
|
2286
2967
|
]),
|
|
2287
2968
|
Schema.Null,
|
|
2288
2969
|
]),
|
|
@@ -2386,7 +3067,6 @@ export const UpdateLoadBalancerResponse =
|
|
|
2386
3067
|
steeringPolicy: Schema.optional(
|
|
2387
3068
|
Schema.Union([
|
|
2388
3069
|
Schema.Literals([
|
|
2389
|
-
"",
|
|
2390
3070
|
"off",
|
|
2391
3071
|
"geo",
|
|
2392
3072
|
"random",
|
|
@@ -2394,6 +3074,7 @@ export const UpdateLoadBalancerResponse =
|
|
|
2394
3074
|
"proximity",
|
|
2395
3075
|
"least_outstanding_requests",
|
|
2396
3076
|
"least_connections",
|
|
3077
|
+
"",
|
|
2397
3078
|
]),
|
|
2398
3079
|
Schema.Null,
|
|
2399
3080
|
]),
|
|
@@ -2491,26 +3172,39 @@ export interface PatchLoadBalancerRequest {
|
|
|
2491
3172
|
};
|
|
2492
3173
|
name?: string;
|
|
2493
3174
|
overrides?: {
|
|
2494
|
-
adaptiveRouting?:
|
|
3175
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean };
|
|
2495
3176
|
countryPools?: Record<string, unknown>;
|
|
2496
3177
|
defaultPools?: string[];
|
|
2497
3178
|
fallbackPool?: string;
|
|
2498
|
-
locationStrategy?:
|
|
3179
|
+
locationStrategy?: {
|
|
3180
|
+
mode?: "pop" | "resolver_ip";
|
|
3181
|
+
preferEcs?: "always" | "never" | "proximity" | "geo";
|
|
3182
|
+
};
|
|
2499
3183
|
popPools?: Record<string, unknown>;
|
|
2500
|
-
randomSteering?:
|
|
3184
|
+
randomSteering?: {
|
|
3185
|
+
defaultWeight?: number;
|
|
3186
|
+
poolWeights?: Record<string, unknown>;
|
|
3187
|
+
};
|
|
2501
3188
|
regionPools?: Record<string, unknown>;
|
|
2502
3189
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header";
|
|
2503
|
-
sessionAffinityAttributes?:
|
|
3190
|
+
sessionAffinityAttributes?: {
|
|
3191
|
+
drainDuration?: number;
|
|
3192
|
+
headers?: string[];
|
|
3193
|
+
requireAllHeaders?: boolean;
|
|
3194
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict";
|
|
3195
|
+
secure?: "Auto" | "Always" | "Never";
|
|
3196
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky";
|
|
3197
|
+
};
|
|
2504
3198
|
sessionAffinityTtl?: number;
|
|
2505
3199
|
steeringPolicy?:
|
|
2506
|
-
| ""
|
|
2507
3200
|
| "off"
|
|
2508
3201
|
| "geo"
|
|
2509
3202
|
| "random"
|
|
2510
3203
|
| "dynamic_latency"
|
|
2511
3204
|
| "proximity"
|
|
2512
3205
|
| "least_outstanding_requests"
|
|
2513
|
-
| "least_connections"
|
|
3206
|
+
| "least_connections"
|
|
3207
|
+
| "";
|
|
2514
3208
|
ttl?: number;
|
|
2515
3209
|
};
|
|
2516
3210
|
priority?: number;
|
|
@@ -2531,14 +3225,14 @@ export interface PatchLoadBalancerRequest {
|
|
|
2531
3225
|
sessionAffinityTtl?: number;
|
|
2532
3226
|
/** Body param: Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools */
|
|
2533
3227
|
steeringPolicy?:
|
|
2534
|
-
| ""
|
|
2535
3228
|
| "off"
|
|
2536
3229
|
| "geo"
|
|
2537
3230
|
| "random"
|
|
2538
3231
|
| "dynamic_latency"
|
|
2539
3232
|
| "proximity"
|
|
2540
3233
|
| "least_outstanding_requests"
|
|
2541
|
-
| "least_connections"
|
|
3234
|
+
| "least_connections"
|
|
3235
|
+
| "";
|
|
2542
3236
|
/** Body param: Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
2543
3237
|
ttl?: number;
|
|
2544
3238
|
}
|
|
@@ -2554,7 +3248,7 @@ export const PatchLoadBalancerRequest =
|
|
|
2554
3248
|
Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }),
|
|
2555
3249
|
),
|
|
2556
3250
|
),
|
|
2557
|
-
countryPools: Schema.optional(Schema.
|
|
3251
|
+
countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
2558
3252
|
defaultPools: Schema.optional(Schema.Array(Schema.String)),
|
|
2559
3253
|
description: Schema.optional(Schema.String),
|
|
2560
3254
|
enabled: Schema.optional(Schema.Boolean),
|
|
@@ -2568,12 +3262,14 @@ export const PatchLoadBalancerRequest =
|
|
|
2568
3262
|
}).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
|
|
2569
3263
|
),
|
|
2570
3264
|
name: Schema.optional(Schema.String),
|
|
2571
|
-
popPools: Schema.optional(Schema.
|
|
3265
|
+
popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
2572
3266
|
proxied: Schema.optional(Schema.Boolean),
|
|
2573
3267
|
randomSteering: Schema.optional(
|
|
2574
3268
|
Schema.Struct({
|
|
2575
3269
|
defaultWeight: Schema.optional(Schema.Number),
|
|
2576
|
-
poolWeights: Schema.optional(
|
|
3270
|
+
poolWeights: Schema.optional(
|
|
3271
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3272
|
+
),
|
|
2577
3273
|
}).pipe(
|
|
2578
3274
|
Schema.encodeKeys({
|
|
2579
3275
|
defaultWeight: "default_weight",
|
|
@@ -2581,7 +3277,7 @@ export const PatchLoadBalancerRequest =
|
|
|
2581
3277
|
}),
|
|
2582
3278
|
),
|
|
2583
3279
|
),
|
|
2584
|
-
regionPools: Schema.optional(Schema.
|
|
3280
|
+
regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
2585
3281
|
rules: Schema.optional(
|
|
2586
3282
|
Schema.Array(
|
|
2587
3283
|
Schema.Struct({
|
|
@@ -2605,22 +3301,82 @@ export const PatchLoadBalancerRequest =
|
|
|
2605
3301
|
name: Schema.optional(Schema.String),
|
|
2606
3302
|
overrides: Schema.optional(
|
|
2607
3303
|
Schema.Struct({
|
|
2608
|
-
adaptiveRouting: Schema.optional(
|
|
2609
|
-
|
|
3304
|
+
adaptiveRouting: Schema.optional(
|
|
3305
|
+
Schema.Struct({
|
|
3306
|
+
failoverAcrossPools: Schema.optional(Schema.Boolean),
|
|
3307
|
+
}).pipe(
|
|
3308
|
+
Schema.encodeKeys({
|
|
3309
|
+
failoverAcrossPools: "failover_across_pools",
|
|
3310
|
+
}),
|
|
3311
|
+
),
|
|
3312
|
+
),
|
|
3313
|
+
countryPools: Schema.optional(
|
|
3314
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3315
|
+
),
|
|
2610
3316
|
defaultPools: Schema.optional(Schema.Array(Schema.String)),
|
|
2611
3317
|
fallbackPool: Schema.optional(Schema.String),
|
|
2612
|
-
locationStrategy: Schema.optional(
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
3318
|
+
locationStrategy: Schema.optional(
|
|
3319
|
+
Schema.Struct({
|
|
3320
|
+
mode: Schema.optional(
|
|
3321
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
3322
|
+
),
|
|
3323
|
+
preferEcs: Schema.optional(
|
|
3324
|
+
Schema.Literals(["always", "never", "proximity", "geo"]),
|
|
3325
|
+
),
|
|
3326
|
+
}).pipe(
|
|
3327
|
+
Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }),
|
|
3328
|
+
),
|
|
3329
|
+
),
|
|
3330
|
+
popPools: Schema.optional(
|
|
3331
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3332
|
+
),
|
|
3333
|
+
randomSteering: Schema.optional(
|
|
3334
|
+
Schema.Struct({
|
|
3335
|
+
defaultWeight: Schema.optional(Schema.Number),
|
|
3336
|
+
poolWeights: Schema.optional(
|
|
3337
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3338
|
+
),
|
|
3339
|
+
}).pipe(
|
|
3340
|
+
Schema.encodeKeys({
|
|
3341
|
+
defaultWeight: "default_weight",
|
|
3342
|
+
poolWeights: "pool_weights",
|
|
3343
|
+
}),
|
|
3344
|
+
),
|
|
3345
|
+
),
|
|
3346
|
+
regionPools: Schema.optional(
|
|
3347
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3348
|
+
),
|
|
2616
3349
|
sessionAffinity: Schema.optional(
|
|
2617
3350
|
Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
|
|
2618
3351
|
),
|
|
2619
|
-
sessionAffinityAttributes: Schema.optional(
|
|
3352
|
+
sessionAffinityAttributes: Schema.optional(
|
|
3353
|
+
Schema.Struct({
|
|
3354
|
+
drainDuration: Schema.optional(Schema.Number),
|
|
3355
|
+
headers: Schema.optional(Schema.Array(Schema.String)),
|
|
3356
|
+
requireAllHeaders: Schema.optional(Schema.Boolean),
|
|
3357
|
+
samesite: Schema.optional(
|
|
3358
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
3359
|
+
),
|
|
3360
|
+
secure: Schema.optional(
|
|
3361
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
3362
|
+
),
|
|
3363
|
+
zeroDowntimeFailover: Schema.optional(
|
|
3364
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
3365
|
+
),
|
|
3366
|
+
}).pipe(
|
|
3367
|
+
Schema.encodeKeys({
|
|
3368
|
+
drainDuration: "drain_duration",
|
|
3369
|
+
headers: "headers",
|
|
3370
|
+
requireAllHeaders: "require_all_headers",
|
|
3371
|
+
samesite: "samesite",
|
|
3372
|
+
secure: "secure",
|
|
3373
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
3374
|
+
}),
|
|
3375
|
+
),
|
|
3376
|
+
),
|
|
2620
3377
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
2621
3378
|
steeringPolicy: Schema.optional(
|
|
2622
3379
|
Schema.Literals([
|
|
2623
|
-
"",
|
|
2624
3380
|
"off",
|
|
2625
3381
|
"geo",
|
|
2626
3382
|
"random",
|
|
@@ -2628,6 +3384,7 @@ export const PatchLoadBalancerRequest =
|
|
|
2628
3384
|
"proximity",
|
|
2629
3385
|
"least_outstanding_requests",
|
|
2630
3386
|
"least_connections",
|
|
3387
|
+
"",
|
|
2631
3388
|
]),
|
|
2632
3389
|
),
|
|
2633
3390
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -2693,7 +3450,6 @@ export const PatchLoadBalancerRequest =
|
|
|
2693
3450
|
sessionAffinityTtl: Schema.optional(Schema.Number),
|
|
2694
3451
|
steeringPolicy: Schema.optional(
|
|
2695
3452
|
Schema.Literals([
|
|
2696
|
-
"",
|
|
2697
3453
|
"off",
|
|
2698
3454
|
"geo",
|
|
2699
3455
|
"random",
|
|
@@ -2701,6 +3457,7 @@ export const PatchLoadBalancerRequest =
|
|
|
2701
3457
|
"proximity",
|
|
2702
3458
|
"least_outstanding_requests",
|
|
2703
3459
|
"least_connections",
|
|
3460
|
+
"",
|
|
2704
3461
|
]),
|
|
2705
3462
|
),
|
|
2706
3463
|
ttl: Schema.optional(Schema.Number),
|
|
@@ -2780,19 +3537,31 @@ export interface PatchLoadBalancerResponse {
|
|
|
2780
3537
|
} | null;
|
|
2781
3538
|
name?: string | null;
|
|
2782
3539
|
overrides?: {
|
|
2783
|
-
adaptiveRouting?:
|
|
3540
|
+
adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
|
|
2784
3541
|
countryPools?: Record<string, unknown> | null;
|
|
2785
3542
|
defaultPools?: string[] | null;
|
|
2786
3543
|
fallbackPool?: string | null;
|
|
2787
|
-
locationStrategy?:
|
|
3544
|
+
locationStrategy?: {
|
|
3545
|
+
mode?: "pop" | "resolver_ip" | null;
|
|
3546
|
+
preferEcs?: "always" | "never" | "proximity" | "geo" | null;
|
|
3547
|
+
} | null;
|
|
2788
3548
|
popPools?: Record<string, unknown> | null;
|
|
2789
|
-
randomSteering?:
|
|
3549
|
+
randomSteering?: {
|
|
3550
|
+
defaultWeight?: number | null;
|
|
3551
|
+
poolWeights?: Record<string, unknown> | null;
|
|
3552
|
+
} | null;
|
|
2790
3553
|
regionPools?: Record<string, unknown> | null;
|
|
2791
3554
|
sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
|
|
2792
|
-
sessionAffinityAttributes?:
|
|
3555
|
+
sessionAffinityAttributes?: {
|
|
3556
|
+
drainDuration?: number | null;
|
|
3557
|
+
headers?: string[] | null;
|
|
3558
|
+
requireAllHeaders?: boolean | null;
|
|
3559
|
+
samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
|
|
3560
|
+
secure?: "Auto" | "Always" | "Never" | null;
|
|
3561
|
+
zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
|
|
3562
|
+
} | null;
|
|
2793
3563
|
sessionAffinityTtl?: number | null;
|
|
2794
3564
|
steeringPolicy?:
|
|
2795
|
-
| ""
|
|
2796
3565
|
| "off"
|
|
2797
3566
|
| "geo"
|
|
2798
3567
|
| "random"
|
|
@@ -2800,6 +3569,7 @@ export interface PatchLoadBalancerResponse {
|
|
|
2800
3569
|
| "proximity"
|
|
2801
3570
|
| "least_outstanding_requests"
|
|
2802
3571
|
| "least_connections"
|
|
3572
|
+
| ""
|
|
2803
3573
|
| null;
|
|
2804
3574
|
ttl?: number | null;
|
|
2805
3575
|
} | null;
|
|
@@ -2822,7 +3592,6 @@ export interface PatchLoadBalancerResponse {
|
|
|
2822
3592
|
sessionAffinityTtl?: number | null;
|
|
2823
3593
|
/** Steering Policy for this load balancer. - `"off"`: Use `default_pools`. - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determi */
|
|
2824
3594
|
steeringPolicy?:
|
|
2825
|
-
| ""
|
|
2826
3595
|
| "off"
|
|
2827
3596
|
| "geo"
|
|
2828
3597
|
| "random"
|
|
@@ -2830,6 +3599,7 @@ export interface PatchLoadBalancerResponse {
|
|
|
2830
3599
|
| "proximity"
|
|
2831
3600
|
| "least_outstanding_requests"
|
|
2832
3601
|
| "least_connections"
|
|
3602
|
+
| ""
|
|
2833
3603
|
| null;
|
|
2834
3604
|
/** Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers. */
|
|
2835
3605
|
ttl?: number | null;
|
|
@@ -2852,7 +3622,7 @@ export const PatchLoadBalancerResponse =
|
|
|
2852
3622
|
]),
|
|
2853
3623
|
),
|
|
2854
3624
|
countryPools: Schema.optional(
|
|
2855
|
-
Schema.Union([Schema.
|
|
3625
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
2856
3626
|
),
|
|
2857
3627
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2858
3628
|
defaultPools: Schema.optional(
|
|
@@ -2885,7 +3655,9 @@ export const PatchLoadBalancerResponse =
|
|
|
2885
3655
|
networks: Schema.optional(
|
|
2886
3656
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2887
3657
|
),
|
|
2888
|
-
popPools: Schema.optional(
|
|
3658
|
+
popPools: Schema.optional(
|
|
3659
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
3660
|
+
),
|
|
2889
3661
|
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2890
3662
|
randomSteering: Schema.optional(
|
|
2891
3663
|
Schema.Union([
|
|
@@ -2894,7 +3666,10 @@ export const PatchLoadBalancerResponse =
|
|
|
2894
3666
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
2895
3667
|
),
|
|
2896
3668
|
poolWeights: Schema.optional(
|
|
2897
|
-
Schema.Union([
|
|
3669
|
+
Schema.Union([
|
|
3670
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3671
|
+
Schema.Null,
|
|
3672
|
+
]),
|
|
2898
3673
|
),
|
|
2899
3674
|
}).pipe(
|
|
2900
3675
|
Schema.encodeKeys({
|
|
@@ -2906,7 +3681,7 @@ export const PatchLoadBalancerResponse =
|
|
|
2906
3681
|
]),
|
|
2907
3682
|
),
|
|
2908
3683
|
regionPools: Schema.optional(
|
|
2909
|
-
Schema.Union([Schema.
|
|
3684
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
2910
3685
|
),
|
|
2911
3686
|
rules: Schema.optional(
|
|
2912
3687
|
Schema.Union([
|
|
@@ -2949,10 +3724,24 @@ export const PatchLoadBalancerResponse =
|
|
|
2949
3724
|
Schema.Union([
|
|
2950
3725
|
Schema.Struct({
|
|
2951
3726
|
adaptiveRouting: Schema.optional(
|
|
2952
|
-
Schema.Union([
|
|
3727
|
+
Schema.Union([
|
|
3728
|
+
Schema.Struct({
|
|
3729
|
+
failoverAcrossPools: Schema.optional(
|
|
3730
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3731
|
+
),
|
|
3732
|
+
}).pipe(
|
|
3733
|
+
Schema.encodeKeys({
|
|
3734
|
+
failoverAcrossPools: "failover_across_pools",
|
|
3735
|
+
}),
|
|
3736
|
+
),
|
|
3737
|
+
Schema.Null,
|
|
3738
|
+
]),
|
|
2953
3739
|
),
|
|
2954
3740
|
countryPools: Schema.optional(
|
|
2955
|
-
Schema.Union([
|
|
3741
|
+
Schema.Union([
|
|
3742
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3743
|
+
Schema.Null,
|
|
3744
|
+
]),
|
|
2956
3745
|
),
|
|
2957
3746
|
defaultPools: Schema.optional(
|
|
2958
3747
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -2961,16 +3750,66 @@ export const PatchLoadBalancerResponse =
|
|
|
2961
3750
|
Schema.Union([Schema.String, Schema.Null]),
|
|
2962
3751
|
),
|
|
2963
3752
|
locationStrategy: Schema.optional(
|
|
2964
|
-
Schema.Union([
|
|
3753
|
+
Schema.Union([
|
|
3754
|
+
Schema.Struct({
|
|
3755
|
+
mode: Schema.optional(
|
|
3756
|
+
Schema.Union([
|
|
3757
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
3758
|
+
Schema.Null,
|
|
3759
|
+
]),
|
|
3760
|
+
),
|
|
3761
|
+
preferEcs: Schema.optional(
|
|
3762
|
+
Schema.Union([
|
|
3763
|
+
Schema.Literals([
|
|
3764
|
+
"always",
|
|
3765
|
+
"never",
|
|
3766
|
+
"proximity",
|
|
3767
|
+
"geo",
|
|
3768
|
+
]),
|
|
3769
|
+
Schema.Null,
|
|
3770
|
+
]),
|
|
3771
|
+
),
|
|
3772
|
+
}).pipe(
|
|
3773
|
+
Schema.encodeKeys({
|
|
3774
|
+
mode: "mode",
|
|
3775
|
+
preferEcs: "prefer_ecs",
|
|
3776
|
+
}),
|
|
3777
|
+
),
|
|
3778
|
+
Schema.Null,
|
|
3779
|
+
]),
|
|
2965
3780
|
),
|
|
2966
3781
|
popPools: Schema.optional(
|
|
2967
|
-
Schema.Union([
|
|
3782
|
+
Schema.Union([
|
|
3783
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3784
|
+
Schema.Null,
|
|
3785
|
+
]),
|
|
2968
3786
|
),
|
|
2969
3787
|
randomSteering: Schema.optional(
|
|
2970
|
-
Schema.Union([
|
|
3788
|
+
Schema.Union([
|
|
3789
|
+
Schema.Struct({
|
|
3790
|
+
defaultWeight: Schema.optional(
|
|
3791
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3792
|
+
),
|
|
3793
|
+
poolWeights: Schema.optional(
|
|
3794
|
+
Schema.Union([
|
|
3795
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3796
|
+
Schema.Null,
|
|
3797
|
+
]),
|
|
3798
|
+
),
|
|
3799
|
+
}).pipe(
|
|
3800
|
+
Schema.encodeKeys({
|
|
3801
|
+
defaultWeight: "default_weight",
|
|
3802
|
+
poolWeights: "pool_weights",
|
|
3803
|
+
}),
|
|
3804
|
+
),
|
|
3805
|
+
Schema.Null,
|
|
3806
|
+
]),
|
|
2971
3807
|
),
|
|
2972
3808
|
regionPools: Schema.optional(
|
|
2973
|
-
Schema.Union([
|
|
3809
|
+
Schema.Union([
|
|
3810
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3811
|
+
Schema.Null,
|
|
3812
|
+
]),
|
|
2974
3813
|
),
|
|
2975
3814
|
sessionAffinity: Schema.optional(
|
|
2976
3815
|
Schema.Union([
|
|
@@ -2984,7 +3823,50 @@ export const PatchLoadBalancerResponse =
|
|
|
2984
3823
|
]),
|
|
2985
3824
|
),
|
|
2986
3825
|
sessionAffinityAttributes: Schema.optional(
|
|
2987
|
-
Schema.Union([
|
|
3826
|
+
Schema.Union([
|
|
3827
|
+
Schema.Struct({
|
|
3828
|
+
drainDuration: Schema.optional(
|
|
3829
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3830
|
+
),
|
|
3831
|
+
headers: Schema.optional(
|
|
3832
|
+
Schema.Union([
|
|
3833
|
+
Schema.Array(Schema.String),
|
|
3834
|
+
Schema.Null,
|
|
3835
|
+
]),
|
|
3836
|
+
),
|
|
3837
|
+
requireAllHeaders: Schema.optional(
|
|
3838
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3839
|
+
),
|
|
3840
|
+
samesite: Schema.optional(
|
|
3841
|
+
Schema.Union([
|
|
3842
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
3843
|
+
Schema.Null,
|
|
3844
|
+
]),
|
|
3845
|
+
),
|
|
3846
|
+
secure: Schema.optional(
|
|
3847
|
+
Schema.Union([
|
|
3848
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
3849
|
+
Schema.Null,
|
|
3850
|
+
]),
|
|
3851
|
+
),
|
|
3852
|
+
zeroDowntimeFailover: Schema.optional(
|
|
3853
|
+
Schema.Union([
|
|
3854
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
3855
|
+
Schema.Null,
|
|
3856
|
+
]),
|
|
3857
|
+
),
|
|
3858
|
+
}).pipe(
|
|
3859
|
+
Schema.encodeKeys({
|
|
3860
|
+
drainDuration: "drain_duration",
|
|
3861
|
+
headers: "headers",
|
|
3862
|
+
requireAllHeaders: "require_all_headers",
|
|
3863
|
+
samesite: "samesite",
|
|
3864
|
+
secure: "secure",
|
|
3865
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
3866
|
+
}),
|
|
3867
|
+
),
|
|
3868
|
+
Schema.Null,
|
|
3869
|
+
]),
|
|
2988
3870
|
),
|
|
2989
3871
|
sessionAffinityTtl: Schema.optional(
|
|
2990
3872
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -2992,7 +3874,6 @@ export const PatchLoadBalancerResponse =
|
|
|
2992
3874
|
steeringPolicy: Schema.optional(
|
|
2993
3875
|
Schema.Union([
|
|
2994
3876
|
Schema.Literals([
|
|
2995
|
-
"",
|
|
2996
3877
|
"off",
|
|
2997
3878
|
"geo",
|
|
2998
3879
|
"random",
|
|
@@ -3000,6 +3881,7 @@ export const PatchLoadBalancerResponse =
|
|
|
3000
3881
|
"proximity",
|
|
3001
3882
|
"least_outstanding_requests",
|
|
3002
3883
|
"least_connections",
|
|
3884
|
+
"",
|
|
3003
3885
|
]),
|
|
3004
3886
|
Schema.Null,
|
|
3005
3887
|
]),
|
|
@@ -3103,7 +3985,6 @@ export const PatchLoadBalancerResponse =
|
|
|
3103
3985
|
steeringPolicy: Schema.optional(
|
|
3104
3986
|
Schema.Union([
|
|
3105
3987
|
Schema.Literals([
|
|
3106
|
-
"",
|
|
3107
3988
|
"off",
|
|
3108
3989
|
"geo",
|
|
3109
3990
|
"random",
|
|
@@ -3111,6 +3992,7 @@ export const PatchLoadBalancerResponse =
|
|
|
3111
3992
|
"proximity",
|
|
3112
3993
|
"least_outstanding_requests",
|
|
3113
3994
|
"least_connections",
|
|
3995
|
+
"",
|
|
3114
3996
|
]),
|
|
3115
3997
|
Schema.Null,
|
|
3116
3998
|
]),
|
|
@@ -3270,7 +4152,9 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3270
4152
|
expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3271
4153
|
expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3272
4154
|
followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3273
|
-
header: Schema.optional(
|
|
4155
|
+
header: Schema.optional(
|
|
4156
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
4157
|
+
),
|
|
3274
4158
|
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3275
4159
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3276
4160
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3393,7 +4277,12 @@ export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3393
4277
|
followRedirects: Schema.optional(
|
|
3394
4278
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3395
4279
|
),
|
|
3396
|
-
header: Schema.optional(
|
|
4280
|
+
header: Schema.optional(
|
|
4281
|
+
Schema.Union([
|
|
4282
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
4283
|
+
Schema.Null,
|
|
4284
|
+
]),
|
|
4285
|
+
),
|
|
3397
4286
|
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3398
4287
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3399
4288
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3544,7 +4433,7 @@ export const CreateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3544
4433
|
expectedBody: Schema.optional(Schema.String),
|
|
3545
4434
|
expectedCodes: Schema.optional(Schema.String),
|
|
3546
4435
|
followRedirects: Schema.optional(Schema.Boolean),
|
|
3547
|
-
header: Schema.optional(Schema.
|
|
4436
|
+
header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
3548
4437
|
interval: Schema.optional(Schema.Number),
|
|
3549
4438
|
method: Schema.optional(Schema.String),
|
|
3550
4439
|
path: Schema.optional(Schema.String),
|
|
@@ -3628,7 +4517,9 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3628
4517
|
expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3629
4518
|
expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3630
4519
|
followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3631
|
-
header: Schema.optional(
|
|
4520
|
+
header: Schema.optional(
|
|
4521
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
4522
|
+
),
|
|
3632
4523
|
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3633
4524
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3634
4525
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3739,7 +4630,7 @@ export const UpdateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3739
4630
|
expectedBody: Schema.optional(Schema.String),
|
|
3740
4631
|
expectedCodes: Schema.optional(Schema.String),
|
|
3741
4632
|
followRedirects: Schema.optional(Schema.Boolean),
|
|
3742
|
-
header: Schema.optional(Schema.
|
|
4633
|
+
header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
3743
4634
|
interval: Schema.optional(Schema.Number),
|
|
3744
4635
|
method: Schema.optional(Schema.String),
|
|
3745
4636
|
path: Schema.optional(Schema.String),
|
|
@@ -3823,7 +4714,9 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3823
4714
|
expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3824
4715
|
expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3825
4716
|
followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3826
|
-
header: Schema.optional(
|
|
4717
|
+
header: Schema.optional(
|
|
4718
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
4719
|
+
),
|
|
3827
4720
|
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3828
4721
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3829
4722
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3934,7 +4827,7 @@ export const PatchMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3934
4827
|
expectedBody: Schema.optional(Schema.String),
|
|
3935
4828
|
expectedCodes: Schema.optional(Schema.String),
|
|
3936
4829
|
followRedirects: Schema.optional(Schema.Boolean),
|
|
3937
|
-
header: Schema.optional(Schema.
|
|
4830
|
+
header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
3938
4831
|
interval: Schema.optional(Schema.Number),
|
|
3939
4832
|
method: Schema.optional(Schema.String),
|
|
3940
4833
|
path: Schema.optional(Schema.String),
|
|
@@ -4018,7 +4911,9 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4018
4911
|
expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4019
4912
|
expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4020
4913
|
followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4021
|
-
header: Schema.optional(
|
|
4914
|
+
header: Schema.optional(
|
|
4915
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
4916
|
+
),
|
|
4022
4917
|
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4023
4918
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4024
4919
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4823,7 +5718,7 @@ export const CreateMonitorPreviewRequest =
|
|
|
4823
5718
|
expectedBody: Schema.optional(Schema.String),
|
|
4824
5719
|
expectedCodes: Schema.optional(Schema.String),
|
|
4825
5720
|
followRedirects: Schema.optional(Schema.Boolean),
|
|
4826
|
-
header: Schema.optional(Schema.
|
|
5721
|
+
header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
4827
5722
|
interval: Schema.optional(Schema.Number),
|
|
4828
5723
|
method: Schema.optional(Schema.String),
|
|
4829
5724
|
path: Schema.optional(Schema.String),
|
|
@@ -4874,7 +5769,9 @@ export interface CreateMonitorPreviewResponse {
|
|
|
4874
5769
|
|
|
4875
5770
|
export const CreateMonitorPreviewResponse =
|
|
4876
5771
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4877
|
-
pools: Schema.optional(
|
|
5772
|
+
pools: Schema.optional(
|
|
5773
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
5774
|
+
),
|
|
4878
5775
|
previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4879
5776
|
})
|
|
4880
5777
|
.pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
|
|
@@ -5023,10 +5920,10 @@ export interface GetPoolResponse {
|
|
|
5023
5920
|
| "ME"
|
|
5024
5921
|
| "NAF"
|
|
5025
5922
|
| "SAF"
|
|
5923
|
+
| "SAS"
|
|
5026
5924
|
| "SEAS"
|
|
5027
5925
|
| "NEAS"
|
|
5028
5926
|
| "ALL_REGIONS"
|
|
5029
|
-
| "SAS"
|
|
5030
5927
|
)[]
|
|
5031
5928
|
| null;
|
|
5032
5929
|
createdOn?: string | null;
|
|
@@ -5039,7 +5936,12 @@ export interface GetPoolResponse {
|
|
|
5039
5936
|
/** The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5040
5937
|
latitude?: number | null;
|
|
5041
5938
|
/** Configures load shedding policies and percentages for the pool. */
|
|
5042
|
-
loadShedding?:
|
|
5939
|
+
loadShedding?: {
|
|
5940
|
+
defaultPercent?: number | null;
|
|
5941
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
5942
|
+
sessionPercent?: number | null;
|
|
5943
|
+
sessionPolicy?: "hash" | null;
|
|
5944
|
+
} | null;
|
|
5043
5945
|
/** The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5044
5946
|
longitude?: number | null;
|
|
5045
5947
|
/** The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the */
|
|
@@ -5056,11 +5958,32 @@ export interface GetPoolResponse {
|
|
|
5056
5958
|
/** This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status */
|
|
5057
5959
|
notificationEmail?: string | null;
|
|
5058
5960
|
/** Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5059
|
-
notificationFilter?:
|
|
5961
|
+
notificationFilter?: {
|
|
5962
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
5963
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
5964
|
+
} | null;
|
|
5060
5965
|
/** Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5061
|
-
originSteering?:
|
|
5966
|
+
originSteering?: {
|
|
5967
|
+
policy?:
|
|
5968
|
+
| "random"
|
|
5969
|
+
| "hash"
|
|
5970
|
+
| "least_outstanding_requests"
|
|
5971
|
+
| "least_connections"
|
|
5972
|
+
| null;
|
|
5973
|
+
} | null;
|
|
5062
5974
|
/** The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5063
|
-
origins?:
|
|
5975
|
+
origins?:
|
|
5976
|
+
| {
|
|
5977
|
+
address?: string | null;
|
|
5978
|
+
disabledAt?: string | null;
|
|
5979
|
+
enabled?: boolean | null;
|
|
5980
|
+
header?: { host?: string[] | null } | null;
|
|
5981
|
+
name?: string | null;
|
|
5982
|
+
port?: number | null;
|
|
5983
|
+
virtualNetworkId?: string | null;
|
|
5984
|
+
weight?: number | null;
|
|
5985
|
+
}[]
|
|
5986
|
+
| null;
|
|
5064
5987
|
}
|
|
5065
5988
|
|
|
5066
5989
|
export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -5079,10 +6002,10 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5079
6002
|
"ME",
|
|
5080
6003
|
"NAF",
|
|
5081
6004
|
"SAF",
|
|
6005
|
+
"SAS",
|
|
5082
6006
|
"SEAS",
|
|
5083
6007
|
"NEAS",
|
|
5084
6008
|
"ALL_REGIONS",
|
|
5085
|
-
"SAS",
|
|
5086
6009
|
]),
|
|
5087
6010
|
),
|
|
5088
6011
|
Schema.Null,
|
|
@@ -5093,7 +6016,32 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5093
6016
|
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5094
6017
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5095
6018
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5096
|
-
loadShedding: Schema.optional(
|
|
6019
|
+
loadShedding: Schema.optional(
|
|
6020
|
+
Schema.Union([
|
|
6021
|
+
Schema.Struct({
|
|
6022
|
+
defaultPercent: Schema.optional(
|
|
6023
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6024
|
+
),
|
|
6025
|
+
defaultPolicy: Schema.optional(
|
|
6026
|
+
Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null]),
|
|
6027
|
+
),
|
|
6028
|
+
sessionPercent: Schema.optional(
|
|
6029
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6030
|
+
),
|
|
6031
|
+
sessionPolicy: Schema.optional(
|
|
6032
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
6033
|
+
),
|
|
6034
|
+
}).pipe(
|
|
6035
|
+
Schema.encodeKeys({
|
|
6036
|
+
defaultPercent: "default_percent",
|
|
6037
|
+
defaultPolicy: "default_policy",
|
|
6038
|
+
sessionPercent: "session_percent",
|
|
6039
|
+
sessionPolicy: "session_policy",
|
|
6040
|
+
}),
|
|
6041
|
+
),
|
|
6042
|
+
Schema.Null,
|
|
6043
|
+
]),
|
|
6044
|
+
),
|
|
5097
6045
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5098
6046
|
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5099
6047
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -5107,11 +6055,96 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5107
6055
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5108
6056
|
),
|
|
5109
6057
|
notificationFilter: Schema.optional(
|
|
5110
|
-
Schema.Union([
|
|
6058
|
+
Schema.Union([
|
|
6059
|
+
Schema.Struct({
|
|
6060
|
+
origin: Schema.optional(
|
|
6061
|
+
Schema.Union([
|
|
6062
|
+
Schema.Struct({
|
|
6063
|
+
disable: Schema.optional(
|
|
6064
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6065
|
+
),
|
|
6066
|
+
healthy: Schema.optional(
|
|
6067
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6068
|
+
),
|
|
6069
|
+
}),
|
|
6070
|
+
Schema.Null,
|
|
6071
|
+
]),
|
|
6072
|
+
),
|
|
6073
|
+
pool: Schema.optional(
|
|
6074
|
+
Schema.Union([
|
|
6075
|
+
Schema.Struct({
|
|
6076
|
+
disable: Schema.optional(
|
|
6077
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6078
|
+
),
|
|
6079
|
+
healthy: Schema.optional(
|
|
6080
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6081
|
+
),
|
|
6082
|
+
}),
|
|
6083
|
+
Schema.Null,
|
|
6084
|
+
]),
|
|
6085
|
+
),
|
|
6086
|
+
}),
|
|
6087
|
+
Schema.Null,
|
|
6088
|
+
]),
|
|
6089
|
+
),
|
|
6090
|
+
originSteering: Schema.optional(
|
|
6091
|
+
Schema.Union([
|
|
6092
|
+
Schema.Struct({
|
|
6093
|
+
policy: Schema.optional(
|
|
6094
|
+
Schema.Union([
|
|
6095
|
+
Schema.Literals([
|
|
6096
|
+
"random",
|
|
6097
|
+
"hash",
|
|
6098
|
+
"least_outstanding_requests",
|
|
6099
|
+
"least_connections",
|
|
6100
|
+
]),
|
|
6101
|
+
Schema.Null,
|
|
6102
|
+
]),
|
|
6103
|
+
),
|
|
6104
|
+
}),
|
|
6105
|
+
Schema.Null,
|
|
6106
|
+
]),
|
|
5111
6107
|
),
|
|
5112
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5113
6108
|
origins: Schema.optional(
|
|
5114
|
-
Schema.Union([
|
|
6109
|
+
Schema.Union([
|
|
6110
|
+
Schema.Array(
|
|
6111
|
+
Schema.Struct({
|
|
6112
|
+
address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6113
|
+
disabledAt: Schema.optional(
|
|
6114
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6115
|
+
),
|
|
6116
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
6117
|
+
header: Schema.optional(
|
|
6118
|
+
Schema.Union([
|
|
6119
|
+
Schema.Struct({
|
|
6120
|
+
host: Schema.optional(
|
|
6121
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
6122
|
+
),
|
|
6123
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
6124
|
+
Schema.Null,
|
|
6125
|
+
]),
|
|
6126
|
+
),
|
|
6127
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6128
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6129
|
+
virtualNetworkId: Schema.optional(
|
|
6130
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6131
|
+
),
|
|
6132
|
+
weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6133
|
+
}).pipe(
|
|
6134
|
+
Schema.encodeKeys({
|
|
6135
|
+
address: "address",
|
|
6136
|
+
disabledAt: "disabled_at",
|
|
6137
|
+
enabled: "enabled",
|
|
6138
|
+
header: "header",
|
|
6139
|
+
name: "name",
|
|
6140
|
+
port: "port",
|
|
6141
|
+
virtualNetworkId: "virtual_network_id",
|
|
6142
|
+
weight: "weight",
|
|
6143
|
+
}),
|
|
6144
|
+
),
|
|
6145
|
+
),
|
|
6146
|
+
Schema.Null,
|
|
6147
|
+
]),
|
|
5115
6148
|
),
|
|
5116
6149
|
})
|
|
5117
6150
|
.pipe(
|
|
@@ -5184,10 +6217,10 @@ export interface ListPoolsResponse {
|
|
|
5184
6217
|
| "ME"
|
|
5185
6218
|
| "NAF"
|
|
5186
6219
|
| "SAF"
|
|
6220
|
+
| "SAS"
|
|
5187
6221
|
| "SEAS"
|
|
5188
6222
|
| "NEAS"
|
|
5189
6223
|
| "ALL_REGIONS"
|
|
5190
|
-
| "SAS"
|
|
5191
6224
|
)[]
|
|
5192
6225
|
| null;
|
|
5193
6226
|
createdOn?: string | null;
|
|
@@ -5195,7 +6228,12 @@ export interface ListPoolsResponse {
|
|
|
5195
6228
|
disabledAt?: string | null;
|
|
5196
6229
|
enabled?: boolean | null;
|
|
5197
6230
|
latitude?: number | null;
|
|
5198
|
-
loadShedding?:
|
|
6231
|
+
loadShedding?: {
|
|
6232
|
+
defaultPercent?: number | null;
|
|
6233
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
6234
|
+
sessionPercent?: number | null;
|
|
6235
|
+
sessionPolicy?: "hash" | null;
|
|
6236
|
+
} | null;
|
|
5199
6237
|
longitude?: number | null;
|
|
5200
6238
|
minimumOrigins?: number | null;
|
|
5201
6239
|
modifiedOn?: string | null;
|
|
@@ -5204,9 +6242,30 @@ export interface ListPoolsResponse {
|
|
|
5204
6242
|
name?: string | null;
|
|
5205
6243
|
networks?: string[] | null;
|
|
5206
6244
|
notificationEmail?: string | null;
|
|
5207
|
-
notificationFilter?:
|
|
5208
|
-
|
|
5209
|
-
|
|
6245
|
+
notificationFilter?: {
|
|
6246
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6247
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6248
|
+
} | null;
|
|
6249
|
+
originSteering?: {
|
|
6250
|
+
policy?:
|
|
6251
|
+
| "random"
|
|
6252
|
+
| "hash"
|
|
6253
|
+
| "least_outstanding_requests"
|
|
6254
|
+
| "least_connections"
|
|
6255
|
+
| null;
|
|
6256
|
+
} | null;
|
|
6257
|
+
origins?:
|
|
6258
|
+
| {
|
|
6259
|
+
address?: string | null;
|
|
6260
|
+
disabledAt?: string | null;
|
|
6261
|
+
enabled?: boolean | null;
|
|
6262
|
+
header?: { host?: string[] | null } | null;
|
|
6263
|
+
name?: string | null;
|
|
6264
|
+
port?: number | null;
|
|
6265
|
+
virtualNetworkId?: string | null;
|
|
6266
|
+
weight?: number | null;
|
|
6267
|
+
}[]
|
|
6268
|
+
| null;
|
|
5210
6269
|
}[];
|
|
5211
6270
|
}
|
|
5212
6271
|
|
|
@@ -5228,10 +6287,10 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5228
6287
|
"ME",
|
|
5229
6288
|
"NAF",
|
|
5230
6289
|
"SAF",
|
|
6290
|
+
"SAS",
|
|
5231
6291
|
"SEAS",
|
|
5232
6292
|
"NEAS",
|
|
5233
6293
|
"ALL_REGIONS",
|
|
5234
|
-
"SAS",
|
|
5235
6294
|
]),
|
|
5236
6295
|
),
|
|
5237
6296
|
Schema.Null,
|
|
@@ -5243,7 +6302,30 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5243
6302
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5244
6303
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5245
6304
|
loadShedding: Schema.optional(
|
|
5246
|
-
Schema.Union([
|
|
6305
|
+
Schema.Union([
|
|
6306
|
+
Schema.Struct({
|
|
6307
|
+
defaultPercent: Schema.optional(
|
|
6308
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6309
|
+
),
|
|
6310
|
+
defaultPolicy: Schema.optional(
|
|
6311
|
+
Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null]),
|
|
6312
|
+
),
|
|
6313
|
+
sessionPercent: Schema.optional(
|
|
6314
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6315
|
+
),
|
|
6316
|
+
sessionPolicy: Schema.optional(
|
|
6317
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
6318
|
+
),
|
|
6319
|
+
}).pipe(
|
|
6320
|
+
Schema.encodeKeys({
|
|
6321
|
+
defaultPercent: "default_percent",
|
|
6322
|
+
defaultPolicy: "default_policy",
|
|
6323
|
+
sessionPercent: "session_percent",
|
|
6324
|
+
sessionPolicy: "session_policy",
|
|
6325
|
+
}),
|
|
6326
|
+
),
|
|
6327
|
+
Schema.Null,
|
|
6328
|
+
]),
|
|
5247
6329
|
),
|
|
5248
6330
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5249
6331
|
minimumOrigins: Schema.optional(
|
|
@@ -5260,26 +6342,115 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5260
6342
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5261
6343
|
),
|
|
5262
6344
|
notificationFilter: Schema.optional(
|
|
5263
|
-
Schema.Union([
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
6345
|
+
Schema.Union([
|
|
6346
|
+
Schema.Struct({
|
|
6347
|
+
origin: Schema.optional(
|
|
6348
|
+
Schema.Union([
|
|
6349
|
+
Schema.Struct({
|
|
6350
|
+
disable: Schema.optional(
|
|
6351
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6352
|
+
),
|
|
6353
|
+
healthy: Schema.optional(
|
|
6354
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6355
|
+
),
|
|
6356
|
+
}),
|
|
6357
|
+
Schema.Null,
|
|
6358
|
+
]),
|
|
6359
|
+
),
|
|
6360
|
+
pool: Schema.optional(
|
|
6361
|
+
Schema.Union([
|
|
6362
|
+
Schema.Struct({
|
|
6363
|
+
disable: Schema.optional(
|
|
6364
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6365
|
+
),
|
|
6366
|
+
healthy: Schema.optional(
|
|
6367
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6368
|
+
),
|
|
6369
|
+
}),
|
|
6370
|
+
Schema.Null,
|
|
6371
|
+
]),
|
|
6372
|
+
),
|
|
6373
|
+
}),
|
|
6374
|
+
Schema.Null,
|
|
6375
|
+
]),
|
|
6376
|
+
),
|
|
6377
|
+
originSteering: Schema.optional(
|
|
6378
|
+
Schema.Union([
|
|
6379
|
+
Schema.Struct({
|
|
6380
|
+
policy: Schema.optional(
|
|
6381
|
+
Schema.Union([
|
|
6382
|
+
Schema.Literals([
|
|
6383
|
+
"random",
|
|
6384
|
+
"hash",
|
|
6385
|
+
"least_outstanding_requests",
|
|
6386
|
+
"least_connections",
|
|
6387
|
+
]),
|
|
6388
|
+
Schema.Null,
|
|
6389
|
+
]),
|
|
6390
|
+
),
|
|
6391
|
+
}),
|
|
6392
|
+
Schema.Null,
|
|
6393
|
+
]),
|
|
6394
|
+
),
|
|
6395
|
+
origins: Schema.optional(
|
|
6396
|
+
Schema.Union([
|
|
6397
|
+
Schema.Array(
|
|
6398
|
+
Schema.Struct({
|
|
6399
|
+
address: Schema.optional(
|
|
6400
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6401
|
+
),
|
|
6402
|
+
disabledAt: Schema.optional(
|
|
6403
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6404
|
+
),
|
|
6405
|
+
enabled: Schema.optional(
|
|
6406
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6407
|
+
),
|
|
6408
|
+
header: Schema.optional(
|
|
6409
|
+
Schema.Union([
|
|
6410
|
+
Schema.Struct({
|
|
6411
|
+
host: Schema.optional(
|
|
6412
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
6413
|
+
),
|
|
6414
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
6415
|
+
Schema.Null,
|
|
6416
|
+
]),
|
|
6417
|
+
),
|
|
6418
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6419
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6420
|
+
virtualNetworkId: Schema.optional(
|
|
6421
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6422
|
+
),
|
|
6423
|
+
weight: Schema.optional(
|
|
6424
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6425
|
+
),
|
|
6426
|
+
}).pipe(
|
|
6427
|
+
Schema.encodeKeys({
|
|
6428
|
+
address: "address",
|
|
6429
|
+
disabledAt: "disabled_at",
|
|
6430
|
+
enabled: "enabled",
|
|
6431
|
+
header: "header",
|
|
6432
|
+
name: "name",
|
|
6433
|
+
port: "port",
|
|
6434
|
+
virtualNetworkId: "virtual_network_id",
|
|
6435
|
+
weight: "weight",
|
|
6436
|
+
}),
|
|
6437
|
+
),
|
|
6438
|
+
),
|
|
6439
|
+
Schema.Null,
|
|
6440
|
+
]),
|
|
6441
|
+
),
|
|
6442
|
+
}).pipe(
|
|
6443
|
+
Schema.encodeKeys({
|
|
6444
|
+
id: "id",
|
|
6445
|
+
checkRegions: "check_regions",
|
|
6446
|
+
createdOn: "created_on",
|
|
6447
|
+
description: "description",
|
|
6448
|
+
disabledAt: "disabled_at",
|
|
6449
|
+
enabled: "enabled",
|
|
6450
|
+
latitude: "latitude",
|
|
6451
|
+
loadShedding: "load_shedding",
|
|
6452
|
+
longitude: "longitude",
|
|
6453
|
+
minimumOrigins: "minimum_origins",
|
|
5283
6454
|
modifiedOn: "modified_on",
|
|
5284
6455
|
monitor: "monitor",
|
|
5285
6456
|
monitorGroup: "monitor_group",
|
|
@@ -5324,10 +6495,10 @@ export const listPools: API.PaginatedOperationMethod<
|
|
|
5324
6495
|
| "ME"
|
|
5325
6496
|
| "NAF"
|
|
5326
6497
|
| "SAF"
|
|
6498
|
+
| "SAS"
|
|
5327
6499
|
| "SEAS"
|
|
5328
6500
|
| "NEAS"
|
|
5329
6501
|
| "ALL_REGIONS"
|
|
5330
|
-
| "SAS"
|
|
5331
6502
|
)[]
|
|
5332
6503
|
| null;
|
|
5333
6504
|
createdOn?: string | null;
|
|
@@ -5335,7 +6506,12 @@ export const listPools: API.PaginatedOperationMethod<
|
|
|
5335
6506
|
disabledAt?: string | null;
|
|
5336
6507
|
enabled?: boolean | null;
|
|
5337
6508
|
latitude?: number | null;
|
|
5338
|
-
loadShedding?:
|
|
6509
|
+
loadShedding?: {
|
|
6510
|
+
defaultPercent?: number | null;
|
|
6511
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
6512
|
+
sessionPercent?: number | null;
|
|
6513
|
+
sessionPolicy?: "hash" | null;
|
|
6514
|
+
} | null;
|
|
5339
6515
|
longitude?: number | null;
|
|
5340
6516
|
minimumOrigins?: number | null;
|
|
5341
6517
|
modifiedOn?: string | null;
|
|
@@ -5344,9 +6520,30 @@ export const listPools: API.PaginatedOperationMethod<
|
|
|
5344
6520
|
name?: string | null;
|
|
5345
6521
|
networks?: string[] | null;
|
|
5346
6522
|
notificationEmail?: string | null;
|
|
5347
|
-
notificationFilter?:
|
|
5348
|
-
|
|
5349
|
-
|
|
6523
|
+
notificationFilter?: {
|
|
6524
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6525
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6526
|
+
} | null;
|
|
6527
|
+
originSteering?: {
|
|
6528
|
+
policy?:
|
|
6529
|
+
| "random"
|
|
6530
|
+
| "hash"
|
|
6531
|
+
| "least_outstanding_requests"
|
|
6532
|
+
| "least_connections"
|
|
6533
|
+
| null;
|
|
6534
|
+
} | null;
|
|
6535
|
+
origins?:
|
|
6536
|
+
| {
|
|
6537
|
+
address?: string | null;
|
|
6538
|
+
disabledAt?: string | null;
|
|
6539
|
+
enabled?: boolean | null;
|
|
6540
|
+
header?: { host?: string[] | null } | null;
|
|
6541
|
+
name?: string | null;
|
|
6542
|
+
port?: number | null;
|
|
6543
|
+
virtualNetworkId?: string | null;
|
|
6544
|
+
weight?: number | null;
|
|
6545
|
+
}[]
|
|
6546
|
+
| null;
|
|
5350
6547
|
},
|
|
5351
6548
|
ListPoolsError,
|
|
5352
6549
|
Credentials | HttpClient.HttpClient
|
|
@@ -5367,7 +6564,15 @@ export interface CreatePoolRequest {
|
|
|
5367
6564
|
/** Body param: A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed. */
|
|
5368
6565
|
name: string;
|
|
5369
6566
|
/** Body param: The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5370
|
-
origins:
|
|
6567
|
+
origins: {
|
|
6568
|
+
address?: string;
|
|
6569
|
+
enabled?: boolean;
|
|
6570
|
+
header?: { host?: string[] };
|
|
6571
|
+
name?: string;
|
|
6572
|
+
port?: number;
|
|
6573
|
+
virtualNetworkId?: string;
|
|
6574
|
+
weight?: number;
|
|
6575
|
+
}[];
|
|
5371
6576
|
/** Body param: A human-readable description of the pool. */
|
|
5372
6577
|
description?: string;
|
|
5373
6578
|
/** Body param: Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it t */
|
|
@@ -5375,7 +6580,12 @@ export interface CreatePoolRequest {
|
|
|
5375
6580
|
/** Body param: The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5376
6581
|
latitude?: number;
|
|
5377
6582
|
/** Body param: Configures load shedding policies and percentages for the pool. */
|
|
5378
|
-
loadShedding?:
|
|
6583
|
+
loadShedding?: {
|
|
6584
|
+
defaultPercent?: number;
|
|
6585
|
+
defaultPolicy?: "random" | "hash";
|
|
6586
|
+
sessionPercent?: number;
|
|
6587
|
+
sessionPolicy?: "hash";
|
|
6588
|
+
} | null;
|
|
5379
6589
|
/** Body param: The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5380
6590
|
longitude?: number;
|
|
5381
6591
|
/** Body param: The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will fail */
|
|
@@ -5387,28 +6597,118 @@ export interface CreatePoolRequest {
|
|
|
5387
6597
|
/** Body param: This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send he */
|
|
5388
6598
|
notificationEmail?: string;
|
|
5389
6599
|
/** Body param: Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5390
|
-
notificationFilter?:
|
|
6600
|
+
notificationFilter?: {
|
|
6601
|
+
origin?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
6602
|
+
pool?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
6603
|
+
} | null;
|
|
5391
6604
|
/** Body param: Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5392
|
-
originSteering?:
|
|
6605
|
+
originSteering?: {
|
|
6606
|
+
policy?:
|
|
6607
|
+
| "random"
|
|
6608
|
+
| "hash"
|
|
6609
|
+
| "least_outstanding_requests"
|
|
6610
|
+
| "least_connections";
|
|
6611
|
+
} | null;
|
|
5393
6612
|
}
|
|
5394
6613
|
|
|
5395
6614
|
export const CreatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5396
6615
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5397
6616
|
name: Schema.String,
|
|
5398
|
-
origins: Schema.Array(
|
|
6617
|
+
origins: Schema.Array(
|
|
6618
|
+
Schema.Struct({
|
|
6619
|
+
address: Schema.optional(Schema.String),
|
|
6620
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
6621
|
+
header: Schema.optional(
|
|
6622
|
+
Schema.Struct({
|
|
6623
|
+
host: Schema.optional(Schema.Array(Schema.String)),
|
|
6624
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
6625
|
+
),
|
|
6626
|
+
name: Schema.optional(Schema.String),
|
|
6627
|
+
port: Schema.optional(Schema.Number),
|
|
6628
|
+
virtualNetworkId: Schema.optional(Schema.String),
|
|
6629
|
+
weight: Schema.optional(Schema.Number),
|
|
6630
|
+
}).pipe(
|
|
6631
|
+
Schema.encodeKeys({
|
|
6632
|
+
address: "address",
|
|
6633
|
+
enabled: "enabled",
|
|
6634
|
+
header: "header",
|
|
6635
|
+
name: "name",
|
|
6636
|
+
port: "port",
|
|
6637
|
+
virtualNetworkId: "virtual_network_id",
|
|
6638
|
+
weight: "weight",
|
|
6639
|
+
}),
|
|
6640
|
+
),
|
|
6641
|
+
),
|
|
5399
6642
|
description: Schema.optional(Schema.String),
|
|
5400
6643
|
enabled: Schema.optional(Schema.Boolean),
|
|
5401
6644
|
latitude: Schema.optional(Schema.Number),
|
|
5402
|
-
loadShedding: Schema.optional(
|
|
6645
|
+
loadShedding: Schema.optional(
|
|
6646
|
+
Schema.Union([
|
|
6647
|
+
Schema.Struct({
|
|
6648
|
+
defaultPercent: Schema.optional(Schema.Number),
|
|
6649
|
+
defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
|
|
6650
|
+
sessionPercent: Schema.optional(Schema.Number),
|
|
6651
|
+
sessionPolicy: Schema.optional(Schema.Literal("hash")),
|
|
6652
|
+
}).pipe(
|
|
6653
|
+
Schema.encodeKeys({
|
|
6654
|
+
defaultPercent: "default_percent",
|
|
6655
|
+
defaultPolicy: "default_policy",
|
|
6656
|
+
sessionPercent: "session_percent",
|
|
6657
|
+
sessionPolicy: "session_policy",
|
|
6658
|
+
}),
|
|
6659
|
+
),
|
|
6660
|
+
Schema.Null,
|
|
6661
|
+
]),
|
|
6662
|
+
),
|
|
5403
6663
|
longitude: Schema.optional(Schema.Number),
|
|
5404
6664
|
minimumOrigins: Schema.optional(Schema.Number),
|
|
5405
6665
|
monitor: Schema.optional(Schema.String),
|
|
5406
6666
|
monitorGroup: Schema.optional(Schema.String),
|
|
5407
6667
|
notificationEmail: Schema.optional(Schema.String),
|
|
5408
6668
|
notificationFilter: Schema.optional(
|
|
5409
|
-
Schema.Union([
|
|
6669
|
+
Schema.Union([
|
|
6670
|
+
Schema.Struct({
|
|
6671
|
+
origin: Schema.optional(
|
|
6672
|
+
Schema.Union([
|
|
6673
|
+
Schema.Struct({
|
|
6674
|
+
disable: Schema.optional(Schema.Boolean),
|
|
6675
|
+
healthy: Schema.optional(
|
|
6676
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6677
|
+
),
|
|
6678
|
+
}),
|
|
6679
|
+
Schema.Null,
|
|
6680
|
+
]),
|
|
6681
|
+
),
|
|
6682
|
+
pool: Schema.optional(
|
|
6683
|
+
Schema.Union([
|
|
6684
|
+
Schema.Struct({
|
|
6685
|
+
disable: Schema.optional(Schema.Boolean),
|
|
6686
|
+
healthy: Schema.optional(
|
|
6687
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6688
|
+
),
|
|
6689
|
+
}),
|
|
6690
|
+
Schema.Null,
|
|
6691
|
+
]),
|
|
6692
|
+
),
|
|
6693
|
+
}),
|
|
6694
|
+
Schema.Null,
|
|
6695
|
+
]),
|
|
6696
|
+
),
|
|
6697
|
+
originSteering: Schema.optional(
|
|
6698
|
+
Schema.Union([
|
|
6699
|
+
Schema.Struct({
|
|
6700
|
+
policy: Schema.optional(
|
|
6701
|
+
Schema.Literals([
|
|
6702
|
+
"random",
|
|
6703
|
+
"hash",
|
|
6704
|
+
"least_outstanding_requests",
|
|
6705
|
+
"least_connections",
|
|
6706
|
+
]),
|
|
6707
|
+
),
|
|
6708
|
+
}),
|
|
6709
|
+
Schema.Null,
|
|
6710
|
+
]),
|
|
5410
6711
|
),
|
|
5411
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5412
6712
|
}).pipe(
|
|
5413
6713
|
Schema.encodeKeys({
|
|
5414
6714
|
name: "name",
|
|
@@ -5446,10 +6746,10 @@ export interface CreatePoolResponse {
|
|
|
5446
6746
|
| "ME"
|
|
5447
6747
|
| "NAF"
|
|
5448
6748
|
| "SAF"
|
|
6749
|
+
| "SAS"
|
|
5449
6750
|
| "SEAS"
|
|
5450
6751
|
| "NEAS"
|
|
5451
6752
|
| "ALL_REGIONS"
|
|
5452
|
-
| "SAS"
|
|
5453
6753
|
)[]
|
|
5454
6754
|
| null;
|
|
5455
6755
|
createdOn?: string | null;
|
|
@@ -5462,7 +6762,12 @@ export interface CreatePoolResponse {
|
|
|
5462
6762
|
/** The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5463
6763
|
latitude?: number | null;
|
|
5464
6764
|
/** Configures load shedding policies and percentages for the pool. */
|
|
5465
|
-
loadShedding?:
|
|
6765
|
+
loadShedding?: {
|
|
6766
|
+
defaultPercent?: number | null;
|
|
6767
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
6768
|
+
sessionPercent?: number | null;
|
|
6769
|
+
sessionPolicy?: "hash" | null;
|
|
6770
|
+
} | null;
|
|
5466
6771
|
/** The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5467
6772
|
longitude?: number | null;
|
|
5468
6773
|
/** The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the */
|
|
@@ -5479,11 +6784,32 @@ export interface CreatePoolResponse {
|
|
|
5479
6784
|
/** This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status */
|
|
5480
6785
|
notificationEmail?: string | null;
|
|
5481
6786
|
/** Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5482
|
-
notificationFilter?:
|
|
6787
|
+
notificationFilter?: {
|
|
6788
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6789
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
6790
|
+
} | null;
|
|
5483
6791
|
/** Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5484
|
-
originSteering?:
|
|
6792
|
+
originSteering?: {
|
|
6793
|
+
policy?:
|
|
6794
|
+
| "random"
|
|
6795
|
+
| "hash"
|
|
6796
|
+
| "least_outstanding_requests"
|
|
6797
|
+
| "least_connections"
|
|
6798
|
+
| null;
|
|
6799
|
+
} | null;
|
|
5485
6800
|
/** The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5486
|
-
origins?:
|
|
6801
|
+
origins?:
|
|
6802
|
+
| {
|
|
6803
|
+
address?: string | null;
|
|
6804
|
+
disabledAt?: string | null;
|
|
6805
|
+
enabled?: boolean | null;
|
|
6806
|
+
header?: { host?: string[] | null } | null;
|
|
6807
|
+
name?: string | null;
|
|
6808
|
+
port?: number | null;
|
|
6809
|
+
virtualNetworkId?: string | null;
|
|
6810
|
+
weight?: number | null;
|
|
6811
|
+
}[]
|
|
6812
|
+
| null;
|
|
5487
6813
|
}
|
|
5488
6814
|
|
|
5489
6815
|
export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -5502,10 +6828,10 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5502
6828
|
"ME",
|
|
5503
6829
|
"NAF",
|
|
5504
6830
|
"SAF",
|
|
6831
|
+
"SAS",
|
|
5505
6832
|
"SEAS",
|
|
5506
6833
|
"NEAS",
|
|
5507
6834
|
"ALL_REGIONS",
|
|
5508
|
-
"SAS",
|
|
5509
6835
|
]),
|
|
5510
6836
|
),
|
|
5511
6837
|
Schema.Null,
|
|
@@ -5516,7 +6842,32 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5516
6842
|
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5517
6843
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5518
6844
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5519
|
-
loadShedding: Schema.optional(
|
|
6845
|
+
loadShedding: Schema.optional(
|
|
6846
|
+
Schema.Union([
|
|
6847
|
+
Schema.Struct({
|
|
6848
|
+
defaultPercent: Schema.optional(
|
|
6849
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6850
|
+
),
|
|
6851
|
+
defaultPolicy: Schema.optional(
|
|
6852
|
+
Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null]),
|
|
6853
|
+
),
|
|
6854
|
+
sessionPercent: Schema.optional(
|
|
6855
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
6856
|
+
),
|
|
6857
|
+
sessionPolicy: Schema.optional(
|
|
6858
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
6859
|
+
),
|
|
6860
|
+
}).pipe(
|
|
6861
|
+
Schema.encodeKeys({
|
|
6862
|
+
defaultPercent: "default_percent",
|
|
6863
|
+
defaultPolicy: "default_policy",
|
|
6864
|
+
sessionPercent: "session_percent",
|
|
6865
|
+
sessionPolicy: "session_policy",
|
|
6866
|
+
}),
|
|
6867
|
+
),
|
|
6868
|
+
Schema.Null,
|
|
6869
|
+
]),
|
|
6870
|
+
),
|
|
5520
6871
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5521
6872
|
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5522
6873
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -5530,11 +6881,96 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5530
6881
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5531
6882
|
),
|
|
5532
6883
|
notificationFilter: Schema.optional(
|
|
5533
|
-
Schema.Union([
|
|
6884
|
+
Schema.Union([
|
|
6885
|
+
Schema.Struct({
|
|
6886
|
+
origin: Schema.optional(
|
|
6887
|
+
Schema.Union([
|
|
6888
|
+
Schema.Struct({
|
|
6889
|
+
disable: Schema.optional(
|
|
6890
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6891
|
+
),
|
|
6892
|
+
healthy: Schema.optional(
|
|
6893
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6894
|
+
),
|
|
6895
|
+
}),
|
|
6896
|
+
Schema.Null,
|
|
6897
|
+
]),
|
|
6898
|
+
),
|
|
6899
|
+
pool: Schema.optional(
|
|
6900
|
+
Schema.Union([
|
|
6901
|
+
Schema.Struct({
|
|
6902
|
+
disable: Schema.optional(
|
|
6903
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6904
|
+
),
|
|
6905
|
+
healthy: Schema.optional(
|
|
6906
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
6907
|
+
),
|
|
6908
|
+
}),
|
|
6909
|
+
Schema.Null,
|
|
6910
|
+
]),
|
|
6911
|
+
),
|
|
6912
|
+
}),
|
|
6913
|
+
Schema.Null,
|
|
6914
|
+
]),
|
|
6915
|
+
),
|
|
6916
|
+
originSteering: Schema.optional(
|
|
6917
|
+
Schema.Union([
|
|
6918
|
+
Schema.Struct({
|
|
6919
|
+
policy: Schema.optional(
|
|
6920
|
+
Schema.Union([
|
|
6921
|
+
Schema.Literals([
|
|
6922
|
+
"random",
|
|
6923
|
+
"hash",
|
|
6924
|
+
"least_outstanding_requests",
|
|
6925
|
+
"least_connections",
|
|
6926
|
+
]),
|
|
6927
|
+
Schema.Null,
|
|
6928
|
+
]),
|
|
6929
|
+
),
|
|
6930
|
+
}),
|
|
6931
|
+
Schema.Null,
|
|
6932
|
+
]),
|
|
5534
6933
|
),
|
|
5535
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5536
6934
|
origins: Schema.optional(
|
|
5537
|
-
Schema.Union([
|
|
6935
|
+
Schema.Union([
|
|
6936
|
+
Schema.Array(
|
|
6937
|
+
Schema.Struct({
|
|
6938
|
+
address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6939
|
+
disabledAt: Schema.optional(
|
|
6940
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6941
|
+
),
|
|
6942
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
6943
|
+
header: Schema.optional(
|
|
6944
|
+
Schema.Union([
|
|
6945
|
+
Schema.Struct({
|
|
6946
|
+
host: Schema.optional(
|
|
6947
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
6948
|
+
),
|
|
6949
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
6950
|
+
Schema.Null,
|
|
6951
|
+
]),
|
|
6952
|
+
),
|
|
6953
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6954
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6955
|
+
virtualNetworkId: Schema.optional(
|
|
6956
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6957
|
+
),
|
|
6958
|
+
weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6959
|
+
}).pipe(
|
|
6960
|
+
Schema.encodeKeys({
|
|
6961
|
+
address: "address",
|
|
6962
|
+
disabledAt: "disabled_at",
|
|
6963
|
+
enabled: "enabled",
|
|
6964
|
+
header: "header",
|
|
6965
|
+
name: "name",
|
|
6966
|
+
port: "port",
|
|
6967
|
+
virtualNetworkId: "virtual_network_id",
|
|
6968
|
+
weight: "weight",
|
|
6969
|
+
}),
|
|
6970
|
+
),
|
|
6971
|
+
),
|
|
6972
|
+
Schema.Null,
|
|
6973
|
+
]),
|
|
5538
6974
|
),
|
|
5539
6975
|
})
|
|
5540
6976
|
.pipe(
|
|
@@ -5584,7 +7020,15 @@ export interface UpdatePoolRequest {
|
|
|
5584
7020
|
/** Body param: A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed. */
|
|
5585
7021
|
name: string;
|
|
5586
7022
|
/** Body param: The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5587
|
-
origins:
|
|
7023
|
+
origins: {
|
|
7024
|
+
address?: string;
|
|
7025
|
+
enabled?: boolean;
|
|
7026
|
+
header?: { host?: string[] };
|
|
7027
|
+
name?: string;
|
|
7028
|
+
port?: number;
|
|
7029
|
+
virtualNetworkId?: string;
|
|
7030
|
+
weight?: number;
|
|
7031
|
+
}[];
|
|
5588
7032
|
/** Body param: A list of regions from which to run health checks. Null means every Cloudflare data center. */
|
|
5589
7033
|
checkRegions?:
|
|
5590
7034
|
| (
|
|
@@ -5598,10 +7042,10 @@ export interface UpdatePoolRequest {
|
|
|
5598
7042
|
| "ME"
|
|
5599
7043
|
| "NAF"
|
|
5600
7044
|
| "SAF"
|
|
7045
|
+
| "SAS"
|
|
5601
7046
|
| "SEAS"
|
|
5602
7047
|
| "NEAS"
|
|
5603
7048
|
| "ALL_REGIONS"
|
|
5604
|
-
| "SAS"
|
|
5605
7049
|
)[]
|
|
5606
7050
|
| null;
|
|
5607
7051
|
/** Body param: A human-readable description of the pool. */
|
|
@@ -5611,7 +7055,12 @@ export interface UpdatePoolRequest {
|
|
|
5611
7055
|
/** Body param: The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5612
7056
|
latitude?: number;
|
|
5613
7057
|
/** Body param: Configures load shedding policies and percentages for the pool. */
|
|
5614
|
-
loadShedding?:
|
|
7058
|
+
loadShedding?: {
|
|
7059
|
+
defaultPercent?: number;
|
|
7060
|
+
defaultPolicy?: "random" | "hash";
|
|
7061
|
+
sessionPercent?: number;
|
|
7062
|
+
sessionPolicy?: "hash";
|
|
7063
|
+
} | null;
|
|
5615
7064
|
/** Body param: The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5616
7065
|
longitude?: number;
|
|
5617
7066
|
/** Body param: The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will fail */
|
|
@@ -5623,16 +7072,49 @@ export interface UpdatePoolRequest {
|
|
|
5623
7072
|
/** Body param: This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send he */
|
|
5624
7073
|
notificationEmail?: string;
|
|
5625
7074
|
/** Body param: Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5626
|
-
notificationFilter?:
|
|
7075
|
+
notificationFilter?: {
|
|
7076
|
+
origin?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
7077
|
+
pool?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
7078
|
+
} | null;
|
|
5627
7079
|
/** Body param: Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5628
|
-
originSteering?:
|
|
7080
|
+
originSteering?: {
|
|
7081
|
+
policy?:
|
|
7082
|
+
| "random"
|
|
7083
|
+
| "hash"
|
|
7084
|
+
| "least_outstanding_requests"
|
|
7085
|
+
| "least_connections";
|
|
7086
|
+
} | null;
|
|
5629
7087
|
}
|
|
5630
7088
|
|
|
5631
7089
|
export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5632
7090
|
poolId: Schema.String.pipe(T.HttpPath("poolId")),
|
|
5633
7091
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5634
7092
|
name: Schema.String,
|
|
5635
|
-
origins: Schema.Array(
|
|
7093
|
+
origins: Schema.Array(
|
|
7094
|
+
Schema.Struct({
|
|
7095
|
+
address: Schema.optional(Schema.String),
|
|
7096
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
7097
|
+
header: Schema.optional(
|
|
7098
|
+
Schema.Struct({
|
|
7099
|
+
host: Schema.optional(Schema.Array(Schema.String)),
|
|
7100
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
7101
|
+
),
|
|
7102
|
+
name: Schema.optional(Schema.String),
|
|
7103
|
+
port: Schema.optional(Schema.Number),
|
|
7104
|
+
virtualNetworkId: Schema.optional(Schema.String),
|
|
7105
|
+
weight: Schema.optional(Schema.Number),
|
|
7106
|
+
}).pipe(
|
|
7107
|
+
Schema.encodeKeys({
|
|
7108
|
+
address: "address",
|
|
7109
|
+
enabled: "enabled",
|
|
7110
|
+
header: "header",
|
|
7111
|
+
name: "name",
|
|
7112
|
+
port: "port",
|
|
7113
|
+
virtualNetworkId: "virtual_network_id",
|
|
7114
|
+
weight: "weight",
|
|
7115
|
+
}),
|
|
7116
|
+
),
|
|
7117
|
+
),
|
|
5636
7118
|
checkRegions: Schema.optional(
|
|
5637
7119
|
Schema.Union([
|
|
5638
7120
|
Schema.Array(
|
|
@@ -5647,10 +7129,10 @@ export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5647
7129
|
"ME",
|
|
5648
7130
|
"NAF",
|
|
5649
7131
|
"SAF",
|
|
7132
|
+
"SAS",
|
|
5650
7133
|
"SEAS",
|
|
5651
7134
|
"NEAS",
|
|
5652
7135
|
"ALL_REGIONS",
|
|
5653
|
-
"SAS",
|
|
5654
7136
|
]),
|
|
5655
7137
|
),
|
|
5656
7138
|
Schema.Null,
|
|
@@ -5659,16 +7141,73 @@ export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5659
7141
|
description: Schema.optional(Schema.String),
|
|
5660
7142
|
enabled: Schema.optional(Schema.Boolean),
|
|
5661
7143
|
latitude: Schema.optional(Schema.Number),
|
|
5662
|
-
loadShedding: Schema.optional(
|
|
7144
|
+
loadShedding: Schema.optional(
|
|
7145
|
+
Schema.Union([
|
|
7146
|
+
Schema.Struct({
|
|
7147
|
+
defaultPercent: Schema.optional(Schema.Number),
|
|
7148
|
+
defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
|
|
7149
|
+
sessionPercent: Schema.optional(Schema.Number),
|
|
7150
|
+
sessionPolicy: Schema.optional(Schema.Literal("hash")),
|
|
7151
|
+
}).pipe(
|
|
7152
|
+
Schema.encodeKeys({
|
|
7153
|
+
defaultPercent: "default_percent",
|
|
7154
|
+
defaultPolicy: "default_policy",
|
|
7155
|
+
sessionPercent: "session_percent",
|
|
7156
|
+
sessionPolicy: "session_policy",
|
|
7157
|
+
}),
|
|
7158
|
+
),
|
|
7159
|
+
Schema.Null,
|
|
7160
|
+
]),
|
|
7161
|
+
),
|
|
5663
7162
|
longitude: Schema.optional(Schema.Number),
|
|
5664
7163
|
minimumOrigins: Schema.optional(Schema.Number),
|
|
5665
7164
|
monitor: Schema.optional(Schema.String),
|
|
5666
7165
|
monitorGroup: Schema.optional(Schema.String),
|
|
5667
7166
|
notificationEmail: Schema.optional(Schema.String),
|
|
5668
7167
|
notificationFilter: Schema.optional(
|
|
5669
|
-
Schema.Union([
|
|
7168
|
+
Schema.Union([
|
|
7169
|
+
Schema.Struct({
|
|
7170
|
+
origin: Schema.optional(
|
|
7171
|
+
Schema.Union([
|
|
7172
|
+
Schema.Struct({
|
|
7173
|
+
disable: Schema.optional(Schema.Boolean),
|
|
7174
|
+
healthy: Schema.optional(
|
|
7175
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7176
|
+
),
|
|
7177
|
+
}),
|
|
7178
|
+
Schema.Null,
|
|
7179
|
+
]),
|
|
7180
|
+
),
|
|
7181
|
+
pool: Schema.optional(
|
|
7182
|
+
Schema.Union([
|
|
7183
|
+
Schema.Struct({
|
|
7184
|
+
disable: Schema.optional(Schema.Boolean),
|
|
7185
|
+
healthy: Schema.optional(
|
|
7186
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7187
|
+
),
|
|
7188
|
+
}),
|
|
7189
|
+
Schema.Null,
|
|
7190
|
+
]),
|
|
7191
|
+
),
|
|
7192
|
+
}),
|
|
7193
|
+
Schema.Null,
|
|
7194
|
+
]),
|
|
7195
|
+
),
|
|
7196
|
+
originSteering: Schema.optional(
|
|
7197
|
+
Schema.Union([
|
|
7198
|
+
Schema.Struct({
|
|
7199
|
+
policy: Schema.optional(
|
|
7200
|
+
Schema.Literals([
|
|
7201
|
+
"random",
|
|
7202
|
+
"hash",
|
|
7203
|
+
"least_outstanding_requests",
|
|
7204
|
+
"least_connections",
|
|
7205
|
+
]),
|
|
7206
|
+
),
|
|
7207
|
+
}),
|
|
7208
|
+
Schema.Null,
|
|
7209
|
+
]),
|
|
5670
7210
|
),
|
|
5671
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5672
7211
|
}).pipe(
|
|
5673
7212
|
Schema.encodeKeys({
|
|
5674
7213
|
name: "name",
|
|
@@ -5707,10 +7246,10 @@ export interface UpdatePoolResponse {
|
|
|
5707
7246
|
| "ME"
|
|
5708
7247
|
| "NAF"
|
|
5709
7248
|
| "SAF"
|
|
7249
|
+
| "SAS"
|
|
5710
7250
|
| "SEAS"
|
|
5711
7251
|
| "NEAS"
|
|
5712
7252
|
| "ALL_REGIONS"
|
|
5713
|
-
| "SAS"
|
|
5714
7253
|
)[]
|
|
5715
7254
|
| null;
|
|
5716
7255
|
createdOn?: string | null;
|
|
@@ -5723,7 +7262,12 @@ export interface UpdatePoolResponse {
|
|
|
5723
7262
|
/** The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5724
7263
|
latitude?: number | null;
|
|
5725
7264
|
/** Configures load shedding policies and percentages for the pool. */
|
|
5726
|
-
loadShedding?:
|
|
7265
|
+
loadShedding?: {
|
|
7266
|
+
defaultPercent?: number | null;
|
|
7267
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
7268
|
+
sessionPercent?: number | null;
|
|
7269
|
+
sessionPolicy?: "hash" | null;
|
|
7270
|
+
} | null;
|
|
5727
7271
|
/** The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5728
7272
|
longitude?: number | null;
|
|
5729
7273
|
/** The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the */
|
|
@@ -5740,11 +7284,32 @@ export interface UpdatePoolResponse {
|
|
|
5740
7284
|
/** This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status */
|
|
5741
7285
|
notificationEmail?: string | null;
|
|
5742
7286
|
/** Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5743
|
-
notificationFilter?:
|
|
7287
|
+
notificationFilter?: {
|
|
7288
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
7289
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
7290
|
+
} | null;
|
|
5744
7291
|
/** Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5745
|
-
originSteering?:
|
|
7292
|
+
originSteering?: {
|
|
7293
|
+
policy?:
|
|
7294
|
+
| "random"
|
|
7295
|
+
| "hash"
|
|
7296
|
+
| "least_outstanding_requests"
|
|
7297
|
+
| "least_connections"
|
|
7298
|
+
| null;
|
|
7299
|
+
} | null;
|
|
5746
7300
|
/** The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5747
|
-
origins?:
|
|
7301
|
+
origins?:
|
|
7302
|
+
| {
|
|
7303
|
+
address?: string | null;
|
|
7304
|
+
disabledAt?: string | null;
|
|
7305
|
+
enabled?: boolean | null;
|
|
7306
|
+
header?: { host?: string[] | null } | null;
|
|
7307
|
+
name?: string | null;
|
|
7308
|
+
port?: number | null;
|
|
7309
|
+
virtualNetworkId?: string | null;
|
|
7310
|
+
weight?: number | null;
|
|
7311
|
+
}[]
|
|
7312
|
+
| null;
|
|
5748
7313
|
}
|
|
5749
7314
|
|
|
5750
7315
|
export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -5763,10 +7328,10 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5763
7328
|
"ME",
|
|
5764
7329
|
"NAF",
|
|
5765
7330
|
"SAF",
|
|
7331
|
+
"SAS",
|
|
5766
7332
|
"SEAS",
|
|
5767
7333
|
"NEAS",
|
|
5768
7334
|
"ALL_REGIONS",
|
|
5769
|
-
"SAS",
|
|
5770
7335
|
]),
|
|
5771
7336
|
),
|
|
5772
7337
|
Schema.Null,
|
|
@@ -5777,7 +7342,32 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5777
7342
|
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5778
7343
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5779
7344
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5780
|
-
loadShedding: Schema.optional(
|
|
7345
|
+
loadShedding: Schema.optional(
|
|
7346
|
+
Schema.Union([
|
|
7347
|
+
Schema.Struct({
|
|
7348
|
+
defaultPercent: Schema.optional(
|
|
7349
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
7350
|
+
),
|
|
7351
|
+
defaultPolicy: Schema.optional(
|
|
7352
|
+
Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null]),
|
|
7353
|
+
),
|
|
7354
|
+
sessionPercent: Schema.optional(
|
|
7355
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
7356
|
+
),
|
|
7357
|
+
sessionPolicy: Schema.optional(
|
|
7358
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
7359
|
+
),
|
|
7360
|
+
}).pipe(
|
|
7361
|
+
Schema.encodeKeys({
|
|
7362
|
+
defaultPercent: "default_percent",
|
|
7363
|
+
defaultPolicy: "default_policy",
|
|
7364
|
+
sessionPercent: "session_percent",
|
|
7365
|
+
sessionPolicy: "session_policy",
|
|
7366
|
+
}),
|
|
7367
|
+
),
|
|
7368
|
+
Schema.Null,
|
|
7369
|
+
]),
|
|
7370
|
+
),
|
|
5781
7371
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5782
7372
|
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5783
7373
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -5791,11 +7381,96 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5791
7381
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5792
7382
|
),
|
|
5793
7383
|
notificationFilter: Schema.optional(
|
|
5794
|
-
Schema.Union([
|
|
7384
|
+
Schema.Union([
|
|
7385
|
+
Schema.Struct({
|
|
7386
|
+
origin: Schema.optional(
|
|
7387
|
+
Schema.Union([
|
|
7388
|
+
Schema.Struct({
|
|
7389
|
+
disable: Schema.optional(
|
|
7390
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7391
|
+
),
|
|
7392
|
+
healthy: Schema.optional(
|
|
7393
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7394
|
+
),
|
|
7395
|
+
}),
|
|
7396
|
+
Schema.Null,
|
|
7397
|
+
]),
|
|
7398
|
+
),
|
|
7399
|
+
pool: Schema.optional(
|
|
7400
|
+
Schema.Union([
|
|
7401
|
+
Schema.Struct({
|
|
7402
|
+
disable: Schema.optional(
|
|
7403
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7404
|
+
),
|
|
7405
|
+
healthy: Schema.optional(
|
|
7406
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7407
|
+
),
|
|
7408
|
+
}),
|
|
7409
|
+
Schema.Null,
|
|
7410
|
+
]),
|
|
7411
|
+
),
|
|
7412
|
+
}),
|
|
7413
|
+
Schema.Null,
|
|
7414
|
+
]),
|
|
7415
|
+
),
|
|
7416
|
+
originSteering: Schema.optional(
|
|
7417
|
+
Schema.Union([
|
|
7418
|
+
Schema.Struct({
|
|
7419
|
+
policy: Schema.optional(
|
|
7420
|
+
Schema.Union([
|
|
7421
|
+
Schema.Literals([
|
|
7422
|
+
"random",
|
|
7423
|
+
"hash",
|
|
7424
|
+
"least_outstanding_requests",
|
|
7425
|
+
"least_connections",
|
|
7426
|
+
]),
|
|
7427
|
+
Schema.Null,
|
|
7428
|
+
]),
|
|
7429
|
+
),
|
|
7430
|
+
}),
|
|
7431
|
+
Schema.Null,
|
|
7432
|
+
]),
|
|
5795
7433
|
),
|
|
5796
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5797
7434
|
origins: Schema.optional(
|
|
5798
|
-
Schema.Union([
|
|
7435
|
+
Schema.Union([
|
|
7436
|
+
Schema.Array(
|
|
7437
|
+
Schema.Struct({
|
|
7438
|
+
address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
7439
|
+
disabledAt: Schema.optional(
|
|
7440
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7441
|
+
),
|
|
7442
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
7443
|
+
header: Schema.optional(
|
|
7444
|
+
Schema.Union([
|
|
7445
|
+
Schema.Struct({
|
|
7446
|
+
host: Schema.optional(
|
|
7447
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
7448
|
+
),
|
|
7449
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
7450
|
+
Schema.Null,
|
|
7451
|
+
]),
|
|
7452
|
+
),
|
|
7453
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
7454
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
7455
|
+
virtualNetworkId: Schema.optional(
|
|
7456
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7457
|
+
),
|
|
7458
|
+
weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
7459
|
+
}).pipe(
|
|
7460
|
+
Schema.encodeKeys({
|
|
7461
|
+
address: "address",
|
|
7462
|
+
disabledAt: "disabled_at",
|
|
7463
|
+
enabled: "enabled",
|
|
7464
|
+
header: "header",
|
|
7465
|
+
name: "name",
|
|
7466
|
+
port: "port",
|
|
7467
|
+
virtualNetworkId: "virtual_network_id",
|
|
7468
|
+
weight: "weight",
|
|
7469
|
+
}),
|
|
7470
|
+
),
|
|
7471
|
+
),
|
|
7472
|
+
Schema.Null,
|
|
7473
|
+
]),
|
|
5799
7474
|
),
|
|
5800
7475
|
})
|
|
5801
7476
|
.pipe(
|
|
@@ -5855,10 +7530,10 @@ export interface PatchPoolRequest {
|
|
|
5855
7530
|
| "ME"
|
|
5856
7531
|
| "NAF"
|
|
5857
7532
|
| "SAF"
|
|
7533
|
+
| "SAS"
|
|
5858
7534
|
| "SEAS"
|
|
5859
7535
|
| "NEAS"
|
|
5860
7536
|
| "ALL_REGIONS"
|
|
5861
|
-
| "SAS"
|
|
5862
7537
|
)[]
|
|
5863
7538
|
| null;
|
|
5864
7539
|
/** Body param: A human-readable description of the pool. */
|
|
@@ -5868,7 +7543,12 @@ export interface PatchPoolRequest {
|
|
|
5868
7543
|
/** Body param: The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5869
7544
|
latitude?: number;
|
|
5870
7545
|
/** Body param: Configures load shedding policies and percentages for the pool. */
|
|
5871
|
-
loadShedding?:
|
|
7546
|
+
loadShedding?: {
|
|
7547
|
+
defaultPercent?: number;
|
|
7548
|
+
defaultPolicy?: "random" | "hash";
|
|
7549
|
+
sessionPercent?: number;
|
|
7550
|
+
sessionPolicy?: "hash";
|
|
7551
|
+
} | null;
|
|
5872
7552
|
/** Body param: The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5873
7553
|
longitude?: number;
|
|
5874
7554
|
/** Body param: The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will fail */
|
|
@@ -5882,11 +7562,28 @@ export interface PatchPoolRequest {
|
|
|
5882
7562
|
/** Body param: This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send he */
|
|
5883
7563
|
notificationEmail?: string;
|
|
5884
7564
|
/** Body param: Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
5885
|
-
notificationFilter?:
|
|
7565
|
+
notificationFilter?: {
|
|
7566
|
+
origin?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
7567
|
+
pool?: { disable?: boolean; healthy?: boolean | null } | null;
|
|
7568
|
+
} | null;
|
|
5886
7569
|
/** Body param: Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
5887
|
-
originSteering?:
|
|
7570
|
+
originSteering?: {
|
|
7571
|
+
policy?:
|
|
7572
|
+
| "random"
|
|
7573
|
+
| "hash"
|
|
7574
|
+
| "least_outstanding_requests"
|
|
7575
|
+
| "least_connections";
|
|
7576
|
+
} | null;
|
|
5888
7577
|
/** Body param: The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
5889
|
-
origins?:
|
|
7578
|
+
origins?: {
|
|
7579
|
+
address?: string;
|
|
7580
|
+
enabled?: boolean;
|
|
7581
|
+
header?: { host?: string[] };
|
|
7582
|
+
name?: string;
|
|
7583
|
+
port?: number;
|
|
7584
|
+
virtualNetworkId?: string;
|
|
7585
|
+
weight?: number;
|
|
7586
|
+
}[];
|
|
5890
7587
|
}
|
|
5891
7588
|
|
|
5892
7589
|
export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -5906,10 +7603,10 @@ export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5906
7603
|
"ME",
|
|
5907
7604
|
"NAF",
|
|
5908
7605
|
"SAF",
|
|
7606
|
+
"SAS",
|
|
5909
7607
|
"SEAS",
|
|
5910
7608
|
"NEAS",
|
|
5911
7609
|
"ALL_REGIONS",
|
|
5912
|
-
"SAS",
|
|
5913
7610
|
]),
|
|
5914
7611
|
),
|
|
5915
7612
|
Schema.Null,
|
|
@@ -5918,7 +7615,24 @@ export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5918
7615
|
description: Schema.optional(Schema.String),
|
|
5919
7616
|
enabled: Schema.optional(Schema.Boolean),
|
|
5920
7617
|
latitude: Schema.optional(Schema.Number),
|
|
5921
|
-
loadShedding: Schema.optional(
|
|
7618
|
+
loadShedding: Schema.optional(
|
|
7619
|
+
Schema.Union([
|
|
7620
|
+
Schema.Struct({
|
|
7621
|
+
defaultPercent: Schema.optional(Schema.Number),
|
|
7622
|
+
defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
|
|
7623
|
+
sessionPercent: Schema.optional(Schema.Number),
|
|
7624
|
+
sessionPolicy: Schema.optional(Schema.Literal("hash")),
|
|
7625
|
+
}).pipe(
|
|
7626
|
+
Schema.encodeKeys({
|
|
7627
|
+
defaultPercent: "default_percent",
|
|
7628
|
+
defaultPolicy: "default_policy",
|
|
7629
|
+
sessionPercent: "session_percent",
|
|
7630
|
+
sessionPolicy: "session_policy",
|
|
7631
|
+
}),
|
|
7632
|
+
),
|
|
7633
|
+
Schema.Null,
|
|
7634
|
+
]),
|
|
7635
|
+
),
|
|
5922
7636
|
longitude: Schema.optional(Schema.Number),
|
|
5923
7637
|
minimumOrigins: Schema.optional(Schema.Number),
|
|
5924
7638
|
monitor: Schema.optional(Schema.String),
|
|
@@ -5926,10 +7640,76 @@ export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5926
7640
|
name: Schema.optional(Schema.String),
|
|
5927
7641
|
notificationEmail: Schema.optional(Schema.String),
|
|
5928
7642
|
notificationFilter: Schema.optional(
|
|
5929
|
-
Schema.Union([
|
|
7643
|
+
Schema.Union([
|
|
7644
|
+
Schema.Struct({
|
|
7645
|
+
origin: Schema.optional(
|
|
7646
|
+
Schema.Union([
|
|
7647
|
+
Schema.Struct({
|
|
7648
|
+
disable: Schema.optional(Schema.Boolean),
|
|
7649
|
+
healthy: Schema.optional(
|
|
7650
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7651
|
+
),
|
|
7652
|
+
}),
|
|
7653
|
+
Schema.Null,
|
|
7654
|
+
]),
|
|
7655
|
+
),
|
|
7656
|
+
pool: Schema.optional(
|
|
7657
|
+
Schema.Union([
|
|
7658
|
+
Schema.Struct({
|
|
7659
|
+
disable: Schema.optional(Schema.Boolean),
|
|
7660
|
+
healthy: Schema.optional(
|
|
7661
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7662
|
+
),
|
|
7663
|
+
}),
|
|
7664
|
+
Schema.Null,
|
|
7665
|
+
]),
|
|
7666
|
+
),
|
|
7667
|
+
}),
|
|
7668
|
+
Schema.Null,
|
|
7669
|
+
]),
|
|
7670
|
+
),
|
|
7671
|
+
originSteering: Schema.optional(
|
|
7672
|
+
Schema.Union([
|
|
7673
|
+
Schema.Struct({
|
|
7674
|
+
policy: Schema.optional(
|
|
7675
|
+
Schema.Literals([
|
|
7676
|
+
"random",
|
|
7677
|
+
"hash",
|
|
7678
|
+
"least_outstanding_requests",
|
|
7679
|
+
"least_connections",
|
|
7680
|
+
]),
|
|
7681
|
+
),
|
|
7682
|
+
}),
|
|
7683
|
+
Schema.Null,
|
|
7684
|
+
]),
|
|
7685
|
+
),
|
|
7686
|
+
origins: Schema.optional(
|
|
7687
|
+
Schema.Array(
|
|
7688
|
+
Schema.Struct({
|
|
7689
|
+
address: Schema.optional(Schema.String),
|
|
7690
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
7691
|
+
header: Schema.optional(
|
|
7692
|
+
Schema.Struct({
|
|
7693
|
+
host: Schema.optional(Schema.Array(Schema.String)),
|
|
7694
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
7695
|
+
),
|
|
7696
|
+
name: Schema.optional(Schema.String),
|
|
7697
|
+
port: Schema.optional(Schema.Number),
|
|
7698
|
+
virtualNetworkId: Schema.optional(Schema.String),
|
|
7699
|
+
weight: Schema.optional(Schema.Number),
|
|
7700
|
+
}).pipe(
|
|
7701
|
+
Schema.encodeKeys({
|
|
7702
|
+
address: "address",
|
|
7703
|
+
enabled: "enabled",
|
|
7704
|
+
header: "header",
|
|
7705
|
+
name: "name",
|
|
7706
|
+
port: "port",
|
|
7707
|
+
virtualNetworkId: "virtual_network_id",
|
|
7708
|
+
weight: "weight",
|
|
7709
|
+
}),
|
|
7710
|
+
),
|
|
7711
|
+
),
|
|
5930
7712
|
),
|
|
5931
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
5932
|
-
origins: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
5933
7713
|
}).pipe(
|
|
5934
7714
|
Schema.encodeKeys({
|
|
5935
7715
|
checkRegions: "check_regions",
|
|
@@ -5968,10 +7748,10 @@ export interface PatchPoolResponse {
|
|
|
5968
7748
|
| "ME"
|
|
5969
7749
|
| "NAF"
|
|
5970
7750
|
| "SAF"
|
|
7751
|
+
| "SAS"
|
|
5971
7752
|
| "SEAS"
|
|
5972
7753
|
| "NEAS"
|
|
5973
7754
|
| "ALL_REGIONS"
|
|
5974
|
-
| "SAS"
|
|
5975
7755
|
)[]
|
|
5976
7756
|
| null;
|
|
5977
7757
|
createdOn?: string | null;
|
|
@@ -5984,7 +7764,12 @@ export interface PatchPoolResponse {
|
|
|
5984
7764
|
/** The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set. */
|
|
5985
7765
|
latitude?: number | null;
|
|
5986
7766
|
/** Configures load shedding policies and percentages for the pool. */
|
|
5987
|
-
loadShedding?:
|
|
7767
|
+
loadShedding?: {
|
|
7768
|
+
defaultPercent?: number | null;
|
|
7769
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
7770
|
+
sessionPercent?: number | null;
|
|
7771
|
+
sessionPolicy?: "hash" | null;
|
|
7772
|
+
} | null;
|
|
5988
7773
|
/** The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set. */
|
|
5989
7774
|
longitude?: number | null;
|
|
5990
7775
|
/** The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the */
|
|
@@ -6001,11 +7786,32 @@ export interface PatchPoolResponse {
|
|
|
6001
7786
|
/** This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status */
|
|
6002
7787
|
notificationEmail?: string | null;
|
|
6003
7788
|
/** Filter pool and origin health notifications by resource type or health status. Use null to reset. */
|
|
6004
|
-
notificationFilter?:
|
|
7789
|
+
notificationFilter?: {
|
|
7790
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
7791
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
7792
|
+
} | null;
|
|
6005
7793
|
/** Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity. */
|
|
6006
|
-
originSteering?:
|
|
7794
|
+
originSteering?: {
|
|
7795
|
+
policy?:
|
|
7796
|
+
| "random"
|
|
7797
|
+
| "hash"
|
|
7798
|
+
| "least_outstanding_requests"
|
|
7799
|
+
| "least_connections"
|
|
7800
|
+
| null;
|
|
7801
|
+
} | null;
|
|
6007
7802
|
/** The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy. */
|
|
6008
|
-
origins?:
|
|
7803
|
+
origins?:
|
|
7804
|
+
| {
|
|
7805
|
+
address?: string | null;
|
|
7806
|
+
disabledAt?: string | null;
|
|
7807
|
+
enabled?: boolean | null;
|
|
7808
|
+
header?: { host?: string[] | null } | null;
|
|
7809
|
+
name?: string | null;
|
|
7810
|
+
port?: number | null;
|
|
7811
|
+
virtualNetworkId?: string | null;
|
|
7812
|
+
weight?: number | null;
|
|
7813
|
+
}[]
|
|
7814
|
+
| null;
|
|
6009
7815
|
}
|
|
6010
7816
|
|
|
6011
7817
|
export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -6024,10 +7830,10 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6024
7830
|
"ME",
|
|
6025
7831
|
"NAF",
|
|
6026
7832
|
"SAF",
|
|
7833
|
+
"SAS",
|
|
6027
7834
|
"SEAS",
|
|
6028
7835
|
"NEAS",
|
|
6029
7836
|
"ALL_REGIONS",
|
|
6030
|
-
"SAS",
|
|
6031
7837
|
]),
|
|
6032
7838
|
),
|
|
6033
7839
|
Schema.Null,
|
|
@@ -6038,7 +7844,32 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6038
7844
|
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6039
7845
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
6040
7846
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6041
|
-
loadShedding: Schema.optional(
|
|
7847
|
+
loadShedding: Schema.optional(
|
|
7848
|
+
Schema.Union([
|
|
7849
|
+
Schema.Struct({
|
|
7850
|
+
defaultPercent: Schema.optional(
|
|
7851
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
7852
|
+
),
|
|
7853
|
+
defaultPolicy: Schema.optional(
|
|
7854
|
+
Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null]),
|
|
7855
|
+
),
|
|
7856
|
+
sessionPercent: Schema.optional(
|
|
7857
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
7858
|
+
),
|
|
7859
|
+
sessionPolicy: Schema.optional(
|
|
7860
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
7861
|
+
),
|
|
7862
|
+
}).pipe(
|
|
7863
|
+
Schema.encodeKeys({
|
|
7864
|
+
defaultPercent: "default_percent",
|
|
7865
|
+
defaultPolicy: "default_policy",
|
|
7866
|
+
sessionPercent: "session_percent",
|
|
7867
|
+
sessionPolicy: "session_policy",
|
|
7868
|
+
}),
|
|
7869
|
+
),
|
|
7870
|
+
Schema.Null,
|
|
7871
|
+
]),
|
|
7872
|
+
),
|
|
6042
7873
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6043
7874
|
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6044
7875
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -6052,11 +7883,96 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6052
7883
|
Schema.Union([Schema.String, Schema.Null]),
|
|
6053
7884
|
),
|
|
6054
7885
|
notificationFilter: Schema.optional(
|
|
6055
|
-
Schema.Union([
|
|
7886
|
+
Schema.Union([
|
|
7887
|
+
Schema.Struct({
|
|
7888
|
+
origin: Schema.optional(
|
|
7889
|
+
Schema.Union([
|
|
7890
|
+
Schema.Struct({
|
|
7891
|
+
disable: Schema.optional(
|
|
7892
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7893
|
+
),
|
|
7894
|
+
healthy: Schema.optional(
|
|
7895
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7896
|
+
),
|
|
7897
|
+
}),
|
|
7898
|
+
Schema.Null,
|
|
7899
|
+
]),
|
|
7900
|
+
),
|
|
7901
|
+
pool: Schema.optional(
|
|
7902
|
+
Schema.Union([
|
|
7903
|
+
Schema.Struct({
|
|
7904
|
+
disable: Schema.optional(
|
|
7905
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7906
|
+
),
|
|
7907
|
+
healthy: Schema.optional(
|
|
7908
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7909
|
+
),
|
|
7910
|
+
}),
|
|
7911
|
+
Schema.Null,
|
|
7912
|
+
]),
|
|
7913
|
+
),
|
|
7914
|
+
}),
|
|
7915
|
+
Schema.Null,
|
|
7916
|
+
]),
|
|
7917
|
+
),
|
|
7918
|
+
originSteering: Schema.optional(
|
|
7919
|
+
Schema.Union([
|
|
7920
|
+
Schema.Struct({
|
|
7921
|
+
policy: Schema.optional(
|
|
7922
|
+
Schema.Union([
|
|
7923
|
+
Schema.Literals([
|
|
7924
|
+
"random",
|
|
7925
|
+
"hash",
|
|
7926
|
+
"least_outstanding_requests",
|
|
7927
|
+
"least_connections",
|
|
7928
|
+
]),
|
|
7929
|
+
Schema.Null,
|
|
7930
|
+
]),
|
|
7931
|
+
),
|
|
7932
|
+
}),
|
|
7933
|
+
Schema.Null,
|
|
7934
|
+
]),
|
|
6056
7935
|
),
|
|
6057
|
-
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
6058
7936
|
origins: Schema.optional(
|
|
6059
|
-
Schema.Union([
|
|
7937
|
+
Schema.Union([
|
|
7938
|
+
Schema.Array(
|
|
7939
|
+
Schema.Struct({
|
|
7940
|
+
address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
7941
|
+
disabledAt: Schema.optional(
|
|
7942
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7943
|
+
),
|
|
7944
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
7945
|
+
header: Schema.optional(
|
|
7946
|
+
Schema.Union([
|
|
7947
|
+
Schema.Struct({
|
|
7948
|
+
host: Schema.optional(
|
|
7949
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
7950
|
+
),
|
|
7951
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
7952
|
+
Schema.Null,
|
|
7953
|
+
]),
|
|
7954
|
+
),
|
|
7955
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
7956
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
7957
|
+
virtualNetworkId: Schema.optional(
|
|
7958
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7959
|
+
),
|
|
7960
|
+
weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
7961
|
+
}).pipe(
|
|
7962
|
+
Schema.encodeKeys({
|
|
7963
|
+
address: "address",
|
|
7964
|
+
disabledAt: "disabled_at",
|
|
7965
|
+
enabled: "enabled",
|
|
7966
|
+
header: "header",
|
|
7967
|
+
name: "name",
|
|
7968
|
+
port: "port",
|
|
7969
|
+
virtualNetworkId: "virtual_network_id",
|
|
7970
|
+
weight: "weight",
|
|
7971
|
+
}),
|
|
7972
|
+
),
|
|
7973
|
+
),
|
|
7974
|
+
Schema.Null,
|
|
7975
|
+
]),
|
|
6060
7976
|
),
|
|
6061
7977
|
})
|
|
6062
7978
|
.pipe(
|
|
@@ -6171,10 +8087,10 @@ export interface BulkPatchPoolsResponse {
|
|
|
6171
8087
|
| "ME"
|
|
6172
8088
|
| "NAF"
|
|
6173
8089
|
| "SAF"
|
|
8090
|
+
| "SAS"
|
|
6174
8091
|
| "SEAS"
|
|
6175
8092
|
| "NEAS"
|
|
6176
8093
|
| "ALL_REGIONS"
|
|
6177
|
-
| "SAS"
|
|
6178
8094
|
)[]
|
|
6179
8095
|
| null;
|
|
6180
8096
|
createdOn?: string | null;
|
|
@@ -6182,7 +8098,12 @@ export interface BulkPatchPoolsResponse {
|
|
|
6182
8098
|
disabledAt?: string | null;
|
|
6183
8099
|
enabled?: boolean | null;
|
|
6184
8100
|
latitude?: number | null;
|
|
6185
|
-
loadShedding?:
|
|
8101
|
+
loadShedding?: {
|
|
8102
|
+
defaultPercent?: number | null;
|
|
8103
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
8104
|
+
sessionPercent?: number | null;
|
|
8105
|
+
sessionPolicy?: "hash" | null;
|
|
8106
|
+
} | null;
|
|
6186
8107
|
longitude?: number | null;
|
|
6187
8108
|
minimumOrigins?: number | null;
|
|
6188
8109
|
modifiedOn?: string | null;
|
|
@@ -6191,9 +8112,30 @@ export interface BulkPatchPoolsResponse {
|
|
|
6191
8112
|
name?: string | null;
|
|
6192
8113
|
networks?: string[] | null;
|
|
6193
8114
|
notificationEmail?: string | null;
|
|
6194
|
-
notificationFilter?:
|
|
6195
|
-
|
|
6196
|
-
|
|
8115
|
+
notificationFilter?: {
|
|
8116
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
8117
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
8118
|
+
} | null;
|
|
8119
|
+
originSteering?: {
|
|
8120
|
+
policy?:
|
|
8121
|
+
| "random"
|
|
8122
|
+
| "hash"
|
|
8123
|
+
| "least_outstanding_requests"
|
|
8124
|
+
| "least_connections"
|
|
8125
|
+
| null;
|
|
8126
|
+
} | null;
|
|
8127
|
+
origins?:
|
|
8128
|
+
| {
|
|
8129
|
+
address?: string | null;
|
|
8130
|
+
disabledAt?: string | null;
|
|
8131
|
+
enabled?: boolean | null;
|
|
8132
|
+
header?: { host?: string[] | null } | null;
|
|
8133
|
+
name?: string | null;
|
|
8134
|
+
port?: number | null;
|
|
8135
|
+
virtualNetworkId?: string | null;
|
|
8136
|
+
weight?: number | null;
|
|
8137
|
+
}[]
|
|
8138
|
+
| null;
|
|
6197
8139
|
}[];
|
|
6198
8140
|
}
|
|
6199
8141
|
|
|
@@ -6216,10 +8158,10 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
6216
8158
|
"ME",
|
|
6217
8159
|
"NAF",
|
|
6218
8160
|
"SAF",
|
|
8161
|
+
"SAS",
|
|
6219
8162
|
"SEAS",
|
|
6220
8163
|
"NEAS",
|
|
6221
8164
|
"ALL_REGIONS",
|
|
6222
|
-
"SAS",
|
|
6223
8165
|
]),
|
|
6224
8166
|
),
|
|
6225
8167
|
Schema.Null,
|
|
@@ -6233,7 +8175,33 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
6233
8175
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
6234
8176
|
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6235
8177
|
loadShedding: Schema.optional(
|
|
6236
|
-
Schema.Union([
|
|
8178
|
+
Schema.Union([
|
|
8179
|
+
Schema.Struct({
|
|
8180
|
+
defaultPercent: Schema.optional(
|
|
8181
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8182
|
+
),
|
|
8183
|
+
defaultPolicy: Schema.optional(
|
|
8184
|
+
Schema.Union([
|
|
8185
|
+
Schema.Literals(["random", "hash"]),
|
|
8186
|
+
Schema.Null,
|
|
8187
|
+
]),
|
|
8188
|
+
),
|
|
8189
|
+
sessionPercent: Schema.optional(
|
|
8190
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8191
|
+
),
|
|
8192
|
+
sessionPolicy: Schema.optional(
|
|
8193
|
+
Schema.Union([Schema.Literal("hash"), Schema.Null]),
|
|
8194
|
+
),
|
|
8195
|
+
}).pipe(
|
|
8196
|
+
Schema.encodeKeys({
|
|
8197
|
+
defaultPercent: "default_percent",
|
|
8198
|
+
defaultPolicy: "default_policy",
|
|
8199
|
+
sessionPercent: "session_percent",
|
|
8200
|
+
sessionPolicy: "session_policy",
|
|
8201
|
+
}),
|
|
8202
|
+
),
|
|
8203
|
+
Schema.Null,
|
|
8204
|
+
]),
|
|
6237
8205
|
),
|
|
6238
8206
|
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6239
8207
|
minimumOrigins: Schema.optional(
|
|
@@ -6252,13 +8220,109 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
6252
8220
|
Schema.Union([Schema.String, Schema.Null]),
|
|
6253
8221
|
),
|
|
6254
8222
|
notificationFilter: Schema.optional(
|
|
6255
|
-
Schema.Union([
|
|
8223
|
+
Schema.Union([
|
|
8224
|
+
Schema.Struct({
|
|
8225
|
+
origin: Schema.optional(
|
|
8226
|
+
Schema.Union([
|
|
8227
|
+
Schema.Struct({
|
|
8228
|
+
disable: Schema.optional(
|
|
8229
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8230
|
+
),
|
|
8231
|
+
healthy: Schema.optional(
|
|
8232
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8233
|
+
),
|
|
8234
|
+
}),
|
|
8235
|
+
Schema.Null,
|
|
8236
|
+
]),
|
|
8237
|
+
),
|
|
8238
|
+
pool: Schema.optional(
|
|
8239
|
+
Schema.Union([
|
|
8240
|
+
Schema.Struct({
|
|
8241
|
+
disable: Schema.optional(
|
|
8242
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8243
|
+
),
|
|
8244
|
+
healthy: Schema.optional(
|
|
8245
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8246
|
+
),
|
|
8247
|
+
}),
|
|
8248
|
+
Schema.Null,
|
|
8249
|
+
]),
|
|
8250
|
+
),
|
|
8251
|
+
}),
|
|
8252
|
+
Schema.Null,
|
|
8253
|
+
]),
|
|
6256
8254
|
),
|
|
6257
8255
|
originSteering: Schema.optional(
|
|
6258
|
-
Schema.Union([
|
|
8256
|
+
Schema.Union([
|
|
8257
|
+
Schema.Struct({
|
|
8258
|
+
policy: Schema.optional(
|
|
8259
|
+
Schema.Union([
|
|
8260
|
+
Schema.Literals([
|
|
8261
|
+
"random",
|
|
8262
|
+
"hash",
|
|
8263
|
+
"least_outstanding_requests",
|
|
8264
|
+
"least_connections",
|
|
8265
|
+
]),
|
|
8266
|
+
Schema.Null,
|
|
8267
|
+
]),
|
|
8268
|
+
),
|
|
8269
|
+
}),
|
|
8270
|
+
Schema.Null,
|
|
8271
|
+
]),
|
|
6259
8272
|
),
|
|
6260
8273
|
origins: Schema.optional(
|
|
6261
|
-
Schema.Union([
|
|
8274
|
+
Schema.Union([
|
|
8275
|
+
Schema.Array(
|
|
8276
|
+
Schema.Struct({
|
|
8277
|
+
address: Schema.optional(
|
|
8278
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8279
|
+
),
|
|
8280
|
+
disabledAt: Schema.optional(
|
|
8281
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8282
|
+
),
|
|
8283
|
+
enabled: Schema.optional(
|
|
8284
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8285
|
+
),
|
|
8286
|
+
header: Schema.optional(
|
|
8287
|
+
Schema.Union([
|
|
8288
|
+
Schema.Struct({
|
|
8289
|
+
host: Schema.optional(
|
|
8290
|
+
Schema.Union([
|
|
8291
|
+
Schema.Array(Schema.String),
|
|
8292
|
+
Schema.Null,
|
|
8293
|
+
]),
|
|
8294
|
+
),
|
|
8295
|
+
}).pipe(Schema.encodeKeys({ host: "Host" })),
|
|
8296
|
+
Schema.Null,
|
|
8297
|
+
]),
|
|
8298
|
+
),
|
|
8299
|
+
name: Schema.optional(
|
|
8300
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8301
|
+
),
|
|
8302
|
+
port: Schema.optional(
|
|
8303
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8304
|
+
),
|
|
8305
|
+
virtualNetworkId: Schema.optional(
|
|
8306
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8307
|
+
),
|
|
8308
|
+
weight: Schema.optional(
|
|
8309
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8310
|
+
),
|
|
8311
|
+
}).pipe(
|
|
8312
|
+
Schema.encodeKeys({
|
|
8313
|
+
address: "address",
|
|
8314
|
+
disabledAt: "disabled_at",
|
|
8315
|
+
enabled: "enabled",
|
|
8316
|
+
header: "header",
|
|
8317
|
+
name: "name",
|
|
8318
|
+
port: "port",
|
|
8319
|
+
virtualNetworkId: "virtual_network_id",
|
|
8320
|
+
weight: "weight",
|
|
8321
|
+
}),
|
|
8322
|
+
),
|
|
8323
|
+
),
|
|
8324
|
+
Schema.Null,
|
|
8325
|
+
]),
|
|
6262
8326
|
),
|
|
6263
8327
|
}).pipe(
|
|
6264
8328
|
Schema.encodeKeys({
|
|
@@ -6317,10 +8381,10 @@ export const bulkPatchPools: API.PaginatedOperationMethod<
|
|
|
6317
8381
|
| "ME"
|
|
6318
8382
|
| "NAF"
|
|
6319
8383
|
| "SAF"
|
|
8384
|
+
| "SAS"
|
|
6320
8385
|
| "SEAS"
|
|
6321
8386
|
| "NEAS"
|
|
6322
8387
|
| "ALL_REGIONS"
|
|
6323
|
-
| "SAS"
|
|
6324
8388
|
)[]
|
|
6325
8389
|
| null;
|
|
6326
8390
|
createdOn?: string | null;
|
|
@@ -6328,7 +8392,12 @@ export const bulkPatchPools: API.PaginatedOperationMethod<
|
|
|
6328
8392
|
disabledAt?: string | null;
|
|
6329
8393
|
enabled?: boolean | null;
|
|
6330
8394
|
latitude?: number | null;
|
|
6331
|
-
loadShedding?:
|
|
8395
|
+
loadShedding?: {
|
|
8396
|
+
defaultPercent?: number | null;
|
|
8397
|
+
defaultPolicy?: "random" | "hash" | null;
|
|
8398
|
+
sessionPercent?: number | null;
|
|
8399
|
+
sessionPolicy?: "hash" | null;
|
|
8400
|
+
} | null;
|
|
6332
8401
|
longitude?: number | null;
|
|
6333
8402
|
minimumOrigins?: number | null;
|
|
6334
8403
|
modifiedOn?: string | null;
|
|
@@ -6337,9 +8406,30 @@ export const bulkPatchPools: API.PaginatedOperationMethod<
|
|
|
6337
8406
|
name?: string | null;
|
|
6338
8407
|
networks?: string[] | null;
|
|
6339
8408
|
notificationEmail?: string | null;
|
|
6340
|
-
notificationFilter?:
|
|
6341
|
-
|
|
6342
|
-
|
|
8409
|
+
notificationFilter?: {
|
|
8410
|
+
origin?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
8411
|
+
pool?: { disable?: boolean | null; healthy?: boolean | null } | null;
|
|
8412
|
+
} | null;
|
|
8413
|
+
originSteering?: {
|
|
8414
|
+
policy?:
|
|
8415
|
+
| "random"
|
|
8416
|
+
| "hash"
|
|
8417
|
+
| "least_outstanding_requests"
|
|
8418
|
+
| "least_connections"
|
|
8419
|
+
| null;
|
|
8420
|
+
} | null;
|
|
8421
|
+
origins?:
|
|
8422
|
+
| {
|
|
8423
|
+
address?: string | null;
|
|
8424
|
+
disabledAt?: string | null;
|
|
8425
|
+
enabled?: boolean | null;
|
|
8426
|
+
header?: { host?: string[] | null } | null;
|
|
8427
|
+
name?: string | null;
|
|
8428
|
+
port?: number | null;
|
|
8429
|
+
virtualNetworkId?: string | null;
|
|
8430
|
+
weight?: number | null;
|
|
8431
|
+
}[]
|
|
8432
|
+
| null;
|
|
6343
8433
|
},
|
|
6344
8434
|
BulkPatchPoolsError,
|
|
6345
8435
|
Credentials | HttpClient.HttpClient
|
|
@@ -6506,7 +8596,7 @@ export const CreatePoolHealthRequest =
|
|
|
6506
8596
|
expectedBody: Schema.optional(Schema.String),
|
|
6507
8597
|
expectedCodes: Schema.optional(Schema.String),
|
|
6508
8598
|
followRedirects: Schema.optional(Schema.Boolean),
|
|
6509
|
-
header: Schema.optional(Schema.
|
|
8599
|
+
header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
6510
8600
|
interval: Schema.optional(Schema.Number),
|
|
6511
8601
|
method: Schema.optional(Schema.String),
|
|
6512
8602
|
path: Schema.optional(Schema.String),
|
|
@@ -6557,7 +8647,9 @@ export interface CreatePoolHealthResponse {
|
|
|
6557
8647
|
|
|
6558
8648
|
export const CreatePoolHealthResponse =
|
|
6559
8649
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6560
|
-
pools: Schema.optional(
|
|
8650
|
+
pools: Schema.optional(
|
|
8651
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
8652
|
+
),
|
|
6561
8653
|
previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6562
8654
|
})
|
|
6563
8655
|
.pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
|
|
@@ -6693,8 +8785,9 @@ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6693
8785
|
|
|
6694
8786
|
export type GetPreviewResponse = Record<string, unknown>;
|
|
6695
8787
|
|
|
6696
|
-
export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
6697
|
-
|
|
8788
|
+
export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Record(
|
|
8789
|
+
Schema.String,
|
|
8790
|
+
Schema.Unknown,
|
|
6698
8791
|
).pipe(
|
|
6699
8792
|
T.ResponsePath("result"),
|
|
6700
8793
|
) as unknown as Schema.Schema<GetPreviewResponse>;
|