Skip to content

Commit a85480d

Browse files
feat(api): api update
1 parent 64e8a45 commit a85480d

File tree

100 files changed

+2178
-25
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

+2178
-25
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-0f2bd193526171b33bdf83aed6c80e17bfec552bc98ed3e17ac18329a6e556f8.yml
3-
openapi_spec_hash: ac1d578220e778b767b97cae294a6b51
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fd1b420cb57dab0611a1e37130f60c8c53dcfe02529108fef301812d5dfd9bb6.yml
3+
openapi_spec_hash: 326a08d1b5e9390af5d1fb976a15cbae
44
config_hash: 284c4178d08f75d8c8b29f275948a8fd

abuse_reports/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

accounts/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

accounts/token_test.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
4848
Value: cloudflare.F("value"),
4949
}),
5050
}}),
51-
Resources: cloudflare.F(map[string]map[string]string{
52-
"foo": {
53-
"foo": "string",
54-
},
55-
}),
51+
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesIAMStringResourceParam(map[string]string{
52+
"foo": "string",
53+
})),
5654
}}),
5755
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
5856
RequestIP: cloudflare.F(accounts.TokenNewParamsConditionRequestIP{
@@ -116,11 +114,9 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
116114
Value: cloudflare.F("value"),
117115
}),
118116
}}),
119-
Resources: cloudflare.F(map[string]map[string]string{
120-
"foo": {
121-
"foo": "string",
122-
},
123-
}),
117+
Resources: cloudflare.F[shared.TokenPolicyResourcesUnionParam](shared.TokenPolicyResourcesIAMStringResourceParam(map[string]string{
118+
"foo": "string",
119+
})),
124120
}}),
125121
Status: cloudflare.F(shared.TokenStatusActive),
126122
},

acm/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

addressing/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

ai/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

ai_gateway/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

alerting/aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

aliases.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ 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+
// 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
417+
407418
// This is an alias to an internal type.
408419
type TokenPolicyParam = shared.TokenPolicyParam
409420

@@ -418,6 +429,17 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418429
// This is an alias to an internal type.
419430
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420431

432+
// A list of resource names that the policy applies to.
433+
//
434+
// This is an alias to an internal type.
435+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
436+
437+
// 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
442+
421443
// The token value.
422444
//
423445
// This is an alias to an internal type.

0 commit comments

Comments
 (0)