Module python_odpt.api.default.flight_information_departure_operations_get_flight_information_departures

Functions

async def asyncio(*,
client: AuthenticatedClient | Client,
aclconsumer_key: str,
owlsame_as: Unset | str = <python_odpt.types.Unset object>,
odptoperator: Unset | str = <python_odpt.types.Unset object>,
odptairline: Unset | str = <python_odpt.types.Unset object>,
odptflight_status: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_gate: Unset | str = <python_odpt.types.Unset object>,
odptdestination_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Any | List[FlightInformationDeparture] | None
Expand source code
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
    owlsame_as: Union[Unset, str] = UNSET,
    odptoperator: Union[Unset, str] = UNSET,
    odptairline: Union[Unset, str] = UNSET,
    odptflight_status: Union[Unset, str] = UNSET,
    odptdeparture_airport: Union[Unset, str] = UNSET,
    odptdeparture_airport_terminal: Union[Unset, str] = UNSET,
    odptdeparture_gate: Union[Unset, str] = UNSET,
    odptdestination_airport: Union[Unset, str] = UNSET,
) -> Optional[Union[Any, List["FlightInformationDeparture"]]]:
    """フライト出発情報の取得

    Args:
        aclconsumer_key (str): アクセストークン
        owlsame_as (Union[Unset, str]): 固有識別子の別名 多くが`odpt.hoge:fuga`形式
        odptoperator (Union[Unset, str]):
        odptairline (Union[Unset, str]):
        odptflight_status (Union[Unset, str]):
        odptdeparture_airport (Union[Unset, str]):
        odptdeparture_airport_terminal (Union[Unset, str]):
        odptdeparture_gate (Union[Unset, str]):
        odptdestination_airport (Union[Unset, str]):

    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:
        Union[Any, List['FlightInformationDeparture']]
    """

    return (
        await asyncio_detailed(
            client=client,
            aclconsumer_key=aclconsumer_key,
            owlsame_as=owlsame_as,
            odptoperator=odptoperator,
            odptairline=odptairline,
            odptflight_status=odptflight_status,
            odptdeparture_airport=odptdeparture_airport,
            odptdeparture_airport_terminal=odptdeparture_airport_terminal,
            odptdeparture_gate=odptdeparture_gate,
            odptdestination_airport=odptdestination_airport,
        )
    ).parsed

フライト出発情報の取得

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

odptoperator (Union[Unset, str]): odptairline (Union[Unset, str]): odptflight_status (Union[Unset, str]): odptdeparture_airport (Union[Unset, str]): odptdeparture_airport_terminal (Union[Unset, str]): odptdeparture_gate (Union[Unset, str]): odptdestination_airport (Union[Unset, str]):

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

Union[Any, List['FlightInformationDeparture']]

async def asyncio_detailed(*,
client: AuthenticatedClient | Client,
aclconsumer_key: str,
owlsame_as: Unset | str = <python_odpt.types.Unset object>,
odptoperator: Unset | str = <python_odpt.types.Unset object>,
odptairline: Unset | str = <python_odpt.types.Unset object>,
odptflight_status: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_gate: Unset | str = <python_odpt.types.Unset object>,
odptdestination_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Response[Any | List[FlightInformationDeparture]]
Expand source code
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
    owlsame_as: Union[Unset, str] = UNSET,
    odptoperator: Union[Unset, str] = UNSET,
    odptairline: Union[Unset, str] = UNSET,
    odptflight_status: Union[Unset, str] = UNSET,
    odptdeparture_airport: Union[Unset, str] = UNSET,
    odptdeparture_airport_terminal: Union[Unset, str] = UNSET,
    odptdeparture_gate: Union[Unset, str] = UNSET,
    odptdestination_airport: Union[Unset, str] = UNSET,
) -> Response[Union[Any, List["FlightInformationDeparture"]]]:
    """フライト出発情報の取得

    Args:
        aclconsumer_key (str): アクセストークン
        owlsame_as (Union[Unset, str]): 固有識別子の別名 多くが`odpt.hoge:fuga`形式
        odptoperator (Union[Unset, str]):
        odptairline (Union[Unset, str]):
        odptflight_status (Union[Unset, str]):
        odptdeparture_airport (Union[Unset, str]):
        odptdeparture_airport_terminal (Union[Unset, str]):
        odptdeparture_gate (Union[Unset, str]):
        odptdestination_airport (Union[Unset, str]):

    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[Union[Any, List['FlightInformationDeparture']]]
    """

    kwargs = _get_kwargs(
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptdeparture_airport=odptdeparture_airport,
        odptdeparture_airport_terminal=odptdeparture_airport_terminal,
        odptdeparture_gate=odptdeparture_gate,
        odptdestination_airport=odptdestination_airport,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

フライト出発情報の取得

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

odptoperator (Union[Unset, str]): odptairline (Union[Unset, str]): odptflight_status (Union[Unset, str]): odptdeparture_airport (Union[Unset, str]): odptdeparture_airport_terminal (Union[Unset, str]): odptdeparture_gate (Union[Unset, str]): odptdestination_airport (Union[Unset, str]):

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[Union[Any, List['FlightInformationDeparture']]]

def sync(*,
client: AuthenticatedClient | Client,
aclconsumer_key: str,
owlsame_as: Unset | str = <python_odpt.types.Unset object>,
odptoperator: Unset | str = <python_odpt.types.Unset object>,
odptairline: Unset | str = <python_odpt.types.Unset object>,
odptflight_status: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_gate: Unset | str = <python_odpt.types.Unset object>,
odptdestination_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Any | List[FlightInformationDeparture] | None
Expand source code
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
    owlsame_as: Union[Unset, str] = UNSET,
    odptoperator: Union[Unset, str] = UNSET,
    odptairline: Union[Unset, str] = UNSET,
    odptflight_status: Union[Unset, str] = UNSET,
    odptdeparture_airport: Union[Unset, str] = UNSET,
    odptdeparture_airport_terminal: Union[Unset, str] = UNSET,
    odptdeparture_gate: Union[Unset, str] = UNSET,
    odptdestination_airport: Union[Unset, str] = UNSET,
) -> Optional[Union[Any, List["FlightInformationDeparture"]]]:
    """フライト出発情報の取得

    Args:
        aclconsumer_key (str): アクセストークン
        owlsame_as (Union[Unset, str]): 固有識別子の別名 多くが`odpt.hoge:fuga`形式
        odptoperator (Union[Unset, str]):
        odptairline (Union[Unset, str]):
        odptflight_status (Union[Unset, str]):
        odptdeparture_airport (Union[Unset, str]):
        odptdeparture_airport_terminal (Union[Unset, str]):
        odptdeparture_gate (Union[Unset, str]):
        odptdestination_airport (Union[Unset, str]):

    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:
        Union[Any, List['FlightInformationDeparture']]
    """

    return sync_detailed(
        client=client,
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptdeparture_airport=odptdeparture_airport,
        odptdeparture_airport_terminal=odptdeparture_airport_terminal,
        odptdeparture_gate=odptdeparture_gate,
        odptdestination_airport=odptdestination_airport,
    ).parsed

フライト出発情報の取得

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

odptoperator (Union[Unset, str]): odptairline (Union[Unset, str]): odptflight_status (Union[Unset, str]): odptdeparture_airport (Union[Unset, str]): odptdeparture_airport_terminal (Union[Unset, str]): odptdeparture_gate (Union[Unset, str]): odptdestination_airport (Union[Unset, str]):

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

Union[Any, List['FlightInformationDeparture']]

def sync_detailed(*,
client: AuthenticatedClient | Client,
aclconsumer_key: str,
owlsame_as: Unset | str = <python_odpt.types.Unset object>,
odptoperator: Unset | str = <python_odpt.types.Unset object>,
odptairline: Unset | str = <python_odpt.types.Unset object>,
odptflight_status: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptdeparture_gate: Unset | str = <python_odpt.types.Unset object>,
odptdestination_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Response[Any | List[FlightInformationDeparture]]
Expand source code
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
    owlsame_as: Union[Unset, str] = UNSET,
    odptoperator: Union[Unset, str] = UNSET,
    odptairline: Union[Unset, str] = UNSET,
    odptflight_status: Union[Unset, str] = UNSET,
    odptdeparture_airport: Union[Unset, str] = UNSET,
    odptdeparture_airport_terminal: Union[Unset, str] = UNSET,
    odptdeparture_gate: Union[Unset, str] = UNSET,
    odptdestination_airport: Union[Unset, str] = UNSET,
) -> Response[Union[Any, List["FlightInformationDeparture"]]]:
    """フライト出発情報の取得

    Args:
        aclconsumer_key (str): アクセストークン
        owlsame_as (Union[Unset, str]): 固有識別子の別名 多くが`odpt.hoge:fuga`形式
        odptoperator (Union[Unset, str]):
        odptairline (Union[Unset, str]):
        odptflight_status (Union[Unset, str]):
        odptdeparture_airport (Union[Unset, str]):
        odptdeparture_airport_terminal (Union[Unset, str]):
        odptdeparture_gate (Union[Unset, str]):
        odptdestination_airport (Union[Unset, str]):

    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[Union[Any, List['FlightInformationDeparture']]]
    """

    kwargs = _get_kwargs(
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptdeparture_airport=odptdeparture_airport,
        odptdeparture_airport_terminal=odptdeparture_airport_terminal,
        odptdeparture_gate=odptdeparture_gate,
        odptdestination_airport=odptdestination_airport,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)

フライト出発情報の取得

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

odptoperator (Union[Unset, str]): odptairline (Union[Unset, str]): odptflight_status (Union[Unset, str]): odptdeparture_airport (Union[Unset, str]): odptdeparture_airport_terminal (Union[Unset, str]): odptdeparture_gate (Union[Unset, str]): odptdestination_airport (Union[Unset, str]):

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[Union[Any, List['FlightInformationDeparture']]]