Module python_odpt.api.default.files_operations_get_files

Functions

async def asyncio_detailed(file_path: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[typing.Any]
Expand source code
async def asyncio_detailed(
    file_path: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Response[Any]:
    """ファイルを取得する

    Args:
        file_path (str):
        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[Any]
    """

    kwargs = _get_kwargs(
        file_path=file_path,
        aclconsumer_key=aclconsumer_key,
    )

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

    return _build_response(client=client, response=response)

ファイルを取得する

Args

file_path (str):
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[Any]

def sync_detailed(file_path: str,
*,
client: AuthenticatedClient | Client,
aclconsumer_key: str) ‑> Response[typing.Any]
Expand source code
def sync_detailed(
    file_path: str,
    *,
    client: Union[AuthenticatedClient, Client],
    aclconsumer_key: str,
) -> Response[Any]:
    """ファイルを取得する

    Args:
        file_path (str):
        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[Any]
    """

    kwargs = _get_kwargs(
        file_path=file_path,
        aclconsumer_key=aclconsumer_key,
    )

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

    return _build_response(client=client, response=response)

ファイルを取得する

Args

file_path (str):
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[Any]