Skip to content

Commit 16f5c2a

Browse files
feat(api): api update
1 parent 48d6106 commit 16f5c2a

File tree

101 files changed

+802
-1002
lines changed

Some content is hidden

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

101 files changed

+802
-1002
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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d533d4e934a66ddbb480577a08bf932947c053f8a5060c4e5a3fae34f405fdc8.yml
3-
openapi_spec_hash: e7921ba2e6f51641f1bd5ea80ed8de04
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07850c05f5faee9033ffe4970b3e0a2368458141d05da9b761a534f8195e6e6d.yml
3+
openapi_spec_hash: 69b3076f1524a788b18a81893fee1ee3
44
config_hash: 284c4178d08f75d8c8b29f275948a8fd

abuse_reports/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

accounts/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

accounts/token_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
4848
Value: cloudflare.F("value"),
4949
}),
5050
}}),
51-
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesIAMStringResourceParam(map[string]string{
52-
"foo": "string",
53-
})),
51+
Resources: cloudflare.F(map[string]shared.TokenPolicyResourcesUnionParam{
52+
"foo": shared.UnionString("string"),
53+
}),
5454
}}),
5555
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
5656
RequestIP: cloudflare.F(accounts.TokenNewParamsConditionRequestIP{
@@ -114,9 +114,9 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
114114
Value: cloudflare.F("value"),
115115
}),
116116
}}),
117-
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesIAMStringResourceParam(map[string]string{
118-
"foo": "string",
119-
})),
117+
Resources: cloudflare.F(map[string]shared.TokenPolicyResourcesUnionParam{
118+
"foo": shared.UnionString("string"),
119+
}),
120120
}}),
121121
Status: cloudflare.F(shared.TokenStatusActive),
122122
},

acm/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

addressing/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

ai/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

ai_gateway/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

alerting/aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

aliases.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -404,16 +404,15 @@ 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.
407+
// A simple wildcard permission, e.g., "\*".
408408
//
409409
// This is an alias to an internal type.
410410
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411411

412+
// A nested permission grant for further scoping.
413+
//
412414
// This is an alias to an internal type.
413-
type TokenPolicyResourcesIAMStringResource = shared.TokenPolicyResourcesIAMStringResource
414-
415-
// This is an alias to an internal type.
416-
type TokenPolicyResourcesIAMNestedResource = shared.TokenPolicyResourcesIAMNestedResource
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
417416

418417
// This is an alias to an internal type.
419418
type TokenPolicyParam = shared.TokenPolicyParam
@@ -429,16 +428,15 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
429428
// This is an alias to an internal type.
430429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
431430

432-
// A list of resource names that the policy applies to.
431+
// A simple wildcard permission, e.g., "\*".
433432
//
434433
// This is an alias to an internal type.
435434
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436435

436+
// A nested permission grant for further scoping.
437+
//
437438
// This is an alias to an internal type.
438-
type TokenPolicyResourcesIAMStringResourceParam = shared.TokenPolicyResourcesIAMStringResourceParam
439-
440-
// This is an alias to an internal type.
441-
type TokenPolicyResourcesIAMNestedResourceParam = shared.TokenPolicyResourcesIAMNestedResourceParam
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
442440

443441
// The token value.
444442
//

0 commit comments

Comments
 (0)