Module python_odpt.api.default.flight_information_arrival_operations_get_flight_information_arrivals

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>,
odptarrival_airport: Unset | str = <python_odpt.types.Unset object>,
odptarrival_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptarrival_gate: Unset | str = <python_odpt.types.Unset object>,
odptorigin_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Any | List[FlightInformationArrival] | 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,
    odptarrival_airport: Union[Unset, str] = UNSET,
    odptarrival_airport_terminal: Union[Unset, str] = UNSET,
    odptarrival_gate: Union[Unset, str] = UNSET,
    odptorigin_airport: Union[Unset, str] = UNSET,
) -> Optional[Union[Any, List["FlightInformationArrival"]]]:
    """フライト到着情報の取得

    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]):
        odptarrival_airport (Union[Unset, str]):
        odptarrival_airport_terminal (Union[Unset, str]):
        odptarrival_gate (Union[Unset, str]):
        odptorigin_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['FlightInformationArrival']]
    """

    return (
        await asyncio_detailed(
            client=client,
            aclconsumer_key=aclconsumer_key,
            owlsame_as=owlsame_as,
            odptoperator=odptoperator,
            odptairline=odptairline,
            odptflight_status=odptflight_status,
            odptarrival_airport=odptarrival_airport,
            odptarrival_airport_terminal=odptarrival_airport_terminal,
            odptarrival_gate=odptarrival_gate,
            odptorigin_airport=odptorigin_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]): odptarrival_airport (Union[Unset, str]): odptarrival_airport_terminal (Union[Unset, str]): odptarrival_gate (Union[Unset, str]): odptorigin_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['FlightInformationArrival']]

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>,
odptarrival_airport: Unset | str = <python_odpt.types.Unset object>,
odptarrival_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptarrival_gate: Unset | str = <python_odpt.types.Unset object>,
odptorigin_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Response[Any | List[FlightInformationArrival]]
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,
    odptarrival_airport: Union[Unset, str] = UNSET,
    odptarrival_airport_terminal: Union[Unset, str] = UNSET,
    odptarrival_gate: Union[Unset, str] = UNSET,
    odptorigin_airport: Union[Unset, str] = UNSET,
) -> Response[Union[Any, List["FlightInformationArrival"]]]:
    """フライト到着情報の取得

    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]):
        odptarrival_airport (Union[Unset, str]):
        odptarrival_airport_terminal (Union[Unset, str]):
        odptarrival_gate (Union[Unset, str]):
        odptorigin_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['FlightInformationArrival']]]
    """

    kwargs = _get_kwargs(
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptarrival_airport=odptarrival_airport,
        odptarrival_airport_terminal=odptarrival_airport_terminal,
        odptarrival_gate=odptarrival_gate,
        odptorigin_airport=odptorigin_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]): odptarrival_airport (Union[Unset, str]): odptarrival_airport_terminal (Union[Unset, str]): odptarrival_gate (Union[Unset, str]): odptorigin_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['FlightInformationArrival']]]

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>,
odptarrival_airport: Unset | str = <python_odpt.types.Unset object>,
odptarrival_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptarrival_gate: Unset | str = <python_odpt.types.Unset object>,
odptorigin_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Any | List[FlightInformationArrival] | 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,
    odptarrival_airport: Union[Unset, str] = UNSET,
    odptarrival_airport_terminal: Union[Unset, str] = UNSET,
    odptarrival_gate: Union[Unset, str] = UNSET,
    odptorigin_airport: Union[Unset, str] = UNSET,
) -> Optional[Union[Any, List["FlightInformationArrival"]]]:
    """フライト到着情報の取得

    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]):
        odptarrival_airport (Union[Unset, str]):
        odptarrival_airport_terminal (Union[Unset, str]):
        odptarrival_gate (Union[Unset, str]):
        odptorigin_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['FlightInformationArrival']]
    """

    return sync_detailed(
        client=client,
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptarrival_airport=odptarrival_airport,
        odptarrival_airport_terminal=odptarrival_airport_terminal,
        odptarrival_gate=odptarrival_gate,
        odptorigin_airport=odptorigin_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]): odptarrival_airport (Union[Unset, str]): odptarrival_airport_terminal (Union[Unset, str]): odptarrival_gate (Union[Unset, str]): odptorigin_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['FlightInformationArrival']]

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>,
odptarrival_airport: Unset | str = <python_odpt.types.Unset object>,
odptarrival_airport_terminal: Unset | str = <python_odpt.types.Unset object>,
odptarrival_gate: Unset | str = <python_odpt.types.Unset object>,
odptorigin_airport: Unset | str = <python_odpt.types.Unset object>) ‑> Response[Any | List[FlightInformationArrival]]
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,
    odptarrival_airport: Union[Unset, str] = UNSET,
    odptarrival_airport_terminal: Union[Unset, str] = UNSET,
    odptarrival_gate: Union[Unset, str] = UNSET,
    odptorigin_airport: Union[Unset, str] = UNSET,
) -> Response[Union[Any, List["FlightInformationArrival"]]]:
    """フライト到着情報の取得

    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]):
        odptarrival_airport (Union[Unset, str]):
        odptarrival_airport_terminal (Union[Unset, str]):
        odptarrival_gate (Union[Unset, str]):
        odptorigin_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['FlightInformationArrival']]]
    """

    kwargs = _get_kwargs(
        aclconsumer_key=aclconsumer_key,
        owlsame_as=owlsame_as,
        odptoperator=odptoperator,
        odptairline=odptairline,
        odptflight_status=odptflight_status,
        odptarrival_airport=odptarrival_airport,
        odptarrival_airport_terminal=odptarrival_airport_terminal,
        odptarrival_gate=odptarrival_gate,
        odptorigin_airport=odptorigin_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]): odptarrival_airport (Union[Unset, str]): odptarrival_airport_terminal (Union[Unset, str]): odptarrival_gate (Union[Unset, str]): odptorigin_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['FlightInformationArrival']]]