Skip to content

Commit

Permalink
feat(api): api update (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 1, 2024
1 parent 4d04364 commit 7c07b9a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 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/cloudflare-d1b5bb5579048c9d14269ea091e1952fdf48d9ebdb90bbfd7f18b5c29b51ade2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-d331b5873193f7387a1fadc13f4426111538c2ccddfc4dc8863e56fabc179ffb.yml
24 changes: 18 additions & 6 deletions kv/namespacebulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 83,20 @@ func (r *NamespaceBulkService) Delete(ctx context.Context, namespaceID string, b
}

type NamespaceBulkUpdateResponse struct {
JSON namespaceBulkUpdateResponseJSON `json:"-"`
// Number of keys successfully updated
SuccessfulKeyCount float64 `json:"successful_key_count"`
// Name of the keys that failed to be fully updated
UnsuccessfulKeys []string `json:"unsuccessful_keys"`
JSON namespaceBulkUpdateResponseJSON `json:"-"`
}

// namespaceBulkUpdateResponseJSON contains the JSON metadata for the struct
// [NamespaceBulkUpdateResponse]
type namespaceBulkUpdateResponseJSON struct {
raw string
ExtraFields map[string]apijson.Field
SuccessfulKeyCount apijson.Field
UnsuccessfulKeys apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

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

type NamespaceBulkDeleteResponse struct {
JSON namespaceBulkDeleteResponseJSON `json:"-"`
// Number of keys successfully updated
SuccessfulKeyCount float64 `json:"successful_key_count"`
// Name of the keys that failed to be fully updated
UnsuccessfulKeys []string `json:"unsuccessful_keys"`
JSON namespaceBulkDeleteResponseJSON `json:"-"`
}

// namespaceBulkDeleteResponseJSON contains the JSON metadata for the struct
// [NamespaceBulkDeleteResponse]
type namespaceBulkDeleteResponseJSON struct {
raw string
ExtraFields map[string]apijson.Field
SuccessfulKeyCount apijson.Field
UnsuccessfulKeys apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

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

0 comments on commit 7c07b9a

Please sign in to comment.