katana_public_api_client.api.location.get_location¶
katana_public_api_client.api.location.get_location
¶
Classes¶
Functions¶
asyncio(id, *, client)
async
¶
Retrieve a location
Retrieves the details of an existing location based on ID.
Parameters:
-
id(int) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Union[DeletableEntity, LocationType0] | None–Union[ErrorResponse, Union['DeletableEntity', 'LocationType0']]
Source code in katana_public_api_client/api/location/get_location.py
asyncio_detailed(id, *, client)
async
¶
Retrieve a location
Retrieves the details of an existing location based on ID.
Parameters:
-
id(int) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Union[DeletableEntity, LocationType0]]–Response[Union[ErrorResponse, Union['DeletableEntity', 'LocationType0']]]
Source code in katana_public_api_client/api/location/get_location.py
sync(id, *, client)
¶
Retrieve a location
Retrieves the details of an existing location based on ID.
Parameters:
-
id(int) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Union[DeletableEntity, LocationType0] | None–Union[ErrorResponse, Union['DeletableEntity', 'LocationType0']]
Source code in katana_public_api_client/api/location/get_location.py
sync_detailed(id, *, client)
¶
Retrieve a location
Retrieves the details of an existing location based on ID.
Parameters:
-
id(int) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Union[DeletableEntity, LocationType0]]–Response[Union[ErrorResponse, Union['DeletableEntity', 'LocationType0']]]