Skip to content

Commit

Permalink
feat(pagerules): rename namespace to page_rules (#3723)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 11, 2024
1 parent 68d683a commit f2a4111
Show file tree
Hide file tree
Showing 6 changed files with 1,098 additions and 1,097 deletions.
22 changes: 11 additions & 11 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1925,26 1925,26 @@ Methods:
- <code title="put /zones/{zone_id}/origin_tls_client_auth/settings">client.OriginTLSClientAuth.Settings.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth">origin_tls_client_auth</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingUpdateParams">SettingUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth">origin_tls_client_auth</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingUpdateResponse">SettingUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/origin_tls_client_auth/settings">client.OriginTLSClientAuth.Settings.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth">origin_tls_client_auth</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingGetParams">SettingGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth">origin_tls_client_auth</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth#SettingGetResponse">SettingGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Pagerules
# PageRules

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#TargetParam">TargetParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#TargetParam">TargetParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#Target">Target</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleDeleteResponse">PageruleDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#Target">Target</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleDeleteResponse">PageRuleDeleteResponse</a>

Methods:

- <code title="post /zones/{zone_id}/pagerules">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleNewParams">PageruleNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/pagerules/{pagerule_id}">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleUpdateParams">PageruleUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleListParams">PageruleListParams</a>) ([]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/pagerules/{pagerule_id}">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleDeleteParams">PageruleDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleDeleteResponse">PageruleDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/pagerules/{pagerule_id}">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleEditParams">PageruleEditParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules/{pagerule_id}">client.Pagerules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageruleGetParams">PageruleGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules">pagerules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/pagerules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /zones/{zone_id}/pagerules">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleNewParams">PageRuleNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleUpdateParams">PageRuleUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleListParams">PageRuleListParams</a>) ([]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleDeleteParams">PageRuleDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleDeleteResponse">PageRuleDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleEditParams">PageRuleEditParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRuleGetParams">PageRuleGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# RateLimits

Expand Down
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 62,8 @@ import (
"github.com/cloudflare/cloudflare-go/v3/origin_ca_certificates"
"github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption"
"github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth"
"github.com/cloudflare/cloudflare-go/v3/page_rules"
"github.com/cloudflare/cloudflare-go/v3/page_shield"
"github.com/cloudflare/cloudflare-go/v3/pagerules"
"github.com/cloudflare/cloudflare-go/v3/pages"
"github.com/cloudflare/cloudflare-go/v3/queues"
"github.com/cloudflare/cloudflare-go/v3/r2"
Expand Down Expand Up @@ -127,7 127,7 @@ type Client struct {
Logpush *logpush.LogpushService
Logs *logs.LogService
OriginTLSClientAuth *origin_tls_client_auth.OriginTLSClientAuthService
Pagerules *pagerules.PageruleService
PageRules *page_rules.PageRuleService
RateLimits *rate_limits.RateLimitService
WaitingRooms *waiting_rooms.WaitingRoomService
Web3 *web3.Web3Service
Expand Down Expand Up @@ -236,7 236,7 @@ func NewClient(opts ...option.RequestOption) (r *Client) {
r.Logpush = logpush.NewLogpushService(opts...)
r.Logs = logs.NewLogService(opts...)
r.OriginTLSClientAuth = origin_tls_client_auth.NewOriginTLSClientAuthService(opts...)
r.Pagerules = pagerules.NewPageruleService(opts...)
r.PageRules = page_rules.NewPageRuleService(opts...)
r.RateLimits = rate_limits.NewRateLimitService(opts...)
r.WaitingRooms = waiting_rooms.NewWaitingRoomService(opts...)
r.Web3 = web3.NewWeb3Service(opts...)
Expand Down
2 changes: 1 addition & 1 deletion pagerules/aliases.go → page_rules/aliases.go
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package pagerules
package page_rules

import (
"github.com/cloudflare/cloudflare-go/v3/internal/apierror"
Expand Down
Loading

0 comments on commit f2a4111

Please sign in to comment.