Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #669

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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