Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 27, 2024
1 parent f87cfc5 commit bcfa71f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/resources/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../pagi
export class Filters extends APIResource {
/**
* Creates one or more filters.
*
* @deprecated Filters are being deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
*/
create(
zoneIdentifier: string,
Expand All @@ -23,6 +25,8 @@ export class Filters extends APIResource {

/**
* Updates an existing filter.
*
* @deprecated Filters are being deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
*/
update(
zoneIdentifier: string,
Expand All @@ -40,6 +44,8 @@ export class Filters extends APIResource {
/**
* Fetches filters in a zone. You can filter the results using several optional
* parameters.
*
* @deprecated Filters are being deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
*/
list(
zoneIdentifier: string,
Expand All @@ -66,6 +72,8 @@ export class Filters extends APIResource {

/**
* Deletes an existing filter.
*
* @deprecated Filters are being deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
*/
delete(zoneIdentifier: string, id: string, options?: Core.RequestOptions): Core.APIPromise<FirewallFilter> {
return (
Expand All @@ -77,6 +85,8 @@ export class Filters extends APIResource {

/**
* Fetches the details of a filter.
*
* @deprecated Filters are being deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
*/
get(zoneIdentifier: string, id: string, options?: Core.RequestOptions): Core.APIPromise<FirewallFilter> {
return (
Expand Down

0 comments on commit bcfa71f

Please sign in to comment.