Skip to content
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
47 changes: 46 additions & 1 deletion nuon/api/installs/get_install_role_usages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@
from ...client import AuthenticatedClient, Client
from ...models.app_install_role_usage import AppInstallRoleUsage
from ...models.stderr_err_response import StderrErrResponse
from ...types import UNSET, Response
from ...types import UNSET, Response, Unset


def _get_kwargs(
install_id: str,
*,
role_name: str,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["role_name"] = role_name

params["offset"] = offset

params["limit"] = limit

params["page"] = page

params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

_kwargs: dict[str, Any] = {
Expand Down Expand Up @@ -94,6 +103,9 @@ def sync_detailed(
*,
client: AuthenticatedClient,
role_name: str,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppInstallRoleUsage]]:
"""get install role usages

Expand All @@ -102,6 +114,9 @@ def sync_detailed(
Args:
install_id (str):
role_name (str):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -114,6 +129,9 @@ def sync_detailed(
kwargs = _get_kwargs(
install_id=install_id,
role_name=role_name,
offset=offset,
limit=limit,
page=page,
)

response = client.get_httpx_client().request(
Expand All @@ -128,6 +146,9 @@ def sync(
*,
client: AuthenticatedClient,
role_name: str,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppInstallRoleUsage] | None:
"""get install role usages

Expand All @@ -136,6 +157,9 @@ def sync(
Args:
install_id (str):
role_name (str):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -149,6 +173,9 @@ def sync(
install_id=install_id,
client=client,
role_name=role_name,
offset=offset,
limit=limit,
page=page,
).parsed


Expand All @@ -157,6 +184,9 @@ async def asyncio_detailed(
*,
client: AuthenticatedClient,
role_name: str,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppInstallRoleUsage]]:
"""get install role usages

Expand All @@ -165,6 +195,9 @@ async def asyncio_detailed(
Args:
install_id (str):
role_name (str):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -177,6 +210,9 @@ async def asyncio_detailed(
kwargs = _get_kwargs(
install_id=install_id,
role_name=role_name,
offset=offset,
limit=limit,
page=page,
)

response = await client.get_async_httpx_client().request(**kwargs)
Expand All @@ -189,6 +225,9 @@ async def asyncio(
*,
client: AuthenticatedClient,
role_name: str,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppInstallRoleUsage] | None:
"""get install role usages

Expand All @@ -197,6 +236,9 @@ async def asyncio(
Args:
install_id (str):
role_name (str):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -211,5 +253,8 @@ async def asyncio(
install_id=install_id,
client=client,
role_name=role_name,
offset=offset,
limit=limit,
page=page,
)
).parsed
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nuon"
version = "0.19.1017"
version = "0.19.1019"
description = "A client library for accessing Nuon"
authors = []
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.19.1017
0.19.1019
Loading