qcs_api_client.api.reservations.create_reservation#

Module Contents#

Functions#

sync(...)

Create Reservation

sync_from_dict(...)

asyncio(...)

Create Reservation

asyncio_from_dict(...)

qcs_api_client.api.reservations.create_reservation.sync(*, client: httpx.Client, json_body: qcs_api_client.models.create_reservation_request.CreateReservationRequest, httpx_request_kwargs: Dict[str, Any] = {}) qcs_api_client.types.Response[qcs_api_client.models.reservation.Reservation]#

Create Reservation

Create a new reservation.

The following precedence applies when specifying the reservation subject account ID and type: * request body accountId field, or if unset then X-QCS-ACCOUNT-ID header, or if unset then requesting user’s ID. * request body accountType field, or if unset then X-QCS-ACCOUNT-TYPE header, or if unset then “user” type.

Parameters

json_body (CreateReservationRequest) –

Returns

Response[Reservation]

qcs_api_client.api.reservations.create_reservation.sync_from_dict(*, client: httpx.Client, json_body_dict: Dict, httpx_request_kwargs: Dict[str, Any] = {}) qcs_api_client.types.Response[qcs_api_client.models.reservation.Reservation]#
async qcs_api_client.api.reservations.create_reservation.asyncio(*, client: httpx.AsyncClient, json_body: qcs_api_client.models.create_reservation_request.CreateReservationRequest, httpx_request_kwargs: Dict[str, Any] = {}) qcs_api_client.types.Response[qcs_api_client.models.reservation.Reservation]#

Create Reservation

Create a new reservation.

The following precedence applies when specifying the reservation subject account ID and type: * request body accountId field, or if unset then X-QCS-ACCOUNT-ID header, or if unset then requesting user’s ID. * request body accountType field, or if unset then X-QCS-ACCOUNT-TYPE header, or if unset then “user” type.

Parameters

json_body (CreateReservationRequest) –

Returns

Response[Reservation]

async qcs_api_client.api.reservations.create_reservation.asyncio_from_dict(*, client: httpx.AsyncClient, json_body_dict: Dict, httpx_request_kwargs: Dict[str, Any] = {}) qcs_api_client.types.Response[qcs_api_client.models.reservation.Reservation]#