Skip to content

Commit 9f4226d

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent dc18093 commit 9f4226d

12 files changed

Lines changed: 29 additions & 22 deletions

File tree

.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-76c8256920b2bd7137188518a6747268f4305216b2bca45dedbe37cc94d08b7d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0658ffdc63aa0d55f5c8e270bc9c40632a48795a5ce98f2bb1cbf4816f300b06.yml
33
openapi_spec_hash: a2941e95e7db3e393daf9a949913a239
4-
config_hash: 15d50e2518d77349fcb62469f2a01431
4+
config_hash: 31525fc9404677e20330cc748dfaf55d

api.md

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

25322532
```python
25332533
from cloudflare.types.kv import (
2534+
Any,
25342535
Namespace,
25352536
NamespaceDeleteResponse,
25362537
NamespaceBulkDeleteResponse,
@@ -2574,7 +2575,7 @@ Methods:
25742575

25752576
Methods:
25762577

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>
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>
25782579

25792580
### Values
25802581

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from ...._wrappers import ResultWrapper
2828
from ...._base_client import make_request_options
29+
from ....types.kv.any_param import AnyParam
2930
from ....types.kv.namespaces import value_update_params
3031
from ....types.kv.namespaces.value_delete_response import ValueDeleteResponse
3132
from ....types.kv.namespaces.value_update_response import ValueUpdateResponse
@@ -62,7 +63,7 @@ def update(
6263
value: str,
6364
expiration: float | NotGiven = NOT_GIVEN,
6465
expiration_ttl: float | NotGiven = NOT_GIVEN,
65-
metadata: object | NotGiven = NOT_GIVEN,
66+
metadata: AnyParam | NotGiven = NOT_GIVEN,
6667
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6768
# The extra values given here take precedence over values defined on the client or passed to this method.
6869
extra_headers: Headers | None = None,
@@ -96,8 +97,6 @@ def update(
9697
9798
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
9899
99-
metadata: Associates arbitrary JSON data with a key/value pair.
100-
101100
extra_headers: Send extra headers
102101
103102
extra_query: Add additional query parameters to the request
@@ -276,7 +275,7 @@ async def update(
276275
value: str,
277276
expiration: float | NotGiven = NOT_GIVEN,
278277
expiration_ttl: float | NotGiven = NOT_GIVEN,
279-
metadata: object | NotGiven = NOT_GIVEN,
278+
metadata: AnyParam | NotGiven = NOT_GIVEN,
280279
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
281280
# The extra values given here take precedence over values defined on the client or passed to this method.
282281
extra_headers: Headers | None = None,
@@ -310,8 +309,6 @@ async def update(
310309
311310
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
312311
313-
metadata: Associates arbitrary JSON data with a key/value pair.
314-
315312
extra_headers: Send extra headers
316313
317314
extra_query: Add additional query parameters to the request

src/cloudflare/types/kv/__init__.py

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

33
from __future__ import annotations
44

5+
from .any_param import AnyParam as AnyParam
56
from .namespace import Namespace as Namespace
67
from .namespace_list_params import NamespaceListParams as NamespaceListParams
78
from .namespace_create_params import NamespaceCreateParams as NamespaceCreateParams
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import TypeAlias
6+
7+
__all__ = ["AnyParam"]
8+
9+
AnyParam: TypeAlias = object

src/cloudflare/types/kv/namespace_bulk_get_response.py

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

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

2524
value: object
26-
"""The value associated with the key."""
2725

2826
expiration: Optional[float] = None
2927
"""

src/cloudflare/types/kv/namespace_bulk_update_params.py

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

8+
from .any_param import AnyParam
9+
810
__all__ = ["NamespaceBulkUpdateParams", "Body"]
911

1012

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ 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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class WorkersKVBulkGetResult(BaseModel):
2020

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

2524
value: object
26-
"""The value associated with the key."""
2725

2826
expiration: Optional[float] = None
2927
"""

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

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

8+
from ..any_param import AnyParam
9+
810
__all__ = ["KeyBulkUpdateParams", "Body"]
911

1012

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

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

0 commit comments

Comments
 (0)