Skip to content

Commit 6a1b4d4

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 54f3f95 commit 6a1b4d4

File tree

12 files changed

+22
-29
lines changed

12 files changed

+22
-29
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7fefb795a9012f9de9a4c91401cee8e6bb4d1d85d82a39876498f57fb3577e36.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b3250e2cf9d093a1afed111732820f38dd819b29f10df34d5e0ff8de82520cff.yml
33
openapi_spec_hash: 63d999b81a6dbd5853b5d03caee1bbd9
4-
config_hash: 31525fc9404677e20330cc748dfaf55d
4+
config_hash: 15d50e2518d77349fcb62469f2a01431

api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,6 @@ Types:
25312531

25322532
```python
25332533
from cloudflare.types.kv import (
2534-
Any,
25352534
Namespace,
25362535
NamespaceDeleteResponse,
25372536
NamespaceBulkDeleteResponse,
@@ -2575,7 +2574,7 @@ Methods:
25752574

25762575
Methods:
25772576

2578-
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}">client.kv.namespaces.metadata.<a href="./src/cloudflare/resources/kv/namespaces/metadata.py">get</a>(key_name, \*, account_id, namespace_id) -> <a href="./src/cloudflare/types/kv/any.py">object</a></code>
2577+
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}">client.kv.namespaces.metadata.<a href="./src/cloudflare/resources/kv/namespaces/metadata.py">get</a>(key_name, \*, account_id, namespace_id) -> object</code>
25792578

25802579
### Values
25812580

src/cloudflare/resources/kv/namespaces/values.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
)
2727
from ...._wrappers import ResultWrapper
2828
from ...._base_client import make_request_options
29-
from ....types.kv.any_param import AnyParam
3029
from ....types.kv.namespaces import value_update_params
3130
from ....types.kv.namespaces.value_delete_response import ValueDeleteResponse
3231
from ....types.kv.namespaces.value_update_response import ValueUpdateResponse
@@ -63,7 +62,7 @@ def update(
6362
value: str,
6463
expiration: float | NotGiven = NOT_GIVEN,
6564
expiration_ttl: float | NotGiven = NOT_GIVEN,
66-
metadata: AnyParam | NotGiven = NOT_GIVEN,
65+
metadata: object | NotGiven = NOT_GIVEN,
6766
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6867
# The extra values given here take precedence over values defined on the client or passed to this method.
6968
extra_headers: Headers | None = None,
@@ -97,6 +96,8 @@ def update(
9796
9897
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
9998
99+
metadata: Associates arbitrary JSON data with a key/value pair.
100+
100101
extra_headers: Send extra headers
101102
102103
extra_query: Add additional query parameters to the request
@@ -275,7 +276,7 @@ async def update(
275276
value: str,
276277
expiration: float | NotGiven = NOT_GIVEN,
277278
expiration_ttl: float | NotGiven = NOT_GIVEN,
278-
metadata: AnyParam | NotGiven = NOT_GIVEN,
279+
metadata: object | NotGiven = NOT_GIVEN,
279280
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280281
# The extra values given here take precedence over values defined on the client or passed to this method.
281282
extra_headers: Headers | None = None,
@@ -309,6 +310,8 @@ async def update(
309310
310311
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
311312
313+
metadata: Associates arbitrary JSON data with a key/value pair.
314+
312315
extra_headers: Send extra headers
313316
314317
extra_query: Add additional query parameters to the request

src/cloudflare/types/kv/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from .any_param import AnyParam as AnyParam
65
from .namespace import Namespace as Namespace
76
from .namespace_list_params import NamespaceListParams as NamespaceListParams
87
from .namespace_create_params import NamespaceCreateParams as NamespaceCreateParams

src/cloudflare/types/kv/any_param.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/cloudflare/types/kv/namespace_bulk_get_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ class WorkersKVBulkGetResult(BaseModel):
2020

2121
class WorkersKVBulkGetResultWithMetadataValues(BaseModel):
2222
metadata: object
23+
"""The metadata associated with the key."""
2324

2425
value: object
26+
"""The value associated with the key."""
2527

2628
expiration: Optional[float] = None
2729
"""

src/cloudflare/types/kv/namespace_bulk_update_params.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from typing import Iterable
66
from typing_extensions import Required, TypedDict
77

8-
from .any_param import AnyParam
9-
108
__all__ = ["NamespaceBulkUpdateParams", "Body"]
119

1210

@@ -44,4 +42,5 @@ class Body(TypedDict, total=False):
4442
expiration_ttl: float
4543
"""Expires the key after a number of seconds. Must be at least 60."""
4644

47-
metadata: AnyParam
45+
metadata: object
46+
"""Arbitrary JSON that is associated with a key."""

src/cloudflare/types/kv/namespaces/key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ class Key(BaseModel):
2222
"""
2323

2424
metadata: Optional[object] = None
25+
"""Arbitrary JSON that is associated with a key."""

src/cloudflare/types/kv/namespaces/key_bulk_get_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ class WorkersKVBulkGetResult(BaseModel):
2020

2121
class WorkersKVBulkGetResultWithMetadataValues(BaseModel):
2222
metadata: object
23+
"""The metadata associated with the key."""
2324

2425
value: object
26+
"""The value associated with the key."""
2527

2628
expiration: Optional[float] = None
2729
"""

src/cloudflare/types/kv/namespaces/key_bulk_update_params.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from typing import Iterable
66
from typing_extensions import Required, TypedDict
77

8-
from ..any_param import AnyParam
9-
108
__all__ = ["KeyBulkUpdateParams", "Body"]
119

1210

@@ -44,4 +42,5 @@ class Body(TypedDict, total=False):
4442
expiration_ttl: float
4543
"""Expires the key after a number of seconds. Must be at least 60."""
4644

47-
metadata: AnyParam
45+
metadata: object
46+
"""Arbitrary JSON that is associated with a key."""

0 commit comments

Comments
 (0)