Skip to content

Commit f75fa4b

Browse files
stainless-app[bot]stainless-bot
authored andcommittedNov 14, 2024·
feat(api): api update (#3601)
1 parent 3082cf5 commit f75fa4b

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1417
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4396f2b615f2349cc28c23e9df6cf66c1c0fd8257d18df0ce54d7e74c839bf9f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7d085f55544e992a7e3c3162951d86aac51322ac1cfaf8b50242484e69a0810d.yml

‎kv/namespacebulk.go

+18-6
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,20 @@ func (r *NamespaceBulkService) Delete(ctx context.Context, namespaceID string, b
8383
}
8484

8585
type NamespaceBulkUpdateResponse struct {
86-
JSON namespaceBulkUpdateResponseJSON `json:"-"`
86+
// Number of keys successfully updated
87+
SuccessfulKeyCount float64 `json:"successful_key_count"`
88+
// Name of the keys that failed to be fully updated. They should be retried.
89+
UnsuccessfulKeys []string `json:"unsuccessful_keys"`
90+
JSON namespaceBulkUpdateResponseJSON `json:"-"`
8791
}
8892

8993
// namespaceBulkUpdateResponseJSON contains the JSON metadata for the struct
9094
// [NamespaceBulkUpdateResponse]
9195
type namespaceBulkUpdateResponseJSON struct {
92-
raw string
93-
ExtraFields map[string]apijson.Field
96+
SuccessfulKeyCount apijson.Field
97+
UnsuccessfulKeys apijson.Field
98+
raw string
99+
ExtraFields map[string]apijson.Field
94100
}
95101

96102
func (r *NamespaceBulkUpdateResponse) UnmarshalJSON(data []byte) (err error) {
@@ -102,14 +108,20 @@ func (r namespaceBulkUpdateResponseJSON) RawJSON() string {
102108
}
103109

104110
type NamespaceBulkDeleteResponse struct {
105-
JSON namespaceBulkDeleteResponseJSON `json:"-"`
111+
// Number of keys successfully updated
112+
SuccessfulKeyCount float64 `json:"successful_key_count"`
113+
// Name of the keys that failed to be fully updated. They should be retried.
114+
UnsuccessfulKeys []string `json:"unsuccessful_keys"`
115+
JSON namespaceBulkDeleteResponseJSON `json:"-"`
106116
}
107117

108118
// namespaceBulkDeleteResponseJSON contains the JSON metadata for the struct
109119
// [NamespaceBulkDeleteResponse]
110120
type namespaceBulkDeleteResponseJSON struct {
111-
raw string
112-
ExtraFields map[string]apijson.Field
121+
SuccessfulKeyCount apijson.Field
122+
UnsuccessfulKeys apijson.Field
123+
raw string
124+
ExtraFields map[string]apijson.Field
113125
}
114126

115127
func (r *NamespaceBulkDeleteResponse) UnmarshalJSON(data []byte) (err error) {

0 commit comments

Comments
 (0)
Please sign in to comment.