Skip to content

Commit db03de7

Browse files
feat(api): api update
1 parent 6b1ac59 commit db03de7

File tree

7 files changed

+165
-19
lines changed

7 files changed

+165
-19
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1808
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4f0000a33062c7661cd5941b539f46b009046ef06d6cab251a4d696799505c0f.yml
3-
openapi_spec_hash: 0023b49d510dfc54eede32b3e17ccadf
4-
config_hash: fb1054ab304fd59429dac3940d2ee05a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ff88658548577389a348a8beea805d3d0acd6ca847c4b612b4bb3b1aee28044.yml
3+
openapi_spec_hash: 817d5f31e18225d119be2e6b46ce52a4
4+
config_hash: 03215e1e2607cd36fdac96c1ef923317

accounts/logaudit.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewLogAuditService(opts ...option.RequestOption) (r *LogAuditService) {
4242
// missing entries in the available audit logs. Be aware of the following
4343
// limitations. <br /> <ul> <li>Audit logs are available only for the past 30 days.
4444
// <br /></li> <li>Error handling is not yet implemented. <br /> </li> </ul>
45-
func (r *LogAuditService) List(ctx context.Context, params LogAuditListParams, opts ...option.RequestOption) (res *pagination.CursorLimitPagination[LogAuditListResponse], err error) {
45+
func (r *LogAuditService) List(ctx context.Context, params LogAuditListParams, opts ...option.RequestOption) (res *pagination.CursorPaginationAfter[LogAuditListResponse], err error) {
4646
var raw *http.Response
4747
opts = append(r.Options[:], opts...)
4848
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
@@ -68,8 +68,8 @@ func (r *LogAuditService) List(ctx context.Context, params LogAuditListParams, o
6868
// missing entries in the available audit logs. Be aware of the following
6969
// limitations. <br /> <ul> <li>Audit logs are available only for the past 30 days.
7070
// <br /></li> <li>Error handling is not yet implemented. <br /> </li> </ul>
71-
func (r *LogAuditService) ListAutoPaging(ctx context.Context, params LogAuditListParams, opts ...option.RequestOption) *pagination.CursorLimitPaginationAutoPager[LogAuditListResponse] {
72-
return pagination.NewCursorLimitPaginationAutoPager(r.List(ctx, params, opts...))
71+
func (r *LogAuditService) ListAutoPaging(ctx context.Context, params LogAuditListParams, opts ...option.RequestOption) *pagination.CursorPaginationAfterAutoPager[LogAuditListResponse] {
72+
return pagination.NewCursorPaginationAfterAutoPager(r.List(ctx, params, opts...))
7373
}
7474

7575
type LogAuditListResponse struct {

api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Response Types:
131131

132132
Methods:
133133

134-
- <code title="get /accounts/{account_id}/logs/audit">client.Accounts.Logs.Audit.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditService.List">List</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/v5/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditListParams">LogAuditListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorLimitPagination">CursorLimitPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditListResponse">LogAuditListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
134+
- <code title="get /accounts/{account_id}/logs/audit">client.Accounts.Logs.Audit.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditService.List">List</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/v5/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditListParams">LogAuditListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorPaginationAfter">CursorPaginationAfter</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/accounts#LogAuditListResponse">LogAuditListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
135135

136136
# OriginCACertificates
137137

@@ -2457,7 +2457,7 @@ Response Types:
24572457

24582458
Methods:
24592459

2460-
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/keys">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyListParams">NamespaceKeyListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorLimitPagination">CursorLimitPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#Key">Key</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2460+
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/keys">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyListParams">NamespaceKeyListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorPaginationAfter">CursorPaginationAfter</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#Key">Key</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
24612461
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/delete">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyService.BulkDelete">BulkDelete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkDeleteParams">NamespaceKeyBulkDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkDeleteResponse">NamespaceKeyBulkDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
24622462
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyService.BulkGet">BulkGet</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkGetParams">NamespaceKeyBulkGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkGetResponse">NamespaceKeyBulkGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
24632463
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyService.BulkUpdate">BulkUpdate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkUpdateParams">NamespaceKeyBulkUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/kv#NamespaceKeyBulkUpdateResponse">NamespaceKeyBulkUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
@@ -2505,7 +2505,7 @@ Response Types:
25052505

25062506
Methods:
25072507

2508-
- <code title="get /accounts/{account_id}/workers/durable_objects/namespaces/{id}/objects">client.DurableObjects.Namespaces.Objects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#NamespaceObjectService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, id <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects">durable_objects</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#NamespaceObjectListParams">NamespaceObjectListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorLimitPagination">CursorLimitPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects">durable_objects</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#DurableObject">DurableObject</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
2508+
- <code title="get /accounts/{account_id}/workers/durable_objects/namespaces/{id}/objects">client.DurableObjects.Namespaces.Objects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#NamespaceObjectService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, id <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects">durable_objects</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#NamespaceObjectListParams">NamespaceObjectListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorPaginationAfter">CursorPaginationAfter</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects">durable_objects</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/durable_objects#DurableObject">DurableObject</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
25092509

25102510
# Queues
25112511

@@ -4305,7 +4305,7 @@ Methods:
43054305

43064306
- <code title="post /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemNewParams">ListItemNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemNewResponse">ListItemNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
43074307
- <code title="put /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemUpdateParams">ListItemUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemUpdateResponse">ListItemUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
4308-
- <code title="get /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemListParams">ListItemListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorPagination">CursorPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemListResponse">ListItemListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
4308+
- <code title="get /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemListParams">ListItemListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/packages/pagination#CursorPaginationAfter">CursorPaginationAfter</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemListResponse">ListItemListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
43094309
- <code title="delete /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemDeleteParams">ListItemDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemDeleteResponse">ListItemDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
43104310
- <code title="get /accounts/{account_id}/rules/lists/{list_id}/items/{item_id}">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, itemID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemGetParams">ListItemGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v5/rules#ListItemGetResponse">ListItemGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
43114311

durable_objects/namespaceobject.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func NewNamespaceObjectService(opts ...option.RequestOption) (r *NamespaceObject
3737
}
3838

3939
// Returns the Durable Objects in a given namespace.
40-
func (r *NamespaceObjectService) List(ctx context.Context, id string, params NamespaceObjectListParams, opts ...option.RequestOption) (res *pagination.CursorLimitPagination[DurableObject], err error) {
40+
func (r *NamespaceObjectService) List(ctx context.Context, id string, params NamespaceObjectListParams, opts ...option.RequestOption) (res *pagination.CursorPaginationAfter[DurableObject], err error) {
4141
var raw *http.Response
4242
opts = append(r.Options[:], opts...)
4343
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
@@ -63,8 +63,8 @@ func (r *NamespaceObjectService) List(ctx context.Context, id string, params Nam
6363
}
6464

6565
// Returns the Durable Objects in a given namespace.
66-
func (r *NamespaceObjectService) ListAutoPaging(ctx context.Context, id string, params NamespaceObjectListParams, opts ...option.RequestOption) *pagination.CursorLimitPaginationAutoPager[DurableObject] {
67-
return pagination.NewCursorLimitPaginationAutoPager(r.List(ctx, id, params, opts...))
66+
func (r *NamespaceObjectService) ListAutoPaging(ctx context.Context, id string, params NamespaceObjectListParams, opts ...option.RequestOption) *pagination.CursorPaginationAfterAutoPager[DurableObject] {
67+
return pagination.NewCursorPaginationAfterAutoPager(r.List(ctx, id, params, opts...))
6868
}
6969

7070
type DurableObject struct {

0 commit comments

Comments
 (0)