2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Dict , Iterable , Optional
5
+ from typing import Iterable , Optional
6
6
7
7
import httpx
8
8
@@ -81,7 +81,6 @@ def update(
81
81
item_id : str ,
82
82
* ,
83
83
external_connections : Optional [Iterable [item_update_params .ExternalConnection ]],
84
- metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
85
84
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
86
85
# The extra values given here take precedence over values defined on the client or passed to this method.
87
86
extra_headers : Headers | None = None ,
@@ -90,15 +89,10 @@ def update(
90
89
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
91
90
idempotency_key : str | None = None ,
92
91
) -> Item :
93
- """Update items
92
+ """
93
+ Update items
94
94
95
95
Args:
96
- metadata: User-specified key/value pairs for the resource.
97
-
98
- Individual keys can be removed
99
- by setting the value to `null`, and the entire metadata mapping can be cleared
100
- by setting `metadata` to `null`.
101
-
102
96
extra_headers: Send extra headers
103
97
104
98
extra_query: Add additional query parameters to the request
@@ -113,13 +107,7 @@ def update(
113
107
raise ValueError (f"Expected a non-empty value for `item_id` but received { item_id !r} " )
114
108
return self ._put (
115
109
f"/items/{ item_id } " ,
116
- body = maybe_transform (
117
- {
118
- "external_connections" : external_connections ,
119
- "metadata" : metadata ,
120
- },
121
- item_update_params .ItemUpdateParams ,
122
- ),
110
+ body = maybe_transform ({"external_connections" : external_connections }, item_update_params .ItemUpdateParams ),
123
111
options = make_request_options (
124
112
extra_headers = extra_headers ,
125
113
extra_query = extra_query ,
@@ -268,7 +256,6 @@ async def update(
268
256
item_id : str ,
269
257
* ,
270
258
external_connections : Optional [Iterable [item_update_params .ExternalConnection ]],
271
- metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
272
259
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
273
260
# The extra values given here take precedence over values defined on the client or passed to this method.
274
261
extra_headers : Headers | None = None ,
@@ -277,15 +264,10 @@ async def update(
277
264
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
278
265
idempotency_key : str | None = None ,
279
266
) -> Item :
280
- """Update items
267
+ """
268
+ Update items
281
269
282
270
Args:
283
- metadata: User-specified key/value pairs for the resource.
284
-
285
- Individual keys can be removed
286
- by setting the value to `null`, and the entire metadata mapping can be cleared
287
- by setting `metadata` to `null`.
288
-
289
271
extra_headers: Send extra headers
290
272
291
273
extra_query: Add additional query parameters to the request
@@ -301,11 +283,7 @@ async def update(
301
283
return await self ._put (
302
284
f"/items/{ item_id } " ,
303
285
body = await async_maybe_transform (
304
- {
305
- "external_connections" : external_connections ,
306
- "metadata" : metadata ,
307
- },
308
- item_update_params .ItemUpdateParams ,
286
+ {"external_connections" : external_connections }, item_update_params .ItemUpdateParams
309
287
),
310
288
options = make_request_options (
311
289
extra_headers = extra_headers ,
0 commit comments