Skip to content

Commit

Permalink
[bot] Updated client based on openapi-3849496/clientgen (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: API Engineering <[email protected]>
  • Loading branch information
digitalocean-engineering and API Engineering authored Aug 2, 2023
1 parent eef3307 commit 7d87bbc
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion DO_OPENAPI_COMMIT_SHA.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80a7e0b
3849496
82 changes: 41 additions & 41 deletions src/pydo/aio/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@
build_tags_get_request,
build_tags_list_request,
build_tags_unassign_resources_request,
build_uptime_alert_create_request,
build_uptime_alert_delete_request,
build_uptime_alert_get_request,
build_uptime_alert_update_request,
build_uptime_check_alerts_list_request,
build_uptime_check_create_request,
build_uptime_check_delete_request,
build_uptime_check_get_request,
build_uptime_check_state_get_request,
build_uptime_check_update_request,
build_uptime_checks_list_request,
build_uptime_create_alert_request,
build_uptime_create_check_request,
build_uptime_delete_alert_request,
build_uptime_delete_check_request,
build_uptime_get_alert_request,
build_uptime_get_check_request,
build_uptime_get_check_state_request,
build_uptime_list_alerts_request,
build_uptime_list_checks_request,
build_uptime_update_alert_request,
build_uptime_update_check_request,
build_volume_actions_get_request,
build_volume_actions_list_request,
build_volume_actions_post_by_id_request,
Expand Down Expand Up @@ -113856,7 +113856,7 @@ def __init__(self, *args, **kwargs) -> None:
)

@distributed_trace_async
async def checks_list(
async def list_checks(
self, *, per_page: int = 20, page: int = 1, **kwargs: Any
) -> JSON:
"""List All Checks.
Expand Down Expand Up @@ -113926,7 +113926,7 @@ async def checks_list(

cls = kwargs.pop("cls", None) # type: ClsType[JSON]

request = build_uptime_checks_list_request(
request = build_uptime_list_checks_request(
per_page=per_page,
page=page,
headers=_headers,
Expand Down Expand Up @@ -113985,7 +113985,7 @@ async def checks_list(
return cast(JSON, deserialized)

@overload
async def check_create(
async def create_check(
self, body: JSON, *, content_type: str = "application/json", **kwargs: Any
) -> JSON:
"""Create a New Check.
Expand Down Expand Up @@ -114041,7 +114041,7 @@ async def check_create(
"""

@overload
async def check_create(
async def create_check(
self, body: IO, *, content_type: str = "application/json", **kwargs: Any
) -> JSON:
"""Create a New Check.
Expand Down Expand Up @@ -114083,7 +114083,7 @@ async def check_create(
"""

@distributed_trace_async
async def check_create(self, body: Union[JSON, IO], **kwargs: Any) -> JSON:
async def create_check(self, body: Union[JSON, IO], **kwargs: Any) -> JSON:
"""Create a New Check.

To create an Uptime check, send a POST request to ``/v2/uptime/checks`` specifying the
Expand Down Expand Up @@ -114146,7 +114146,7 @@ async def check_create(self, body: Union[JSON, IO], **kwargs: Any) -> JSON:
else:
_json = body

request = build_uptime_check_create_request(
request = build_uptime_create_check_request(
content_type=content_type,
json=_json,
content=_content,
Expand Down Expand Up @@ -114189,7 +114189,7 @@ async def check_create(self, body: Union[JSON, IO], **kwargs: Any) -> JSON:
return cast(JSON, deserialized)

@distributed_trace_async
async def check_get(self, check_id: str, **kwargs: Any) -> JSON:
async def get_check(self, check_id: str, **kwargs: Any) -> JSON:
"""Retrieve an Existing Check.

To show information about an existing check, send a GET request to
Expand Down Expand Up @@ -114248,7 +114248,7 @@ async def check_get(self, check_id: str, **kwargs: Any) -> JSON:

cls = kwargs.pop("cls", None) # type: ClsType[JSON]

request = build_uptime_check_get_request(
request = build_uptime_get_check_request(
check_id=check_id,
headers=_headers,
params=_params,
Expand Down Expand Up @@ -114306,7 +114306,7 @@ async def check_get(self, check_id: str, **kwargs: Any) -> JSON:
return cast(JSON, deserialized)

@overload
async def check_update(
async def update_check(
self,
check_id: str,
body: JSON,
Expand Down Expand Up @@ -114379,7 +114379,7 @@ async def check_update(
"""

@overload
async def check_update(
async def update_check(
self,
check_id: str,
body: IO,
Expand Down Expand Up @@ -114438,7 +114438,7 @@ async def check_update(
"""

@distributed_trace_async
async def check_update(
async def update_check(
self, check_id: str, body: Union[JSON, IO], **kwargs: Any
) -> JSON:
"""Update a Check.
Expand Down Expand Up @@ -114515,7 +114515,7 @@ async def check_update(
else:
_json = body

request = build_uptime_check_update_request(
request = build_uptime_update_check_request(
check_id=check_id,
content_type=content_type,
json=_json,
Expand Down Expand Up @@ -114576,7 +114576,7 @@ async def check_update(
return cast(JSON, deserialized)

@distributed_trace_async
async def check_delete(self, check_id: str, **kwargs: Any) -> Optional[JSON]:
async def delete_check(self, check_id: str, **kwargs: Any) -> Optional[JSON]:
"""Delete a Check.

To delete an Uptime check, send a DELETE request to ``/v2/uptime/checks/$CHECK_ID``. A 204
Expand Down Expand Up @@ -114620,7 +114620,7 @@ async def check_delete(self, check_id: str, **kwargs: Any) -> Optional[JSON]:

cls = kwargs.pop("cls", None) # type: ClsType[Optional[JSON]]

request = build_uptime_check_delete_request(
request = build_uptime_delete_check_request(
check_id=check_id,
headers=_headers,
params=_params,
Expand Down Expand Up @@ -114674,7 +114674,7 @@ async def check_delete(self, check_id: str, **kwargs: Any) -> Optional[JSON]:
return deserialized

@distributed_trace_async
async def check_state_get(self, check_id: str, **kwargs: Any) -> JSON:
async def get_check_state(self, check_id: str, **kwargs: Any) -> JSON:
"""Retrieve Check State.

To show information about an existing check's state, send a GET request to
Expand Down Expand Up @@ -114744,7 +114744,7 @@ async def check_state_get(self, check_id: str, **kwargs: Any) -> JSON:

cls = kwargs.pop("cls", None) # type: ClsType[JSON]

request = build_uptime_check_state_get_request(
request = build_uptime_get_check_state_request(
check_id=check_id,
headers=_headers,
params=_params,
Expand Down Expand Up @@ -114802,7 +114802,7 @@ async def check_state_get(self, check_id: str, **kwargs: Any) -> JSON:
return cast(JSON, deserialized)

@distributed_trace_async
async def check_alerts_list(
async def list_alerts(
self, check_id: str, *, per_page: int = 20, page: int = 1, **kwargs: Any
) -> JSON:
"""List All Alerts.
Expand Down Expand Up @@ -114890,7 +114890,7 @@ async def check_alerts_list(

cls = kwargs.pop("cls", None) # type: ClsType[JSON]

request = build_uptime_check_alerts_list_request(
request = build_uptime_list_alerts_request(
check_id=check_id,
per_page=per_page,
page=page,
Expand Down Expand Up @@ -114950,7 +114950,7 @@ async def check_alerts_list(
return cast(JSON, deserialized)

@overload
async def alert_create(
async def create_alert(
self,
check_id: str,
body: JSON,
Expand Down Expand Up @@ -115058,7 +115058,7 @@ async def alert_create(
"""

@overload
async def alert_create(
async def create_alert(
self,
check_id: str,
body: IO,
Expand Down Expand Up @@ -115138,7 +115138,7 @@ async def alert_create(
"""

@distributed_trace_async
async def alert_create(
async def create_alert(
self, check_id: str, body: Union[JSON, IO], **kwargs: Any
) -> JSON:
"""Create a New Alert.
Expand Down Expand Up @@ -115237,7 +115237,7 @@ async def alert_create(
else:
_json = body

request = build_uptime_alert_create_request(
request = build_uptime_create_alert_request(
check_id=check_id,
content_type=content_type,
json=_json,
Expand Down Expand Up @@ -115298,7 +115298,7 @@ async def alert_create(
return cast(JSON, deserialized)

@distributed_trace_async
async def alert_get(self, check_id: str, alert_id: str, **kwargs: Any) -> JSON:
async def get_alert(self, check_id: str, alert_id: str, **kwargs: Any) -> JSON:
"""Retrieve an Existing Alert.

To show information about an existing alert, send a GET request to
Expand Down Expand Up @@ -115372,7 +115372,7 @@ async def alert_get(self, check_id: str, alert_id: str, **kwargs: Any) -> JSON:

cls = kwargs.pop("cls", None) # type: ClsType[JSON]

request = build_uptime_alert_get_request(
request = build_uptime_get_alert_request(
check_id=check_id,
alert_id=alert_id,
headers=_headers,
Expand Down Expand Up @@ -115431,7 +115431,7 @@ async def alert_get(self, check_id: str, alert_id: str, **kwargs: Any) -> JSON:
return cast(JSON, deserialized)

@overload
async def alert_update(
async def update_alert(
self,
check_id: str,
alert_id: str,
Expand Down Expand Up @@ -115532,7 +115532,7 @@ async def alert_update(
"""

@overload
async def alert_update(
async def update_alert(
self,
check_id: str,
alert_id: str,
Expand Down Expand Up @@ -115607,7 +115607,7 @@ async def alert_update(
"""

@distributed_trace_async
async def alert_update(
async def update_alert(
self, check_id: str, alert_id: str, body: Union[JSON, IO], **kwargs: Any
) -> JSON:
"""Update an Alert.
Expand Down Expand Up @@ -115699,7 +115699,7 @@ async def alert_update(
else:
_json = body

request = build_uptime_alert_update_request(
request = build_uptime_update_alert_request(
check_id=check_id,
alert_id=alert_id,
content_type=content_type,
Expand Down Expand Up @@ -115761,7 +115761,7 @@ async def alert_update(
return cast(JSON, deserialized)

@distributed_trace_async
async def alert_delete(
async def delete_alert(
self, check_id: str, alert_id: str, **kwargs: Any
) -> Optional[JSON]:
"""Delete an Alert.
Expand Down Expand Up @@ -115807,7 +115807,7 @@ async def alert_delete(

cls = kwargs.pop("cls", None) # type: ClsType[Optional[JSON]]

request = build_uptime_alert_delete_request(
request = build_uptime_delete_alert_request(
check_id=check_id,
alert_id=alert_id,
headers=_headers,
Expand Down
Loading

0 comments on commit 7d87bbc

Please sign in to comment.