auth_get_session_memberships¶
Get memberships for the current session
Functions
- async pydelfini.delfini_core.api.auth.auth_get_session_memberships.asyncio(*, client)[source]¶
Get memberships for the current session
Returns all groups, accounts, and other session memberships relevant for the current session.
- Raises:
errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Union[SessionMemberships]
- Parameters:
client (AuthenticatedClient)
- Return type:
- async pydelfini.delfini_core.api.auth.auth_get_session_memberships.asyncio_detailed(*, client)[source]¶
Get memberships for the current session
Returns all groups, accounts, and other session memberships relevant for the current session.
- 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[ServerError, SessionMemberships]]
- Parameters:
client (AuthenticatedClient)
- Return type:
- pydelfini.delfini_core.api.auth.auth_get_session_memberships.sync(*, client)[source]¶
Get memberships for the current session
Returns all groups, accounts, and other session memberships relevant for the current session.
- Raises:
errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Union[SessionMemberships]
- Parameters:
client (AuthenticatedClient)
- Return type:
- pydelfini.delfini_core.api.auth.auth_get_session_memberships.sync_detailed(*, client)[source]¶
Get memberships for the current session
Returns all groups, accounts, and other session memberships relevant for the current session.
- 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[ServerError, SessionMemberships]]
- Parameters:
client (AuthenticatedClient)
- Return type: