@@ -105,7 +105,7 @@ def create(
105105
106106 def retrieve (
107107 self ,
108- id : str ,
108+ id_or_name : str ,
109109 * ,
110110 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
111111 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -115,7 +115,10 @@ def retrieve(
115115 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
116116 ) -> ProxyRetrieveResponse :
117117 """
118- Retrieve a proxy in the resolved project by ID.
118+ Retrieve a proxy in the resolved project by ID or exact name using the database
119+ collation. IDs take precedence when a value matches both an ID and a name. Proxy
120+ names are not unique; an ambiguous name returns a 400 response with code
121+ ambiguous_proxy_name.
119122
120123 Args:
121124 extra_headers: Send extra headers
@@ -126,10 +129,10 @@ def retrieve(
126129
127130 timeout: Override the client-level default timeout for this request, in seconds
128131 """
129- if not id :
130- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
132+ if not id_or_name :
133+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
131134 return self ._get (
132- path_template ("/proxies/{id }" , id = id ),
135+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
133136 options = make_request_options (
134137 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
135138 ),
@@ -138,7 +141,7 @@ def retrieve(
138141
139142 def update (
140143 self ,
141- id : str ,
144+ id_or_name : str ,
142145 * ,
143146 name : str ,
144147 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -150,10 +153,8 @@ def update(
150153 ) -> ProxyUpdateResponse :
151154 """Update a proxy's name.
152155
153- Proxy names are not unique and are not ID-or-name
154- addressable on this endpoint; duplicate names are allowed. Name-based
155- session-create lookups can remain ambiguous until callers resolve proxies by ID
156- or the API adds a stronger uniqueness contract.
156+ Proxy names are not unique and duplicate names are
157+ allowed.
157158
158159 Args:
159160 name: New proxy name. Proxy names are trimmed and length-checked only; duplicates are
@@ -167,10 +168,10 @@ def update(
167168
168169 timeout: Override the client-level default timeout for this request, in seconds
169170 """
170- if not id :
171- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
171+ if not id_or_name :
172+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
172173 return self ._patch (
173- path_template ("/proxies/{id }" , id = id ),
174+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
174175 body = maybe_transform ({"name" : name }, proxy_update_params .ProxyUpdateParams ),
175176 options = make_request_options (
176177 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
@@ -238,7 +239,7 @@ def list(
238239
239240 def delete (
240241 self ,
241- id : str ,
242+ id_or_name : str ,
242243 * ,
243244 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
244245 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -263,11 +264,11 @@ def delete(
263264
264265 timeout: Override the client-level default timeout for this request, in seconds
265266 """
266- if not id :
267- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
267+ if not id_or_name :
268+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
268269 extra_headers = {"Accept" : "*/*" , ** (extra_headers or {})}
269270 return self ._delete (
270- path_template ("/proxies/{id }" , id = id ),
271+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
271272 options = make_request_options (
272273 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
273274 ),
@@ -276,7 +277,7 @@ def delete(
276277
277278 def check (
278279 self ,
279- id : str ,
280+ id_or_name : str ,
280281 * ,
281282 url : str | Omit = omit ,
282283 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -317,10 +318,10 @@ def check(
317318
318319 timeout: Override the client-level default timeout for this request, in seconds
319320 """
320- if not id :
321- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
321+ if not id_or_name :
322+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
322323 return self ._post (
323- path_template ("/proxies/{id }/check" , id = id ),
324+ path_template ("/proxies/{id_or_name }/check" , id_or_name = id_or_name ),
324325 body = maybe_transform ({"url" : url }, proxy_check_params .ProxyCheckParams ),
325326 options = make_request_options (
326327 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
@@ -406,7 +407,7 @@ async def create(
406407
407408 async def retrieve (
408409 self ,
409- id : str ,
410+ id_or_name : str ,
410411 * ,
411412 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
412413 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -416,7 +417,10 @@ async def retrieve(
416417 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
417418 ) -> ProxyRetrieveResponse :
418419 """
419- Retrieve a proxy in the resolved project by ID.
420+ Retrieve a proxy in the resolved project by ID or exact name using the database
421+ collation. IDs take precedence when a value matches both an ID and a name. Proxy
422+ names are not unique; an ambiguous name returns a 400 response with code
423+ ambiguous_proxy_name.
420424
421425 Args:
422426 extra_headers: Send extra headers
@@ -427,10 +431,10 @@ async def retrieve(
427431
428432 timeout: Override the client-level default timeout for this request, in seconds
429433 """
430- if not id :
431- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
434+ if not id_or_name :
435+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
432436 return await self ._get (
433- path_template ("/proxies/{id }" , id = id ),
437+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
434438 options = make_request_options (
435439 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
436440 ),
@@ -439,7 +443,7 @@ async def retrieve(
439443
440444 async def update (
441445 self ,
442- id : str ,
446+ id_or_name : str ,
443447 * ,
444448 name : str ,
445449 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -451,10 +455,8 @@ async def update(
451455 ) -> ProxyUpdateResponse :
452456 """Update a proxy's name.
453457
454- Proxy names are not unique and are not ID-or-name
455- addressable on this endpoint; duplicate names are allowed. Name-based
456- session-create lookups can remain ambiguous until callers resolve proxies by ID
457- or the API adds a stronger uniqueness contract.
458+ Proxy names are not unique and duplicate names are
459+ allowed.
458460
459461 Args:
460462 name: New proxy name. Proxy names are trimmed and length-checked only; duplicates are
@@ -468,10 +470,10 @@ async def update(
468470
469471 timeout: Override the client-level default timeout for this request, in seconds
470472 """
471- if not id :
472- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
473+ if not id_or_name :
474+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
473475 return await self ._patch (
474- path_template ("/proxies/{id }" , id = id ),
476+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
475477 body = await async_maybe_transform ({"name" : name }, proxy_update_params .ProxyUpdateParams ),
476478 options = make_request_options (
477479 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
@@ -539,7 +541,7 @@ def list(
539541
540542 async def delete (
541543 self ,
542- id : str ,
544+ id_or_name : str ,
543545 * ,
544546 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
545547 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -564,11 +566,11 @@ async def delete(
564566
565567 timeout: Override the client-level default timeout for this request, in seconds
566568 """
567- if not id :
568- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
569+ if not id_or_name :
570+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
569571 extra_headers = {"Accept" : "*/*" , ** (extra_headers or {})}
570572 return await self ._delete (
571- path_template ("/proxies/{id }" , id = id ),
573+ path_template ("/proxies/{id_or_name }" , id_or_name = id_or_name ),
572574 options = make_request_options (
573575 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
574576 ),
@@ -577,7 +579,7 @@ async def delete(
577579
578580 async def check (
579581 self ,
580- id : str ,
582+ id_or_name : str ,
581583 * ,
582584 url : str | Omit = omit ,
583585 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -618,10 +620,10 @@ async def check(
618620
619621 timeout: Override the client-level default timeout for this request, in seconds
620622 """
621- if not id :
622- raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
623+ if not id_or_name :
624+ raise ValueError (f"Expected a non-empty value for `id_or_name ` but received { id_or_name !r} " )
623625 return await self ._post (
624- path_template ("/proxies/{id }/check" , id = id ),
626+ path_template ("/proxies/{id_or_name }/check" , id_or_name = id_or_name ),
625627 body = await async_maybe_transform ({"url" : url }, proxy_check_params .ProxyCheckParams ),
626628 options = make_request_options (
627629 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
0 commit comments