Skip to content

Commit 77f4aae

Browse files
stainless-app[bot]stainless-bot
authored andcommittedNov 7, 2024·
feat(api): api update (#3581)
1 parent f57c9b4 commit 77f4aae

File tree

2 files changed

+7
-19
lines changed

2 files changed

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

‎kv/namespacebulk.go

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

8585
type NamespaceBulkUpdateResponse struct {
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:"-"`
86+
JSON namespaceBulkUpdateResponseJSON `json:"-"`
9187
}
9288

9389
// namespaceBulkUpdateResponseJSON contains the JSON metadata for the struct
9490
// [NamespaceBulkUpdateResponse]
9591
type namespaceBulkUpdateResponseJSON struct {
96-
SuccessfulKeyCount apijson.Field
97-
UnsuccessfulKeys apijson.Field
98-
raw string
99-
ExtraFields map[string]apijson.Field
92+
raw string
93+
ExtraFields map[string]apijson.Field
10094
}
10195

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

110104
type NamespaceBulkDeleteResponse struct {
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:"-"`
105+
JSON namespaceBulkDeleteResponseJSON `json:"-"`
116106
}
117107

118108
// namespaceBulkDeleteResponseJSON contains the JSON metadata for the struct
119109
// [NamespaceBulkDeleteResponse]
120110
type namespaceBulkDeleteResponseJSON struct {
121-
SuccessfulKeyCount apijson.Field
122-
UnsuccessfulKeys apijson.Field
123-
raw string
124-
ExtraFields map[string]apijson.Field
111+
raw string
112+
ExtraFields map[string]apijson.Field
125113
}
126114

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

0 commit comments

Comments
 (0)
Please sign in to comment.