Skip to content

Commit aaa3547

Browse files
digitalocean-engineeringAPI Engineering
andauthored
[bot] Updated client based on openapi-fef4c2e/clientgen (#474)
Co-authored-by: API Engineering <api-engineering@digitalocean.com>
1 parent 3f01a57 commit aaa3547

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

DO_OPENAPI_COMMIT_SHA.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e1310c
1+
fef4c2e

src/pydo/aio/operations/_operations.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72572,7 +72572,12 @@ async def get_logs_active_deployment(
7257272572

7257372573
@distributed_trace_async
7257472574
async def get_exec_active_deployment(
72575-
self, app_id: str, component_name: str, **kwargs: Any
72575+
self,
72576+
app_id: str,
72577+
component_name: str,
72578+
*,
72579+
instance_name: Optional[str] = None,
72580+
**kwargs: Any
7257672581
) -> JSON:
7257772582
# pylint: disable=line-too-long
7257872583
"""Retrieve Exec URL.
@@ -72585,6 +72590,9 @@ async def get_exec_active_deployment(
7258572590
:param component_name: An optional component name. If set, logs will be limited to this
7258672591
component only. Required.
7258772592
:type component_name: str
72593+
:keyword instance_name: The name of the actively running ephemeral compute instance. Default
72594+
value is None.
72595+
:paramtype instance_name: str
7258872596
:return: JSON object
7258972597
:rtype: JSON
7259072598
:raises ~azure.core.exceptions.HttpResponseError:
@@ -72630,6 +72638,7 @@ async def get_exec_active_deployment(
7263072638
_request = build_apps_get_exec_active_deployment_request(
7263172639
app_id=app_id,
7263272640
component_name=component_name,
72641+
instance_name=instance_name,
7263372642
headers=_headers,
7263472643
params=_params,
7263572644
)

src/pydo/operations/_operations.py

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,14 @@ def build_apps_get_logs_active_deployment_request( # pylint: disable=name-too-l
475475

476476

477477
def build_apps_get_exec_active_deployment_request( # pylint: disable=name-too-long
478-
app_id: str, component_name: str, **kwargs: Any
478+
app_id: str,
479+
component_name: str,
480+
*,
481+
instance_name: Optional[str] = None,
482+
**kwargs: Any,
479483
) -> HttpRequest:
480484
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
485+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
481486

482487
accept = _headers.pop("Accept", "application/json")
483488

@@ -490,10 +495,18 @@ def build_apps_get_exec_active_deployment_request( # pylint: disable=name-too-l
490495

491496
_url: str = _url.format(**path_format_arguments) # type: ignore
492497

498+
# Construct parameters
499+
if instance_name is not None:
500+
_params["instance_name"] = _SERIALIZER.query(
501+
"instance_name", instance_name, "str"
502+
)
503+
493504
# Construct headers
494505
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
495506

496-
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
507+
return HttpRequest(
508+
method="GET", url=_url, params=_params, headers=_headers, **kwargs
509+
)
497510

498511

499512
def build_apps_get_instances_request(app_id: str, **kwargs: Any) -> HttpRequest:
@@ -83184,7 +83197,12 @@ def get_logs_active_deployment(
8318483197

8318583198
@distributed_trace
8318683199
def get_exec_active_deployment(
83187-
self, app_id: str, component_name: str, **kwargs: Any
83200+
self,
83201+
app_id: str,
83202+
component_name: str,
83203+
*,
83204+
instance_name: Optional[str] = None,
83205+
**kwargs: Any,
8318883206
) -> JSON:
8318983207
# pylint: disable=line-too-long
8319083208
"""Retrieve Exec URL.
@@ -83197,6 +83215,9 @@ def get_exec_active_deployment(
8319783215
:param component_name: An optional component name. If set, logs will be limited to this
8319883216
component only. Required.
8319983217
:type component_name: str
83218+
:keyword instance_name: The name of the actively running ephemeral compute instance. Default
83219+
value is None.
83220+
:paramtype instance_name: str
8320083221
:return: JSON object
8320183222
:rtype: JSON
8320283223
:raises ~azure.core.exceptions.HttpResponseError:
@@ -83242,6 +83263,7 @@ def get_exec_active_deployment(
8324283263
_request = build_apps_get_exec_active_deployment_request(
8324383264
app_id=app_id,
8324483265
component_name=component_name,
83266+
instance_name=instance_name,
8324583267
headers=_headers,
8324683268
params=_params,
8324783269
)

0 commit comments

Comments
 (0)