# DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.

from __future__ import annotations
import typing

from ..context import get_connection_context, get_session_context

import cdp.device_orientation

async def clear_device_orientation_override() -> None:
    '''
    Clears the overridden Device Orientation.
    '''
    session = get_session_context('device_orientation.clear_device_orientation_override')
    return await session.execute(cdp.device_orientation.clear_device_orientation_override())


async def set_device_orientation_override(
        alpha: float,
        beta: float,
        gamma: float
    ) -> None:
    '''
    Overrides the Device Orientation.

    :param alpha: Mock alpha
    :param beta: Mock beta
    :param gamma: Mock gamma
    '''
    session = get_session_context('device_orientation.set_device_orientation_override')
    return await session.execute(cdp.device_orientation.set_device_orientation_override(alpha, beta, gamma))
