Read a file Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for this request,
(
self,
*,
path: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
)
| 118 | return AsyncFileResourceWithStreamingResponse(self) |
| 119 | |
| 120 | async def read( |
| 121 | self, |
| 122 | *, |
| 123 | path: str, |
| 124 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 125 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 126 | extra_headers: Headers | None = None, |
| 127 | extra_query: Query | None = None, |
| 128 | extra_body: Body | None = None, |
| 129 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 130 | ) -> FileReadResponse: |
| 131 | """ |
| 132 | Read a file |
| 133 | |
| 134 | Args: |
| 135 | extra_headers: Send extra headers |
| 136 | |
| 137 | extra_query: Add additional query parameters to the request |
| 138 | |
| 139 | extra_body: Add additional JSON properties to the request |
| 140 | |
| 141 | timeout: Override the client-level default timeout for this request, in seconds |
| 142 | """ |
| 143 | return await self._get( |
| 144 | "/file", |
| 145 | options=make_request_options( |
| 146 | extra_headers=extra_headers, |
| 147 | extra_query=extra_query, |
| 148 | extra_body=extra_body, |
| 149 | timeout=timeout, |
| 150 | query=await async_maybe_transform({"path": path}, file_read_params.FileReadParams), |
| 151 | ), |
| 152 | cast_to=FileReadResponse, |
| 153 | ) |
| 154 | |
| 155 | async def status( |
| 156 | self, |
nothing calls this directly
no test coverage detected