Skip to content

Commit 7c07b9a

Browse files
stainless-app[bot]stainless-bot
authored andcommittedNov 1, 2024
feat(api): api update (#3553)
1 parent 4d04364 commit 7c07b9a

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: 1397
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d1b5bb5579048c9d14269ea091e1952fdf48d9ebdb90bbfd7f18b5c29b51ade2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d331b5873193f7387a1fadc13f4426111538c2ccddfc4dc8594e56fabc179ffb.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
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
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.