Skip to content

Commit e6adc0a

Browse files
feat: Merge branch 'davis/PINGORA-2658' into 'main'
feat: PINGORA-2658 | Add Smart Shield to stainless config See merge request cloudflare/sdks/cloudflare-config!144
1 parent 92947e6 commit e6adc0a

105 files changed

Lines changed: 4063 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1831
1+
configured_endpoints: 1839
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-436dae5b63cd3641097063829d648648b983691f35bac8d179d970741190e128.yml
33
openapi_spec_hash: 44627cc45ee6623f37d3b9619b124ea5
4-
config_hash: 8ff73666f1faa9876bbdf71690c19bd6
4+
config_hash: 59212900ef3970ac3c41ca2537fabe7b

‎abuse_reports/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎accounts/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎acm/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎addressing/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎ai/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎ai_gateway/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎alerting/aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎aliases.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ type ResponseInfo = shared.ResponseInfo
274274
// This is an alias to an internal type.
275275
type ResponseInfoSource = shared.ResponseInfoSource
276276

277+
// This is an alias to an internal type.
278+
type ResponseInfoParam = shared.ResponseInfoParam
279+
280+
// This is an alias to an internal type.
281+
type ResponseInfoSourceParam = shared.ResponseInfoSourceParam
282+
277283
// This is an alias to an internal type.
278284
type Role = shared.Role
279285

‎api.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#CertificateRequestType">CertificateRequestType</a>
66
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#PermissionGrantParam">PermissionGrantParam</a>
77
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#RatePlanParam">RatePlanParam</a>
8+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#ResponseInfoParam">ResponseInfoParam</a>
89
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#RoleParam">RoleParam</a>
910
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#SortDirection">SortDirection</a>
1011
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared">shared</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/shared#SubscriptionParam">SubscriptionParam</a>
@@ -2078,6 +2079,30 @@ Methods:
20782079
- <code title="put /zones/{zone_id}/rate_limits/{rate_limit_id}">client.RateLimits.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimitService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rateLimitID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits">rate_limits</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimitEditParams">RateLimitEditParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits">rate_limits</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimit">RateLimit</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
20792080
- <code title="get /zones/{zone_id}/rate_limits/{rate_limit_id}">client.RateLimits.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimitService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rateLimitID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits">rate_limits</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimitGetParams">RateLimitGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits">rate_limits</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rate_limits#RateLimit">RateLimit</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
20802081

2082+
# SmartShield
2083+
2084+
Response Types:
2085+
2086+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateResponse">SmartShieldUpdateResponse</a>
2087+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldNewHealthcheckResponse">SmartShieldNewHealthcheckResponse</a>
2088+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldDeleteHealthcheckResponse">SmartShieldDeleteHealthcheckResponse</a>
2089+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldEditHealthcheckResponse">SmartShieldEditHealthcheckResponse</a>
2090+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetResponse">SmartShieldGetResponse</a>
2091+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetHealthcheckResponse">SmartShieldGetHealthcheckResponse</a>
2092+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldListHealthchecksResponse">SmartShieldListHealthchecksResponse</a>
2093+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateHealthcheckResponse">SmartShieldUpdateHealthcheckResponse</a>
2094+
2095+
Methods:
2096+
2097+
- <code title="patch /zones/{zone_id}/smart_shield">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.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/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateParams">SmartShieldUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateResponse">SmartShieldUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2098+
- <code title="post /zones/{zone_id}/smart_shield/healthchecks">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.NewHealthcheck">NewHealthcheck</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/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldNewHealthcheckParams">SmartShieldNewHealthcheckParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldNewHealthcheckResponse">SmartShieldNewHealthcheckResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2099+
- <code title="delete /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.DeleteHealthcheck">DeleteHealthcheck</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, healthcheckID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldDeleteHealthcheckParams">SmartShieldDeleteHealthcheckParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldDeleteHealthcheckResponse">SmartShieldDeleteHealthcheckResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2100+
- <code title="patch /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.EditHealthcheck">EditHealthcheck</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, healthcheckID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldEditHealthcheckParams">SmartShieldEditHealthcheckParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldEditHealthcheckResponse">SmartShieldEditHealthcheckResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2101+
- <code title="get /zones/{zone_id}/smart_shield">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.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/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetParams">SmartShieldGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetResponse">SmartShieldGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2102+
- <code title="get /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.GetHealthcheck">GetHealthcheck</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, healthcheckID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetHealthcheckParams">SmartShieldGetHealthcheckParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldGetHealthcheckResponse">SmartShieldGetHealthcheckResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2103+
- <code title="get /zones/{zone_id}/smart_shield/healthchecks">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.ListHealthchecks">ListHealthchecks</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/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldListHealthchecksParams">SmartShieldListHealthchecksParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldListHealthchecksResponse">SmartShieldListHealthchecksResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2104+
- <code title="put /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.SmartShield.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldService.UpdateHealthcheck">UpdateHealthcheck</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, healthcheckID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateHealthcheckParams">SmartShieldUpdateHealthcheckParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield">smart_shield</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/smart_shield#SmartShieldUpdateHealthcheckResponse">SmartShieldUpdateHealthcheckResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2105+
20812106
# WaitingRooms
20822107

20832108
Params Types:

0 commit comments

Comments
 (0)