Skip to content
Open
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
571 changes: 562 additions & 9 deletions openapi/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,25 @@
from ...models.auth_forgot_password_body import AuthForgotPasswordBody
from ...models.auth_forgot_password_response_200 import AuthForgotPasswordResponse200
from ...models.error import Error
from ...types import UNSET, Unset
from typing import cast



def request_kwargs(
*,
body: AuthForgotPasswordBody,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> dict[str, Any]:
headers: dict[str, Any] = {}
if not isinstance(x_volcano_proxy_authorization, Unset):
headers["X-Volcano-Proxy-Authorization"] = x_volcano_proxy_authorization

if not isinstance(x_volcano_client_ip, Unset):
headers["X-Volcano-Client-IP"] = x_volcano_client_ip




Expand Down Expand Up @@ -49,6 +58,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res

return response_200

if response.status_code == 401:
response_401 = Error.from_dict(response.json())



return response_401

if response.status_code == 403:
response_403 = Error.from_dict(response.json())

Expand Down Expand Up @@ -82,6 +98,8 @@ def sync_detailed(
*,
client: AuthenticatedClient,
body: AuthForgotPasswordBody,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> Response[AuthForgotPasswordResponse200 | Error]:
""" Request password reset
Expand All @@ -91,6 +109,8 @@ def sync_detailed(
Project is identified via the anon key.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):
body (AuthForgotPasswordBody):

Raises:
Expand All @@ -104,6 +124,8 @@ def sync_detailed(

kwargs = request_kwargs(
body=body,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)

Expand All @@ -117,6 +139,8 @@ def sync(
*,
client: AuthenticatedClient,
body: AuthForgotPasswordBody,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> AuthForgotPasswordResponse200 | Error | None:
""" Request password reset
Expand All @@ -126,6 +150,8 @@ def sync(
Project is identified via the anon key.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):
body (AuthForgotPasswordBody):

Raises:
Expand All @@ -140,13 +166,17 @@ def sync(
return sync_detailed(
client=client,
body=body,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

).parsed

async def asyncio_detailed(
*,
client: AuthenticatedClient,
body: AuthForgotPasswordBody,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> Response[AuthForgotPasswordResponse200 | Error]:
""" Request password reset
Expand All @@ -156,6 +186,8 @@ async def asyncio_detailed(
Project is identified via the anon key.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):
body (AuthForgotPasswordBody):

Raises:
Expand All @@ -169,6 +201,8 @@ async def asyncio_detailed(

kwargs = request_kwargs(
body=body,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)

Expand All @@ -182,6 +216,8 @@ async def asyncio(
*,
client: AuthenticatedClient,
body: AuthForgotPasswordBody,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> AuthForgotPasswordResponse200 | Error | None:
""" Request password reset
Expand All @@ -191,6 +227,8 @@ async def asyncio(
Project is identified via the anon key.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):
body (AuthForgotPasswordBody):

Raises:
Expand All @@ -205,5 +243,7 @@ async def asyncio(
return (await asyncio_detailed(
client=client,
body=body,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)).parsed
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@

from ...models.auth_password_policy import AuthPasswordPolicy
from ...models.error import Error
from ...types import UNSET, Unset
from typing import cast



def request_kwargs(

*,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> dict[str, Any]:

headers: dict[str, Any] = {}
if not isinstance(x_volcano_proxy_authorization, Unset):
headers["X-Volcano-Proxy-Authorization"] = x_volcano_proxy_authorization

if not isinstance(x_volcano_client_ip, Unset):
headers["X-Volcano-Client-IP"] = x_volcano_client_ip





Expand All @@ -29,6 +40,7 @@ def request_kwargs(
}


_kwargs["headers"] = headers
return _kwargs


Expand Down Expand Up @@ -73,6 +85,8 @@ def build_response(*, client: AuthenticatedClient | Client, response: httpx.Resp
def sync_detailed(
*,
client: AuthenticatedClient,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> Response[AuthPasswordPolicy | Error]:
""" Get the effective password policy
Expand All @@ -81,6 +95,10 @@ def sync_detailed(
screening status for the project identified by the anon key. A valid
anon key is required, but no route-specific auth permission is needed.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Expand All @@ -91,7 +109,9 @@ def sync_detailed(


kwargs = request_kwargs(

x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)

response = client.get_httpx_client().request(
Expand All @@ -103,6 +123,8 @@ def sync_detailed(
def sync(
*,
client: AuthenticatedClient,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> AuthPasswordPolicy | Error | None:
""" Get the effective password policy
Expand All @@ -111,6 +133,10 @@ def sync(
screening status for the project identified by the anon key. A valid
anon key is required, but no route-specific auth permission is needed.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Expand All @@ -122,12 +148,16 @@ def sync(

return sync_detailed(
client=client,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

).parsed

async def asyncio_detailed(
*,
client: AuthenticatedClient,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> Response[AuthPasswordPolicy | Error]:
""" Get the effective password policy
Expand All @@ -136,6 +166,10 @@ async def asyncio_detailed(
screening status for the project identified by the anon key. A valid
anon key is required, but no route-specific auth permission is needed.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Expand All @@ -146,7 +180,9 @@ async def asyncio_detailed(


kwargs = request_kwargs(

x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)

response = await client.get_async_httpx_client().request(
Expand All @@ -158,6 +194,8 @@ async def asyncio_detailed(
async def asyncio(
*,
client: AuthenticatedClient,
x_volcano_proxy_authorization: str | Unset = UNSET,
x_volcano_client_ip: str | Unset = UNSET,

) -> AuthPasswordPolicy | Error | None:
""" Get the effective password policy
Expand All @@ -166,6 +204,10 @@ async def asyncio(
screening status for the project identified by the anon key. A valid
anon key is required, but no route-specific auth permission is needed.

Args:
x_volcano_proxy_authorization (str | Unset):
x_volcano_client_ip (str | Unset):

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Expand All @@ -177,5 +219,7 @@ async def asyncio(

return (await asyncio_detailed(
client=client,
x_volcano_proxy_authorization=x_volcano_proxy_authorization,
x_volcano_client_ip=x_volcano_client_ip,

)).parsed
Loading
Loading