Skip to content

Commit 2f9bdff

Browse files
feat(api): api update
1 parent c01cf32 commit 2f9bdff

File tree

100 files changed

+1977
-21
lines changed

Some content is hidden

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

100 files changed

+1977
-21
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1775
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3642238a0fcdc091efbca5515455c92c73e4d66478c4dca432a6109fa97e130f.yml
3-
openapi_spec_hash: 24a2895c05baa9100b3cda54d3ab9e19
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6cb6b87f45c66e5a30eb913c34f701a5609b2761a5cc0c6ae3a9dd56632ab4cc.yml
3+
openapi_spec_hash: 805bdec318dc4e872b6bed9e2789a4f0
44
config_hash: 4a37da9893560914a7ac1a75cc01202a

abuse_reports/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

accounts/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

accounts/token_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
4848
Value: cloudflare.F("value"),
4949
}),
5050
}}),
51-
Resources: cloudflare.F(map[string]interface{}{
52-
"object": "bar",
53-
"string": "bar",
54-
}),
51+
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesMapParam(map[string]string{
52+
"foo": "string",
53+
})),
5554
}}),
5655
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
5756
RequestIP: cloudflare.F(accounts.TokenNewParamsConditionRequestIP{
@@ -115,10 +114,9 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
115114
Value: cloudflare.F("value"),
116115
}),
117116
}}),
118-
Resources: cloudflare.F(map[string]interface{}{
119-
"object": "bar",
120-
"string": "bar",
121-
}),
117+
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesMapParam(map[string]string{
118+
"foo": "string",
119+
})),
122120
}}),
123121
Status: cloudflare.F(shared.TokenStatusActive),
124122
},

acm/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

addressing/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

ai/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

ai_gateway/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

alerting/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A list of resource names that the policy applies to.
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// Map of nested resource permissions
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A list of resource names that the policy applies to.
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// Map of nested resource permissions
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

0 commit comments

Comments
 (0)