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
53 changes: 52 additions & 1 deletion nuon/api/installs/get_install_workflow_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@
from ...client import AuthenticatedClient, Client
from ...models.app_workflow_step import AppWorkflowStep
from ...models.stderr_err_response import StderrErrResponse
from ...types import Response
from ...types import UNSET, Response, Unset


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

params: dict[str, Any] = {}

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] = {
"method": "get",
"url": "/v1/install-workflows/{install_workflow_id}/steps".format(
install_workflow_id=quote(str(install_workflow_id), safe=""),
),
"params": params,
}

return _kwargs
Expand Down Expand Up @@ -84,13 +99,19 @@ def sync_detailed(
install_workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppWorkflowStep]]:
"""get all of the steps for a given install workflow

Return all steps for a workflow.

Args:
install_workflow_id (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 @@ -102,6 +123,9 @@ def sync_detailed(

kwargs = _get_kwargs(
install_workflow_id=install_workflow_id,
offset=offset,
limit=limit,
page=page,
)

response = client.get_httpx_client().request(
Expand All @@ -115,13 +139,19 @@ def sync(
install_workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppWorkflowStep] | None:
"""get all of the steps for a given install workflow

Return all steps for a workflow.

Args:
install_workflow_id (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 @@ -134,20 +164,29 @@ def sync(
return sync_detailed(
install_workflow_id=install_workflow_id,
client=client,
offset=offset,
limit=limit,
page=page,
).parsed


async def asyncio_detailed(
install_workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppWorkflowStep]]:
"""get all of the steps for a given install workflow

Return all steps for a workflow.

Args:
install_workflow_id (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 @@ -159,6 +198,9 @@ async def asyncio_detailed(

kwargs = _get_kwargs(
install_workflow_id=install_workflow_id,
offset=offset,
limit=limit,
page=page,
)

response = await client.get_async_httpx_client().request(**kwargs)
Expand All @@ -170,13 +212,19 @@ async def asyncio(
install_workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppWorkflowStep] | None:
"""get all of the steps for a given install workflow

Return all steps for a workflow.

Args:
install_workflow_id (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 @@ -190,5 +238,8 @@ async def asyncio(
await asyncio_detailed(
install_workflow_id=install_workflow_id,
client=client,
offset=offset,
limit=limit,
page=page,
)
).parsed
53 changes: 52 additions & 1 deletion nuon/api/installs/get_workflow_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@
from ...client import AuthenticatedClient, Client
from ...models.app_workflow_step import AppWorkflowStep
from ...models.stderr_err_response import StderrErrResponse
from ...types import Response
from ...types import UNSET, Response, Unset


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

params: dict[str, Any] = {}

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] = {
"method": "get",
"url": "/v1/workflows/{workflow_id}/steps".format(
workflow_id=quote(str(workflow_id), safe=""),
),
"params": params,
}

return _kwargs
Expand Down Expand Up @@ -84,13 +99,19 @@ def sync_detailed(
workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppWorkflowStep]]:
"""get all of the steps for a given workflow

Return all steps for a workflow.

Args:
workflow_id (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 @@ -102,6 +123,9 @@ def sync_detailed(

kwargs = _get_kwargs(
workflow_id=workflow_id,
offset=offset,
limit=limit,
page=page,
)

response = client.get_httpx_client().request(
Expand All @@ -115,13 +139,19 @@ def sync(
workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppWorkflowStep] | None:
"""get all of the steps for a given workflow

Return all steps for a workflow.

Args:
workflow_id (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 @@ -134,20 +164,29 @@ def sync(
return sync_detailed(
workflow_id=workflow_id,
client=client,
offset=offset,
limit=limit,
page=page,
).parsed


async def asyncio_detailed(
workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> Response[StderrErrResponse | list[AppWorkflowStep]]:
"""get all of the steps for a given workflow

Return all steps for a workflow.

Args:
workflow_id (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 @@ -159,6 +198,9 @@ async def asyncio_detailed(

kwargs = _get_kwargs(
workflow_id=workflow_id,
offset=offset,
limit=limit,
page=page,
)

response = await client.get_async_httpx_client().request(**kwargs)
Expand All @@ -170,13 +212,19 @@ async def asyncio(
workflow_id: str,
*,
client: AuthenticatedClient,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
) -> StderrErrResponse | list[AppWorkflowStep] | None:
"""get all of the steps for a given workflow

Return all steps for a workflow.

Args:
workflow_id (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 @@ -190,5 +238,8 @@ async def asyncio(
await asyncio_detailed(
workflow_id=workflow_id,
client=client,
offset=offset,
limit=limit,
page=page,
)
).parsed
1 change: 1 addition & 0 deletions nuon/api/notebooks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Contains endpoint functions for accessing the API"""
Loading
Loading