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): api update #3727

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1460
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31e83e551de81cf50b30c8dda5b5b8f3f7e7034ad82af7fb6caa67f76cae7e9d.yml
configured_endpoints: 1455
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml
10 changes: 0 additions & 10 deletions accounts/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
4 changes: 2 additions & 2 deletions accounts/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (r tokenNewResponseJSON) RawJSON() string {

type TokenNewResponseCondition struct {
// Client IP restrictions.
RequestIP TokenNewResponseConditionRequestIP `json:"request.ip"`
RequestIP TokenNewResponseConditionRequestIP `json:"request_ip"`
JSON tokenNewResponseConditionJSON `json:"-"`
}

Expand Down Expand Up @@ -375,7 +375,7 @@ func (r TokenNewParams) MarshalJSON() (data []byte, err error) {

type TokenNewParamsCondition struct {
// Client IP restrictions.
RequestIP param.Field[TokenNewParamsConditionRequestIP] `json:"request.ip"`
RequestIP param.Field[TokenNewParamsConditionRequestIP] `json:"request_ip"`
}

func (r TokenNewParamsCondition) MarshalJSON() (data []byte, err error) {
Expand Down
12 changes: 6 additions & 6 deletions accounts/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
Value: cloudflare.F("value"),
}),
}}),
Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
Resources: cloudflare.F(map[string]string{
"com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*",
"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
}),
}}),
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
Expand Down Expand Up @@ -103,9 +103,9 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
Value: cloudflare.F("value"),
}),
}}),
Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
Resources: cloudflare.F(map[string]string{
"com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*",
"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
}),
}}),
Status: cloudflare.F(shared.TokenStatusActive),
Expand Down
10 changes: 0 additions & 10 deletions acm/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions addressing/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions ai_gateway/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions alerting/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
30 changes: 0 additions & 30 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4493,14 +4493,6 @@ Methods:

### FleetStatus

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DeviceFleetStatusGetResponse">DeviceFleetStatusGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/devices/{device_id}/fleet-status/live">client.ZeroTrust.Devices.FleetStatus.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DeviceFleetStatusService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, deviceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DeviceFleetStatusGetParams">DeviceFleetStatusGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DeviceFleetStatusGetResponse">DeviceFleetStatusGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Policies

Params Types:
Expand Down Expand Up @@ -5167,32 +5159,10 @@ Response Types:

### Commands

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewResponse">DEXCommandNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListResponse">DEXCommandListResponse</a>

Methods:

- <code title="post /accounts/{account_id}/commands">client.ZeroTrust.DEX.Commands.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandService.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/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewParams">DEXCommandNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewResponse">DEXCommandNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/commands">client.ZeroTrust.DEX.Commands.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandService.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/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListParams">DEXCommandListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/packages/pagination#V4PagePagination">V4PagePagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListResponse">DEXCommandListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### Downloads

Methods:

- <code title="get /accounts/{account_id}/commands/{command_id}/downloads/{filename}">client.ZeroTrust.DEX.Commands.Downloads.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandDownloadService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, commandID <a href="https://pkg.go.dev/builtin#string">string</a>, filename <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandDownloadGetParams">DEXCommandDownloadGetParams</a>) (http.Response, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### Quota

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetResponse">DEXCommandQuotaGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/commands/quota">client.ZeroTrust.DEX.Commands.Quota.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaService.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/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetParams">DEXCommandQuotaGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetResponse">DEXCommandQuotaGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Colos

Response Types:
Expand Down
10 changes: 0 additions & 10 deletions api_gateway/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions argo/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions audit_logs/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions billing/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions bot_management/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
10 changes: 0 additions & 10 deletions botnet_feed/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResources = shared.TokenPolicyResources

// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam

Expand All @@ -376,11 +371,6 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

// A list of resource names that the policy applies to.
//
// This is an alias to an internal type.
type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam

// The token value.
//
// This is an alias to an internal type.
Expand Down
Loading