From 0c9542eaf691da237e4f34f40bc8403f53a65820 Mon Sep 17 00:00:00 2001 From: API Engineering Date: Wed, 28 Feb 2024 16:34:41 +0000 Subject: [PATCH] [bot] Updated client based on openapi-211e816/clientgen --- DO_OPENAPI_COMMIT_SHA.txt | 2 +- src/pydo/aio/operations/_operations.py | 7 ++++++- src/pydo/operations/_operations.py | 11 +++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index 43d6e2a..685a0de 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -a7cf342 +211e816 diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py index 6744610..3fb73e1 100644 --- a/src/pydo/aio/operations/_operations.py +++ b/src/pydo/aio/operations/_operations.py @@ -71030,7 +71030,9 @@ def __init__(self, *args, **kwargs) -> None: ) @distributed_trace_async - async def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSON: + async def list( + self, *, per_page: int = 20, page: int = 1, name: str = "", **kwargs: Any + ) -> JSON: """List All Certificates. To list all of the certificates available on your account, send a GET request to @@ -71040,6 +71042,8 @@ async def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSO :paramtype per_page: int :keyword page: Which 'page' of paginated results to return. Default value is 1. :paramtype page: int + :keyword name: Name of expected certificate. Default value is "". + :paramtype name: str :return: JSON object :rtype: JSON :raises ~azure.core.exceptions.HttpResponseError: @@ -71102,6 +71106,7 @@ async def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSO request = build_certificates_list_request( per_page=per_page, page=page, + name=name, headers=_headers, params=_params, ) diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py index d4c0666..aaebbd4 100644 --- a/src/pydo/operations/_operations.py +++ b/src/pydo/operations/_operations.py @@ -1095,7 +1095,7 @@ def build_cdn_purge_cache_request(cdn_id: str, **kwargs: Any) -> HttpRequest: def build_certificates_list_request( - *, per_page: int = 20, page: int = 1, **kwargs: Any + *, per_page: int = 20, page: int = 1, name: str = "", **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -1112,6 +1112,8 @@ def build_certificates_list_request( ) if page is not None: _params["page"] = _SERIALIZER.query("page", page, "int", minimum=1) + if name is not None: + _params["name"] = _SERIALIZER.query("name", name, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") @@ -77965,7 +77967,9 @@ def __init__(self, *args, **kwargs): ) @distributed_trace - def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSON: + def list( + self, *, per_page: int = 20, page: int = 1, name: str = "", **kwargs: Any + ) -> JSON: """List All Certificates. To list all of the certificates available on your account, send a GET request to @@ -77975,6 +77979,8 @@ def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSON: :paramtype per_page: int :keyword page: Which 'page' of paginated results to return. Default value is 1. :paramtype page: int + :keyword name: Name of expected certificate. Default value is "". + :paramtype name: str :return: JSON object :rtype: JSON :raises ~azure.core.exceptions.HttpResponseError: @@ -78037,6 +78043,7 @@ def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSON: request = build_certificates_list_request( per_page=per_page, page=page, + name=name, headers=_headers, params=_params, )