cyphermed.api.roles.get_role_by_id

def sync_detailed( role_id: str, *, client: cyphermed.client.AuthenticatedClient) -> cyphermed.types.Response[typing.Union[cyphermed.models.admin_role_info.AdminRoleInfo, cyphermed.models.role_info.RoleInfo]]:

Get Role By Id

Get a role by ID

Args: role_id (str):

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.

Returns: Response[Union['AdminRoleInfo', 'RoleInfo']]

def sync( role_id: str, *, client: cyphermed.client.AuthenticatedClient) -> Union[cyphermed.models.admin_role_info.AdminRoleInfo, cyphermed.models.role_info.RoleInfo, NoneType]:

Get Role By Id

Get a role by ID

Args: role_id (str):

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.

Returns: Union['AdminRoleInfo', 'RoleInfo']

async def asyncio_detailed( role_id: str, *, client: cyphermed.client.AuthenticatedClient) -> cyphermed.types.Response[typing.Union[cyphermed.models.admin_role_info.AdminRoleInfo, cyphermed.models.role_info.RoleInfo]]:

Get Role By Id

Get a role by ID

Args: role_id (str):

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.

Returns: Response[Union['AdminRoleInfo', 'RoleInfo']]

async def asyncio( role_id: str, *, client: cyphermed.client.AuthenticatedClient) -> Union[cyphermed.models.admin_role_info.AdminRoleInfo, cyphermed.models.role_info.RoleInfo, NoneType]:

Get Role By Id

Get a role by ID

Args: role_id (str):

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.

Returns: Union['AdminRoleInfo', 'RoleInfo']