Skip to content

Commit 73536a3

Browse files
chore(api): update composite API spec
1 parent 1924305 commit 73536a3

File tree

223 files changed

+6276
-27284
lines changed

Some content is hidden

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

223 files changed

+6276
-27284
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1894
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f8924cf28ba0b5db429a181901c546ffc5b1cf0a1c5817924248c171e1a26c11.yml
3-
openapi_spec_hash: e4d0301cb9d972e9c6b83ebc60979f77
1+
configured_endpoints: 1833
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3+
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
44
config_hash: c7b8d81b439ef7ee4d865bfc67f8f600

abuse_reports/abusereport.go

Lines changed: 0 additions & 1125 deletions
Large diffs are not rendered by default.

abuse_reports/abusereport_test.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

accounts/account.go

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ type Account struct {
149149
Type AccountType `json:"type,required"`
150150
// Timestamp for the creation of the account
151151
CreatedOn time.Time `json:"created_on" format:"date-time"`
152-
// Parent container details
153-
ManagedBy AccountManagedBy `json:"managed_by"`
154152
// Account settings
155153
Settings AccountSettings `json:"settings"`
156154
JSON accountJSON `json:"-"`
@@ -162,7 +160,6 @@ type accountJSON struct {
162160
Name apijson.Field
163161
Type apijson.Field
164162
CreatedOn apijson.Field
165-
ManagedBy apijson.Field
166163
Settings apijson.Field
167164
raw string
168165
ExtraFields map[string]apijson.Field
@@ -191,32 +188,6 @@ func (r AccountType) IsKnown() bool {
191188
return false
192189
}
193190

194-
// Parent container details
195-
type AccountManagedBy struct {
196-
// ID of the parent Organization, if one exists
197-
ParentOrgID string `json:"parent_org_id"`
198-
// Name of the parent Organization, if one exists
199-
ParentOrgName string `json:"parent_org_name"`
200-
JSON accountManagedByJSON `json:"-"`
201-
}
202-
203-
// accountManagedByJSON contains the JSON metadata for the struct
204-
// [AccountManagedBy]
205-
type accountManagedByJSON struct {
206-
ParentOrgID apijson.Field
207-
ParentOrgName apijson.Field
208-
raw string
209-
ExtraFields map[string]apijson.Field
210-
}
211-
212-
func (r *AccountManagedBy) UnmarshalJSON(data []byte) (err error) {
213-
return apijson.UnmarshalRoot(data, r)
214-
}
215-
216-
func (r accountManagedByJSON) RawJSON() string {
217-
return r.raw
218-
}
219-
220191
// Account settings
221192
type AccountSettings struct {
222193
// Sets an abuse contact email to notify for abuse reports.
@@ -249,8 +220,6 @@ type AccountParam struct {
249220
// Account name
250221
Name param.Field[string] `json:"name,required"`
251222
Type param.Field[AccountType] `json:"type,required"`
252-
// Parent container details
253-
ManagedBy param.Field[AccountManagedByParam] `json:"managed_by"`
254223
// Account settings
255224
Settings param.Field[AccountSettingsParam] `json:"settings"`
256225
}
@@ -259,14 +228,6 @@ func (r AccountParam) MarshalJSON() (data []byte, err error) {
259228
return apijson.MarshalRoot(r)
260229
}
261230

262-
// Parent container details
263-
type AccountManagedByParam struct {
264-
}
265-
266-
func (r AccountManagedByParam) MarshalJSON() (data []byte, err error) {
267-
return apijson.MarshalRoot(r)
268-
}
269-
270231
// Account settings
271232
type AccountSettingsParam struct {
272233
// Sets an abuse contact email to notify for abuse reports.

accounts/account_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) {
5959
_, err := client.Accounts.Update(context.TODO(), accounts.AccountUpdateParams{
6060
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6161
Account: accounts.AccountParam{
62-
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
63-
Name: cloudflare.F("Demo Account"),
64-
Type: cloudflare.F(accounts.AccountTypeStandard),
65-
ManagedBy: cloudflare.F(accounts.AccountManagedByParam{}),
62+
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
63+
Name: cloudflare.F("Demo Account"),
64+
Type: cloudflare.F(accounts.AccountTypeStandard),
6665
Settings: cloudflare.F(accounts.AccountSettingsParam{
6766
AbuseContactEmail: cloudflare.F("abuse_contact_email"),
6867
EnforceTwofactor: cloudflare.F(true),

accounts/accountorganization.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ func NewAccountOrganizationService(opts ...option.RequestOption) (r *AccountOrga
3636
}
3737

3838
// Move an account within an organization hierarchy or an account outside an
39-
// organization. (Currently in Closed Beta - see
40-
// https://developers.cloudflare.com/fundamentals/organizations/)
39+
// organization.
4140
func (r *AccountOrganizationService) New(ctx context.Context, params AccountOrganizationNewParams, opts ...option.RequestOption) (res *AccountOrganizationNewResponse, err error) {
4241
var env AccountOrganizationNewResponseEnvelope
4342
opts = slices.Concat(r.Options, opts)

0 commit comments

Comments
 (0)