cyphermed.api.devices.create_device

def sync_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_device_body.CreateDeviceBody) -> cyphermed.types.Response[cyphermed.models.new_device_info.NewDeviceInfo]:

Create Device

Create a new device

Args: body (CreateDeviceBody): Create a new device

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[NewDeviceInfo]

def sync( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_device_body.CreateDeviceBody) -> Optional[cyphermed.models.new_device_info.NewDeviceInfo]:

Create Device

Create a new device

Args: body (CreateDeviceBody): Create a new device

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: NewDeviceInfo

async def asyncio_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_device_body.CreateDeviceBody) -> cyphermed.types.Response[cyphermed.models.new_device_info.NewDeviceInfo]:

Create Device

Create a new device

Args: body (CreateDeviceBody): Create a new device

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[NewDeviceInfo]

async def asyncio( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_device_body.CreateDeviceBody) -> Optional[cyphermed.models.new_device_info.NewDeviceInfo]:

Create Device

Create a new device

Args: body (CreateDeviceBody): Create a new device

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: NewDeviceInfo