Module python_odpt.api.default.data_dump_operations_dump
Functions
async def asyncio(rdf_type: DumpRDFType,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus] | None-
Expand source code
async def asyncio( rdf_type: DumpRDFType, *, client: Union[AuthenticatedClient, Client], aclconsumer_key: str, ) -> Optional[Union[Any, List[OUTPUT_TYPES]]]: """データダンプAPI Args: rdf_type (DumpRDFType): データタンプAPI対象のデータ種別 aclconsumer_key (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[OUTPUT_TYPES]] """ return ( await asyncio_detailed( rdf_type=rdf_type, client=client, aclconsumer_key=aclconsumer_key, ) ).parsed
データダンプAPI
Args
rdf_type
:DumpRDFType
- データタンプAPI対象のデータ種別
aclconsumer_key
: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[OUTPUT_TYPES]]
async def asyncio_detailed(rdf_type: DumpRDFType,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus]]-
Expand source code
async def asyncio_detailed( rdf_type: DumpRDFType, *, client: Union[AuthenticatedClient, Client], aclconsumer_key: str, ) -> Response[Union[Any, List[OUTPUT_TYPES]]]: """データダンプAPI Args: rdf_type (DumpRDFType): データタンプAPI対象のデータ種別 aclconsumer_key (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[OUTPUT_TYPES]]] """ kwargs = _get_kwargs( rdf_type=rdf_type, aclconsumer_key=aclconsumer_key, ) response = await client.get_async_httpx_client().request(**kwargs) return _build_response(client=client, response=response)
データダンプAPI
Args
rdf_type
:DumpRDFType
- データタンプAPI対象のデータ種別
aclconsumer_key
: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[OUTPUT_TYPES]]]
def sync(rdf_type: DumpRDFType,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus] | None-
Expand source code
def sync( rdf_type: DumpRDFType, *, client: Union[AuthenticatedClient, Client], aclconsumer_key: str, ) -> Optional[Union[Any, List[OUTPUT_TYPES]]]: """データダンプAPI Args: rdf_type (DumpRDFType): データタンプAPI対象のデータ種別 aclconsumer_key (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[OUTPUT_TYPES]] """ return sync_detailed( rdf_type=rdf_type, client=client, aclconsumer_key=aclconsumer_key, ).parsed
データダンプAPI
Args
rdf_type
:DumpRDFType
- データタンプAPI対象のデータ種別
aclconsumer_key
: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[OUTPUT_TYPES]]
def sync_detailed(rdf_type: DumpRDFType,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[Any | List[Calendar | Operator | Station | StationTimetable | TrainTimetable | TrainType | RailDirection | Railway | RailwayFare | PassengerSurvey | BusTimetable | BusroutePattern | BusroutePatternFare | BusstopPole | BusstopPoleTimetable | Airport | AirportTerminal | FlightSchedule | FlightStatus]]-
Expand source code
def sync_detailed( rdf_type: DumpRDFType, *, client: Union[AuthenticatedClient, Client], aclconsumer_key: str, ) -> Response[Union[Any, List[OUTPUT_TYPES]]]: """データダンプAPI Args: rdf_type (DumpRDFType): データタンプAPI対象のデータ種別 aclconsumer_key (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[OUTPUT_TYPES]]] """ kwargs = _get_kwargs( rdf_type=rdf_type, aclconsumer_key=aclconsumer_key, ) response = client.get_httpx_client().request( **kwargs, ) return _build_response(client=client, response=response)
データダンプAPI
Args
rdf_type
:DumpRDFType
- データタンプAPI対象のデータ種別
aclconsumer_key
: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[OUTPUT_TYPES]]]