cyphermed.api.devices.open_device_tunnel

def sync_detailed( device_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_tunnel_body.CreateTunnelBody) -> cyphermed.types.Response[cyphermed.models.new_tunnel_info.NewTunnelInfo]:

Open Device Tunnel

Create a new tunnel for a device

Args: device_id (str): body (CreateTunnelBody): Create a new tunnel

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

def sync( device_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_tunnel_body.CreateTunnelBody) -> Optional[cyphermed.models.new_tunnel_info.NewTunnelInfo]:

Open Device Tunnel

Create a new tunnel for a device

Args: device_id (str): body (CreateTunnelBody): Create a new tunnel

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

async def asyncio_detailed( device_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_tunnel_body.CreateTunnelBody) -> cyphermed.types.Response[cyphermed.models.new_tunnel_info.NewTunnelInfo]:

Open Device Tunnel

Create a new tunnel for a device

Args: device_id (str): body (CreateTunnelBody): Create a new tunnel

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

async def asyncio( device_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_tunnel_body.CreateTunnelBody) -> Optional[cyphermed.models.new_tunnel_info.NewTunnelInfo]:

Open Device Tunnel

Create a new tunnel for a device

Args: device_id (str): body (CreateTunnelBody): Create a new tunnel

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