Find text in files 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 re
(
self,
*,
pattern: 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,
)
| 114 | ) |
| 115 | |
| 116 | def text( |
| 117 | self, |
| 118 | *, |
| 119 | pattern: str, |
| 120 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 121 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 122 | extra_headers: Headers | None = None, |
| 123 | extra_query: Query | None = None, |
| 124 | extra_body: Body | None = None, |
| 125 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 126 | ) -> FindTextResponse: |
| 127 | """ |
| 128 | Find text in files |
| 129 | |
| 130 | Args: |
| 131 | extra_headers: Send extra headers |
| 132 | |
| 133 | extra_query: Add additional query parameters to the request |
| 134 | |
| 135 | extra_body: Add additional JSON properties to the request |
| 136 | |
| 137 | timeout: Override the client-level default timeout for this request, in seconds |
| 138 | """ |
| 139 | return self._get( |
| 140 | "/find", |
| 141 | options=make_request_options( |
| 142 | extra_headers=extra_headers, |
| 143 | extra_query=extra_query, |
| 144 | extra_body=extra_body, |
| 145 | timeout=timeout, |
| 146 | query=maybe_transform({"pattern": pattern}, find_text_params.FindTextParams), |
| 147 | ), |
| 148 | cast_to=FindTextResponse, |
| 149 | ) |
| 150 | |
| 151 | |
| 152 | class AsyncFindResource(AsyncAPIResource): |
nothing calls this directly
no test coverage detected