Skip to content

Commit 0a3005b

Browse files
feat(api): OpenAPI spec update via Stainless API (#219)
1 parent 779382e commit 0a3005b

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

src/resources/dns/firewall/firewall.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ export interface DNSFirewall {
139139
*/
140140
negative_cache_ttl?: number | null;
141141

142-
/**
143-
* @deprecated: Deprecated alias for "upstream_ips".
144-
*/
145-
origin_ips?: unknown;
146-
147142
/**
148143
* Ratelimit in queries per second per datacenter (applies to DNS queries sent to
149144
* the upstream nameservers configured on the cluster).
@@ -168,11 +163,6 @@ export namespace DNSFirewall {
168163
*/
169164
enabled?: boolean;
170165

171-
/**
172-
* @deprecated: Deprecated alias for "only_when_upstream_unhealthy".
173-
*/
174-
only_when_origin_unhealthy?: unknown;
175-
176166
/**
177167
* Only mitigate attacks when upstream servers seem unhealthy.
178168
*/
@@ -234,11 +224,6 @@ export interface FirewallCreateParams {
234224
*/
235225
negative_cache_ttl?: number | null;
236226

237-
/**
238-
* Body param: Deprecated alias for "upstream_ips".
239-
*/
240-
origin_ips?: unknown;
241-
242227
/**
243228
* Body param: Ratelimit in queries per second per datacenter (applies to DNS
244229
* queries sent to the upstream nameservers configured on the cluster).
@@ -263,11 +248,6 @@ export namespace FirewallCreateParams {
263248
*/
264249
enabled?: boolean;
265250

266-
/**
267-
* @deprecated: Deprecated alias for "only_when_upstream_unhealthy".
268-
*/
269-
only_when_origin_unhealthy?: unknown;
270-
271251
/**
272252
* Only mitigate attacks when upstream servers seem unhealthy.
273253
*/
@@ -341,11 +321,6 @@ export interface FirewallEditParams {
341321
*/
342322
negative_cache_ttl?: number | null;
343323

344-
/**
345-
* Body param: Deprecated alias for "upstream_ips".
346-
*/
347-
origin_ips?: unknown;
348-
349324
/**
350325
* Body param: Ratelimit in queries per second per datacenter (applies to DNS
351326
* queries sent to the upstream nameservers configured on the cluster).
@@ -370,11 +345,6 @@ export namespace FirewallEditParams {
370345
*/
371346
enabled?: boolean;
372347

373-
/**
374-
* @deprecated: Deprecated alias for "only_when_upstream_unhealthy".
375-
*/
376-
only_when_origin_unhealthy?: unknown;
377-
378348
/**
379349
* Only mitigate attacks when upstream servers seem unhealthy.
380350
*/

tests/api-resources/dns/firewall/firewall.test.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,12 @@ describe('resource firewall', () => {
3232
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3333
name: 'My Awesome DNS Firewall cluster',
3434
upstream_ips: ['192.0.2.1', '198.51.100.1', '2001:DB8:100::CF'],
35-
attack_mitigation: {
36-
enabled: true,
37-
only_when_origin_unhealthy: {},
38-
only_when_upstream_unhealthy: false,
39-
},
35+
attack_mitigation: { enabled: true, only_when_upstream_unhealthy: false },
4036
deprecate_any_requests: true,
4137
ecs_fallback: false,
4238
maximum_cache_ttl: 900,
4339
minimum_cache_ttl: 60,
4440
negative_cache_ttl: 900,
45-
origin_ips: {},
4641
ratelimit: 600,
4742
retries: 2,
4843
});
@@ -122,13 +117,8 @@ describe('resource firewall', () => {
122117
minimum_cache_ttl: 60,
123118
name: 'My Awesome DNS Firewall cluster',
124119
upstream_ips: ['192.0.2.1', '198.51.100.1', '2001:DB8:100::CF'],
125-
attack_mitigation: {
126-
enabled: true,
127-
only_when_origin_unhealthy: {},
128-
only_when_upstream_unhealthy: false,
129-
},
120+
attack_mitigation: { enabled: true, only_when_upstream_unhealthy: false },
130121
negative_cache_ttl: 900,
131-
origin_ips: {},
132122
ratelimit: 600,
133123
retries: 2,
134124
});

0 commit comments

Comments
 (0)