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
15 changes: 15 additions & 0 deletions src/blaxel/core/client/api/agents/list_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def _get_kwargs(
sort: Union[Unset, ListAgentsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListAgentsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> dict[str, Any]:
params: dict[str, Any] = {}

Expand All @@ -40,6 +41,8 @@ def _get_kwargs(

params["anchor"] = json_anchor

params["status"] = status

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 @@ -93,6 +96,7 @@ def sync_detailed(
sort: Union[Unset, ListAgentsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListAgentsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Response[Union[AgentList, Error]]:
"""List all agents

Expand All @@ -107,6 +111,7 @@ def sync_detailed(
sort (Union[Unset, ListAgentsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListAgentsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -122,6 +127,7 @@ def sync_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
)

response = client.get_httpx_client().request(
Expand All @@ -139,6 +145,7 @@ def sync(
sort: Union[Unset, ListAgentsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListAgentsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Union[AgentList, Error] | None:
"""List all agents

Expand All @@ -153,6 +160,7 @@ def sync(
sort (Union[Unset, ListAgentsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListAgentsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -169,6 +177,7 @@ def sync(
sort=sort,
q=q,
anchor=anchor,
status=status,
).parsed


Expand All @@ -180,6 +189,7 @@ async def asyncio_detailed(
sort: Union[Unset, ListAgentsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListAgentsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Response[Union[AgentList, Error]]:
"""List all agents

Expand All @@ -194,6 +204,7 @@ async def asyncio_detailed(
sort (Union[Unset, ListAgentsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListAgentsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -209,6 +220,7 @@ async def asyncio_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
)

response = await client.get_async_httpx_client().request(**kwargs)
Expand All @@ -224,6 +236,7 @@ async def asyncio(
sort: Union[Unset, ListAgentsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListAgentsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Union[AgentList, Error] | None:
"""List all agents

Expand All @@ -238,6 +251,7 @@ async def asyncio(
sort (Union[Unset, ListAgentsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListAgentsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -255,5 +269,6 @@ async def asyncio(
sort=sort,
q=q,
anchor=anchor,
status=status,
)
).parsed
15 changes: 15 additions & 0 deletions src/blaxel/core/client/api/applications/list_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def _get_kwargs(
sort: Union[Unset, ListApplicationsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListApplicationsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> dict[str, Any]:
params: dict[str, Any] = {}

Expand All @@ -40,6 +41,8 @@ def _get_kwargs(

params["anchor"] = json_anchor

params["status"] = status

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 @@ -95,6 +98,7 @@ def sync_detailed(
sort: Union[Unset, ListApplicationsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListApplicationsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Response[Union[ApplicationList, Error]]:
"""List all applications

Expand All @@ -109,6 +113,7 @@ def sync_detailed(
sort (Union[Unset, ListApplicationsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListApplicationsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -124,6 +129,7 @@ def sync_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
)

response = client.get_httpx_client().request(
Expand All @@ -141,6 +147,7 @@ def sync(
sort: Union[Unset, ListApplicationsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListApplicationsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Union[ApplicationList, Error] | None:
"""List all applications

Expand All @@ -155,6 +162,7 @@ def sync(
sort (Union[Unset, ListApplicationsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListApplicationsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -171,6 +179,7 @@ def sync(
sort=sort,
q=q,
anchor=anchor,
status=status,
).parsed


Expand All @@ -182,6 +191,7 @@ async def asyncio_detailed(
sort: Union[Unset, ListApplicationsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListApplicationsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Response[Union[ApplicationList, Error]]:
"""List all applications

Expand All @@ -196,6 +206,7 @@ async def asyncio_detailed(
sort (Union[Unset, ListApplicationsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListApplicationsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -211,6 +222,7 @@ async def asyncio_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
)

response = await client.get_async_httpx_client().request(**kwargs)
Expand All @@ -226,6 +238,7 @@ async def asyncio(
sort: Union[Unset, ListApplicationsSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListApplicationsAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
) -> Union[ApplicationList, Error] | None:
"""List all applications

Expand All @@ -240,6 +253,7 @@ async def asyncio(
sort (Union[Unset, ListApplicationsSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListApplicationsAnchor]):
status (Union[Unset, str]):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -257,5 +271,6 @@ async def asyncio(
sort=sort,
q=q,
anchor=anchor,
status=status,
)
).parsed
15 changes: 15 additions & 0 deletions src/blaxel/core/client/api/compute/list_sandboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def _get_kwargs(
sort: Union[Unset, ListSandboxesSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListSandboxesAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
) -> dict[str, Any]:
params: dict[str, Any] = {}
Expand All @@ -44,6 +45,8 @@ def _get_kwargs(

params["anchor"] = json_anchor

params["status"] = status

params["externalId"] = external_id

params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
Expand Down Expand Up @@ -102,6 +105,7 @@ def sync_detailed(
sort: Union[Unset, ListSandboxesSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListSandboxesAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
) -> Response[Union[Error, SandboxList]]:
"""List sandboxes
Expand All @@ -119,6 +123,7 @@ def sync_detailed(
sort (Union[Unset, ListSandboxesSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListSandboxesAnchor]):
status (Union[Unset, str]):
external_id (Union[Unset, str]):

Raises:
Expand All @@ -136,6 +141,7 @@ def sync_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
external_id=external_id,
)

Expand All @@ -155,6 +161,7 @@ def sync(
sort: Union[Unset, ListSandboxesSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListSandboxesAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
) -> Union[Error, SandboxList] | None:
"""List sandboxes
Expand All @@ -172,6 +179,7 @@ def sync(
sort (Union[Unset, ListSandboxesSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListSandboxesAnchor]):
status (Union[Unset, str]):
external_id (Union[Unset, str]):

Raises:
Expand All @@ -190,6 +198,7 @@ def sync(
sort=sort,
q=q,
anchor=anchor,
status=status,
external_id=external_id,
).parsed

Expand All @@ -203,6 +212,7 @@ async def asyncio_detailed(
sort: Union[Unset, ListSandboxesSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListSandboxesAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
) -> Response[Union[Error, SandboxList]]:
"""List sandboxes
Expand All @@ -220,6 +230,7 @@ async def asyncio_detailed(
sort (Union[Unset, ListSandboxesSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListSandboxesAnchor]):
status (Union[Unset, str]):
external_id (Union[Unset, str]):

Raises:
Expand All @@ -237,6 +248,7 @@ async def asyncio_detailed(
sort=sort,
q=q,
anchor=anchor,
status=status,
external_id=external_id,
)

Expand All @@ -254,6 +266,7 @@ async def asyncio(
sort: Union[Unset, ListSandboxesSort] = UNSET,
q: Union[Unset, str] = UNSET,
anchor: Union[Unset, ListSandboxesAnchor] = UNSET,
status: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
) -> Union[Error, SandboxList] | None:
"""List sandboxes
Expand All @@ -271,6 +284,7 @@ async def asyncio(
sort (Union[Unset, ListSandboxesSort]):
q (Union[Unset, str]):
anchor (Union[Unset, ListSandboxesAnchor]):
status (Union[Unset, str]):
external_id (Union[Unset, str]):

Raises:
Expand All @@ -290,6 +304,7 @@ async def asyncio(
sort=sort,
q=q,
anchor=anchor,
status=status,
external_id=external_id,
)
).parsed
Loading
Loading