Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot] [NETPROD-3582] Added name query param in list certificates: Re-Generated From digitalocean/openapi@211e816 #269

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DO_OPENAPI_COMMIT_SHA.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a7cf342
211e816
7 changes: 6 additions & 1 deletion src/pydo/aio/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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,
)
Expand Down
11 changes: 9 additions & 2 deletions src/pydo/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
Expand All @@ -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")
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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,
)
Expand Down
Loading