Skip to content

Commit

Permalink
feat(api): api update (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 4, 2024
1 parent 2d90c4c commit 1e4a82b
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1397
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cef7124dd7d5ad71437e997f848c36260ce9c9230f6f5f6368ab3acb49fcff5f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fe729b42d8f4cdf418646a3db49b6486b2e5f33f7acb74f0c48f4c43e16b1c52.yml
14 changes: 9 additions & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7004,7 +7004,7 @@ Methods:

- <code title="post /accounts/{account_id}/calls/apps">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallNewParams">CallNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallsAppWithSecret">CallsAppWithSecret</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/calls/apps/{app_id}">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, appID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallUpdateParams">CallUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallsApp">CallsApp</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/apps">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.List">List</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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallListParams">CallListParams</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#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/builtin#string">string</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/apps">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.List">List</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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallListParams">CallListParams</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#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallsApp">CallsApp</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/calls/apps/{app_id}">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, appID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallDeleteParams">CallDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallsApp">CallsApp</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/apps/{app_id}">client.Calls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, appID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallGetParams">CallGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#CallsApp">CallsApp</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

Expand All @@ -7015,14 +7015,18 @@ Methods:
Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyNewResponse">TURNKeyNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyUpdateResponse">TURNKeyUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyListResponse">TURNKeyListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyDeleteResponse">TURNKeyDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyGetResponse">TURNKeyGetResponse</a>

Methods:

- <code title="post /accounts/{account_id}/calls/turn_keys">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyNewParams">TURNKeyNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyNewResponse">TURNKeyNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyUpdateParams">TURNKeyUpdateParams</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/turn_keys">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.List">List</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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyListParams">TURNKeyListParams</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#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/builtin#string">string</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyDeleteParams">TURNKeyDeleteParams</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyGetParams">TURNKeyGetParams</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyUpdateParams">TURNKeyUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyUpdateResponse">TURNKeyUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/turn_keys">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.List">List</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/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyListParams">TURNKeyListParams</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#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyListResponse">TURNKeyListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyDeleteParams">TURNKeyDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyDeleteResponse">TURNKeyDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/calls/turn_keys/{key_id}">client.Calls.TURN.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, keyID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyGetParams">TURNKeyGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls">calls</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/calls#TURNKeyGetResponse">TURNKeyGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# CloudforceOne

Expand Down
4 changes: 2 additions & 2 deletions calls/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *CallService) Update(ctx context.Context, appID string, params CallUpdat
}

// Lists all apps in the Cloudflare account
func (r *CallService) List(ctx context.Context, query CallListParams, opts ...option.RequestOption) (res *pagination.SinglePage[string], err error) {
func (r *CallService) List(ctx context.Context, query CallListParams, opts ...option.RequestOption) (res *pagination.SinglePage[CallsApp], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
Expand All @@ -100,7 +100,7 @@ func (r *CallService) List(ctx context.Context, query CallListParams, opts ...op
}

// Lists all apps in the Cloudflare account
func (r *CallService) ListAutoPaging(ctx context.Context, query CallListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[string] {
func (r *CallService) ListAutoPaging(ctx context.Context, query CallListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CallsApp] {
return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...))
}

Expand Down
Loading

0 comments on commit 1e4a82b

Please sign in to comment.