blaxel 0.2.26rc119__py3-none-any.whl → 0.2.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. blaxel/__init__.py +3 -5
  2. blaxel/core/__init__.py +9 -1
  3. blaxel/core/client/api/{privateclusters/create_private_cluster.py → images/cleanup_images.py} +31 -25
  4. blaxel/core/client/models/__init__.py +2 -4
  5. blaxel/core/client/models/agent.py +1 -0
  6. blaxel/core/client/models/agent_spec.py +1 -24
  7. blaxel/core/client/models/billable_time_metric.py +1 -0
  8. blaxel/core/{sandbox/client/models/find_match.py → client/models/cleanup_images_response_200.py} +19 -19
  9. blaxel/core/client/models/configuration.py +1 -0
  10. blaxel/core/client/models/core_event.py +9 -0
  11. blaxel/core/client/models/core_spec.py +1 -24
  12. blaxel/core/client/models/core_spec_configurations.py +1 -0
  13. blaxel/core/client/models/create_job_execution_request.py +1 -0
  14. blaxel/core/client/models/create_job_execution_response.py +1 -0
  15. blaxel/core/client/models/custom_domain.py +1 -0
  16. blaxel/core/client/models/custom_domain_metadata.py +1 -0
  17. blaxel/core/client/models/custom_domain_spec.py +1 -0
  18. blaxel/core/client/models/delete_volume_template_version_response_200.py +1 -0
  19. blaxel/core/client/models/entrypoint.py +1 -0
  20. blaxel/core/client/models/form.py +1 -0
  21. blaxel/core/client/models/function.py +1 -0
  22. blaxel/core/client/models/function_spec.py +1 -24
  23. blaxel/core/client/models/image.py +1 -0
  24. blaxel/core/client/models/image_spec.py +1 -0
  25. blaxel/core/client/models/integration.py +1 -0
  26. blaxel/core/client/models/integration_connection.py +1 -0
  27. blaxel/core/client/models/integration_connection_spec.py +1 -0
  28. blaxel/core/client/models/integration_endpoint.py +1 -0
  29. blaxel/core/client/models/integration_endpoints.py +2 -0
  30. blaxel/core/client/models/job.py +1 -0
  31. blaxel/core/client/models/job_execution.py +1 -0
  32. blaxel/core/client/models/job_execution_spec.py +1 -0
  33. blaxel/core/client/models/job_execution_task.py +1 -0
  34. blaxel/core/client/models/job_metrics.py +1 -0
  35. blaxel/core/client/models/job_spec.py +1 -24
  36. blaxel/core/client/models/jobs_network_chart.py +1 -0
  37. blaxel/core/client/models/jobs_success_failed_chart.py +1 -0
  38. blaxel/core/client/models/latency_metric.py +1 -0
  39. blaxel/core/client/models/location_response.py +1 -0
  40. blaxel/core/client/models/mcp_definition.py +1 -0
  41. blaxel/core/client/models/metadata.py +1 -0
  42. blaxel/core/client/models/metrics.py +34 -0
  43. blaxel/core/client/models/model.py +1 -0
  44. blaxel/core/client/models/model_spec.py +1 -24
  45. blaxel/core/client/models/pending_invitation_accept.py +1 -0
  46. blaxel/core/client/models/pending_invitation_render.py +1 -0
  47. blaxel/core/client/models/policy.py +1 -0
  48. blaxel/core/client/models/policy_spec.py +1 -0
  49. blaxel/core/client/models/preview.py +1 -0
  50. blaxel/core/client/models/preview_spec.py +1 -0
  51. blaxel/core/client/models/preview_token.py +1 -0
  52. blaxel/core/client/models/public_ips.py +1 -0
  53. blaxel/core/client/models/request_duration_over_time_metrics.py +1 -0
  54. blaxel/core/client/models/request_total_by_origin_metric.py +1 -0
  55. blaxel/core/client/models/request_total_metric.py +1 -0
  56. blaxel/core/client/models/resource_metrics.py +1 -0
  57. blaxel/core/client/models/revision_configuration.py +9 -0
  58. blaxel/core/client/models/runtime.py +1 -0
  59. blaxel/core/client/models/sandbox.py +1 -0
  60. blaxel/core/client/models/sandbox_definition.py +1 -0
  61. blaxel/core/client/models/sandbox_lifecycle.py +1 -0
  62. blaxel/core/client/models/sandbox_spec.py +1 -24
  63. blaxel/core/client/models/serverless_config.py +1 -0
  64. blaxel/core/client/models/start_sandbox.py +1 -0
  65. blaxel/core/client/models/stop_sandbox.py +1 -0
  66. blaxel/core/client/models/store_agent.py +1 -0
  67. blaxel/core/client/models/store_configuration.py +1 -0
  68. blaxel/core/client/models/template.py +1 -0
  69. blaxel/core/client/models/time_to_first_token_over_time_metrics.py +1 -0
  70. blaxel/core/client/models/token_rate_metrics.py +1 -0
  71. blaxel/core/client/models/trigger.py +10 -0
  72. blaxel/core/client/models/trigger_configuration.py +28 -0
  73. blaxel/core/client/models/volume.py +1 -0
  74. blaxel/core/client/models/volume_template.py +1 -0
  75. blaxel/core/client/models/websocket_channel.py +9 -0
  76. blaxel/core/client/models/workspace.py +1 -0
  77. blaxel/core/client/response_interceptor.py +0 -1
  78. blaxel/core/common/__init__.py +11 -2
  79. blaxel/core/common/autoload.py +1 -85
  80. blaxel/core/common/settings.py +56 -16
  81. blaxel/core/common/webhook.py +187 -0
  82. blaxel/core/jobs/__init__.py +352 -3
  83. blaxel/core/sandbox/client/models/__init__.py +0 -16
  84. blaxel/core/sandbox/default/action.py +10 -27
  85. blaxel/core/sandbox/default/filesystem.py +47 -185
  86. blaxel/core/sandbox/default/interpreter.py +55 -62
  87. blaxel/core/sandbox/default/process.py +46 -66
  88. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.27.dist-info}/METADATA +2 -3
  89. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.27.dist-info}/RECORD +91 -114
  90. blaxel/core/client/api/privateclusters/__init__.py +0 -0
  91. blaxel/core/client/api/privateclusters/delete_private_cluster.py +0 -152
  92. blaxel/core/client/api/privateclusters/get_private_cluster.py +0 -155
  93. blaxel/core/client/api/privateclusters/get_private_cluster_health.py +0 -97
  94. blaxel/core/client/api/privateclusters/list_private_clusters.py +0 -136
  95. blaxel/core/client/api/privateclusters/update_private_cluster.py +0 -152
  96. blaxel/core/client/api/privateclusters/update_private_cluster_health.py +0 -97
  97. blaxel/core/client/models/model_private_cluster.py +0 -79
  98. blaxel/core/client/models/private_cluster.py +0 -183
  99. blaxel/core/sandbox/client/api/filesystem/delete_filesystem_tree_path.py +0 -188
  100. blaxel/core/sandbox/client/api/filesystem/get_filesystem_content_search_path.py +0 -265
  101. blaxel/core/sandbox/client/api/filesystem/get_filesystem_find_path.py +0 -248
  102. blaxel/core/sandbox/client/api/filesystem/get_filesystem_search_path.py +0 -237
  103. blaxel/core/sandbox/client/api/filesystem/get_filesystem_tree_path.py +0 -197
  104. blaxel/core/sandbox/client/api/filesystem/put_filesystem_tree_path.py +0 -223
  105. blaxel/core/sandbox/client/api/websocket/__init__.py +0 -0
  106. blaxel/core/sandbox/client/api/websocket/get_ws.py +0 -81
  107. blaxel/core/sandbox/client/models/content_search_match.py +0 -98
  108. blaxel/core/sandbox/client/models/content_search_response.py +0 -97
  109. blaxel/core/sandbox/client/models/find_response.py +0 -88
  110. blaxel/core/sandbox/client/models/fuzzy_search_match.py +0 -78
  111. blaxel/core/sandbox/client/models/fuzzy_search_response.py +0 -88
  112. blaxel/core/sandbox/client/models/tree_request.py +0 -76
  113. blaxel/core/sandbox/client/models/tree_request_files.py +0 -49
  114. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.27.dist-info}/WHEEL +0 -0
  115. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.27.dist-info}/licenses/LICENSE +0 -0
@@ -1,265 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import Client
8
- from ...models.content_search_response import ContentSearchResponse
9
- from ...models.error_response import ErrorResponse
10
- from ...types import UNSET, Response, Unset
11
-
12
-
13
- def _get_kwargs(
14
- path: str,
15
- *,
16
- query: str,
17
- case_sensitive: Union[Unset, bool] = UNSET,
18
- context_lines: Union[Unset, int] = UNSET,
19
- max_results: Union[Unset, int] = UNSET,
20
- file_pattern: Union[Unset, str] = UNSET,
21
- exclude_dirs: Union[Unset, str] = UNSET,
22
- ) -> dict[str, Any]:
23
- params: dict[str, Any] = {}
24
-
25
- params["query"] = query
26
-
27
- params["caseSensitive"] = case_sensitive
28
-
29
- params["contextLines"] = context_lines
30
-
31
- params["maxResults"] = max_results
32
-
33
- params["filePattern"] = file_pattern
34
-
35
- params["excludeDirs"] = exclude_dirs
36
-
37
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
38
-
39
- _kwargs: dict[str, Any] = {
40
- "method": "get",
41
- "url": f"/filesystem-content-search/{path}",
42
- "params": params,
43
- }
44
-
45
- return _kwargs
46
-
47
-
48
- def _parse_response(*, client: Client, response: httpx.Response) -> Union[ContentSearchResponse, ErrorResponse] | None:
49
- if response.status_code == 200:
50
- response_200 = ContentSearchResponse.from_dict(response.json())
51
-
52
- return response_200
53
- if response.status_code == 400:
54
- response_400 = ErrorResponse.from_dict(response.json())
55
-
56
- return response_400
57
- if response.status_code == 422:
58
- response_422 = ErrorResponse.from_dict(response.json())
59
-
60
- return response_422
61
- if response.status_code == 500:
62
- response_500 = ErrorResponse.from_dict(response.json())
63
-
64
- return response_500
65
- if client.raise_on_unexpected_status:
66
- raise errors.UnexpectedStatus(response.status_code, response.content)
67
- else:
68
- return None
69
-
70
-
71
- def _build_response(
72
- *, client: Client, response: httpx.Response
73
- ) -> Response[Union[ContentSearchResponse, ErrorResponse]]:
74
- return Response(
75
- status_code=HTTPStatus(response.status_code),
76
- content=response.content,
77
- headers=response.headers,
78
- parsed=_parse_response(client=client, response=response),
79
- )
80
-
81
-
82
- def sync_detailed(
83
- path: str,
84
- *,
85
- client: Union[Client],
86
- query: str,
87
- case_sensitive: Union[Unset, bool] = UNSET,
88
- context_lines: Union[Unset, int] = UNSET,
89
- max_results: Union[Unset, int] = UNSET,
90
- file_pattern: Union[Unset, str] = UNSET,
91
- exclude_dirs: Union[Unset, str] = UNSET,
92
- ) -> Response[Union[ContentSearchResponse, ErrorResponse]]:
93
- """Search for text content in files
94
-
95
- Searches for text content inside files using ripgrep. Returns matching lines with context.
96
-
97
- Args:
98
- path (str):
99
- query (str):
100
- case_sensitive (Union[Unset, bool]):
101
- context_lines (Union[Unset, int]):
102
- max_results (Union[Unset, int]):
103
- file_pattern (Union[Unset, str]):
104
- exclude_dirs (Union[Unset, str]):
105
-
106
- Raises:
107
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
- httpx.TimeoutException: If the request takes longer than Client.timeout.
109
-
110
- Returns:
111
- Response[Union[ContentSearchResponse, ErrorResponse]]
112
- """
113
-
114
- kwargs = _get_kwargs(
115
- path=path,
116
- query=query,
117
- case_sensitive=case_sensitive,
118
- context_lines=context_lines,
119
- max_results=max_results,
120
- file_pattern=file_pattern,
121
- exclude_dirs=exclude_dirs,
122
- )
123
-
124
- response = client.get_httpx_client().request(
125
- **kwargs,
126
- )
127
-
128
- return _build_response(client=client, response=response)
129
-
130
-
131
- def sync(
132
- path: str,
133
- *,
134
- client: Union[Client],
135
- query: str,
136
- case_sensitive: Union[Unset, bool] = UNSET,
137
- context_lines: Union[Unset, int] = UNSET,
138
- max_results: Union[Unset, int] = UNSET,
139
- file_pattern: Union[Unset, str] = UNSET,
140
- exclude_dirs: Union[Unset, str] = UNSET,
141
- ) -> Union[ContentSearchResponse, ErrorResponse] | None:
142
- """Search for text content in files
143
-
144
- Searches for text content inside files using ripgrep. Returns matching lines with context.
145
-
146
- Args:
147
- path (str):
148
- query (str):
149
- case_sensitive (Union[Unset, bool]):
150
- context_lines (Union[Unset, int]):
151
- max_results (Union[Unset, int]):
152
- file_pattern (Union[Unset, str]):
153
- exclude_dirs (Union[Unset, str]):
154
-
155
- Raises:
156
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
157
- httpx.TimeoutException: If the request takes longer than Client.timeout.
158
-
159
- Returns:
160
- Union[ContentSearchResponse, ErrorResponse]
161
- """
162
-
163
- return sync_detailed(
164
- path=path,
165
- client=client,
166
- query=query,
167
- case_sensitive=case_sensitive,
168
- context_lines=context_lines,
169
- max_results=max_results,
170
- file_pattern=file_pattern,
171
- exclude_dirs=exclude_dirs,
172
- ).parsed
173
-
174
-
175
- async def asyncio_detailed(
176
- path: str,
177
- *,
178
- client: Union[Client],
179
- query: str,
180
- case_sensitive: Union[Unset, bool] = UNSET,
181
- context_lines: Union[Unset, int] = UNSET,
182
- max_results: Union[Unset, int] = UNSET,
183
- file_pattern: Union[Unset, str] = UNSET,
184
- exclude_dirs: Union[Unset, str] = UNSET,
185
- ) -> Response[Union[ContentSearchResponse, ErrorResponse]]:
186
- """Search for text content in files
187
-
188
- Searches for text content inside files using ripgrep. Returns matching lines with context.
189
-
190
- Args:
191
- path (str):
192
- query (str):
193
- case_sensitive (Union[Unset, bool]):
194
- context_lines (Union[Unset, int]):
195
- max_results (Union[Unset, int]):
196
- file_pattern (Union[Unset, str]):
197
- exclude_dirs (Union[Unset, str]):
198
-
199
- Raises:
200
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
201
- httpx.TimeoutException: If the request takes longer than Client.timeout.
202
-
203
- Returns:
204
- Response[Union[ContentSearchResponse, ErrorResponse]]
205
- """
206
-
207
- kwargs = _get_kwargs(
208
- path=path,
209
- query=query,
210
- case_sensitive=case_sensitive,
211
- context_lines=context_lines,
212
- max_results=max_results,
213
- file_pattern=file_pattern,
214
- exclude_dirs=exclude_dirs,
215
- )
216
-
217
- response = await client.get_async_httpx_client().request(**kwargs)
218
-
219
- return _build_response(client=client, response=response)
220
-
221
-
222
- async def asyncio(
223
- path: str,
224
- *,
225
- client: Union[Client],
226
- query: str,
227
- case_sensitive: Union[Unset, bool] = UNSET,
228
- context_lines: Union[Unset, int] = UNSET,
229
- max_results: Union[Unset, int] = UNSET,
230
- file_pattern: Union[Unset, str] = UNSET,
231
- exclude_dirs: Union[Unset, str] = UNSET,
232
- ) -> Union[ContentSearchResponse, ErrorResponse] | None:
233
- """Search for text content in files
234
-
235
- Searches for text content inside files using ripgrep. Returns matching lines with context.
236
-
237
- Args:
238
- path (str):
239
- query (str):
240
- case_sensitive (Union[Unset, bool]):
241
- context_lines (Union[Unset, int]):
242
- max_results (Union[Unset, int]):
243
- file_pattern (Union[Unset, str]):
244
- exclude_dirs (Union[Unset, str]):
245
-
246
- Raises:
247
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
248
- httpx.TimeoutException: If the request takes longer than Client.timeout.
249
-
250
- Returns:
251
- Union[ContentSearchResponse, ErrorResponse]
252
- """
253
-
254
- return (
255
- await asyncio_detailed(
256
- path=path,
257
- client=client,
258
- query=query,
259
- case_sensitive=case_sensitive,
260
- context_lines=context_lines,
261
- max_results=max_results,
262
- file_pattern=file_pattern,
263
- exclude_dirs=exclude_dirs,
264
- )
265
- ).parsed
@@ -1,248 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import Client
8
- from ...models.error_response import ErrorResponse
9
- from ...models.find_response import FindResponse
10
- from ...types import UNSET, Response, Unset
11
-
12
-
13
- def _get_kwargs(
14
- path: str,
15
- *,
16
- type_: Union[Unset, str] = UNSET,
17
- patterns: Union[Unset, str] = UNSET,
18
- max_results: Union[Unset, int] = UNSET,
19
- exclude_dirs: Union[Unset, str] = UNSET,
20
- exclude_hidden: Union[Unset, bool] = UNSET,
21
- ) -> dict[str, Any]:
22
- params: dict[str, Any] = {}
23
-
24
- params["type"] = type_
25
-
26
- params["patterns"] = patterns
27
-
28
- params["maxResults"] = max_results
29
-
30
- params["excludeDirs"] = exclude_dirs
31
-
32
- params["excludeHidden"] = exclude_hidden
33
-
34
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
35
-
36
- _kwargs: dict[str, Any] = {
37
- "method": "get",
38
- "url": f"/filesystem-find/{path}",
39
- "params": params,
40
- }
41
-
42
- return _kwargs
43
-
44
-
45
- def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorResponse, FindResponse] | None:
46
- if response.status_code == 200:
47
- response_200 = FindResponse.from_dict(response.json())
48
-
49
- return response_200
50
- if response.status_code == 400:
51
- response_400 = ErrorResponse.from_dict(response.json())
52
-
53
- return response_400
54
- if response.status_code == 422:
55
- response_422 = ErrorResponse.from_dict(response.json())
56
-
57
- return response_422
58
- if response.status_code == 500:
59
- response_500 = ErrorResponse.from_dict(response.json())
60
-
61
- return response_500
62
- if client.raise_on_unexpected_status:
63
- raise errors.UnexpectedStatus(response.status_code, response.content)
64
- else:
65
- return None
66
-
67
-
68
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[ErrorResponse, FindResponse]]:
69
- return Response(
70
- status_code=HTTPStatus(response.status_code),
71
- content=response.content,
72
- headers=response.headers,
73
- parsed=_parse_response(client=client, response=response),
74
- )
75
-
76
-
77
- def sync_detailed(
78
- path: str,
79
- *,
80
- client: Union[Client],
81
- type_: Union[Unset, str] = UNSET,
82
- patterns: Union[Unset, str] = UNSET,
83
- max_results: Union[Unset, int] = UNSET,
84
- exclude_dirs: Union[Unset, str] = UNSET,
85
- exclude_hidden: Union[Unset, bool] = UNSET,
86
- ) -> Response[Union[ErrorResponse, FindResponse]]:
87
- """Find files and directories
88
-
89
- Finds files and directories using the find command.
90
-
91
- Args:
92
- path (str):
93
- type_ (Union[Unset, str]):
94
- patterns (Union[Unset, str]):
95
- max_results (Union[Unset, int]):
96
- exclude_dirs (Union[Unset, str]):
97
- exclude_hidden (Union[Unset, bool]):
98
-
99
- Raises:
100
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
- httpx.TimeoutException: If the request takes longer than Client.timeout.
102
-
103
- Returns:
104
- Response[Union[ErrorResponse, FindResponse]]
105
- """
106
-
107
- kwargs = _get_kwargs(
108
- path=path,
109
- type_=type_,
110
- patterns=patterns,
111
- max_results=max_results,
112
- exclude_dirs=exclude_dirs,
113
- exclude_hidden=exclude_hidden,
114
- )
115
-
116
- response = client.get_httpx_client().request(
117
- **kwargs,
118
- )
119
-
120
- return _build_response(client=client, response=response)
121
-
122
-
123
- def sync(
124
- path: str,
125
- *,
126
- client: Union[Client],
127
- type_: Union[Unset, str] = UNSET,
128
- patterns: Union[Unset, str] = UNSET,
129
- max_results: Union[Unset, int] = UNSET,
130
- exclude_dirs: Union[Unset, str] = UNSET,
131
- exclude_hidden: Union[Unset, bool] = UNSET,
132
- ) -> Union[ErrorResponse, FindResponse] | None:
133
- """Find files and directories
134
-
135
- Finds files and directories using the find command.
136
-
137
- Args:
138
- path (str):
139
- type_ (Union[Unset, str]):
140
- patterns (Union[Unset, str]):
141
- max_results (Union[Unset, int]):
142
- exclude_dirs (Union[Unset, str]):
143
- exclude_hidden (Union[Unset, bool]):
144
-
145
- Raises:
146
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
147
- httpx.TimeoutException: If the request takes longer than Client.timeout.
148
-
149
- Returns:
150
- Union[ErrorResponse, FindResponse]
151
- """
152
-
153
- return sync_detailed(
154
- path=path,
155
- client=client,
156
- type_=type_,
157
- patterns=patterns,
158
- max_results=max_results,
159
- exclude_dirs=exclude_dirs,
160
- exclude_hidden=exclude_hidden,
161
- ).parsed
162
-
163
-
164
- async def asyncio_detailed(
165
- path: str,
166
- *,
167
- client: Union[Client],
168
- type_: Union[Unset, str] = UNSET,
169
- patterns: Union[Unset, str] = UNSET,
170
- max_results: Union[Unset, int] = UNSET,
171
- exclude_dirs: Union[Unset, str] = UNSET,
172
- exclude_hidden: Union[Unset, bool] = UNSET,
173
- ) -> Response[Union[ErrorResponse, FindResponse]]:
174
- """Find files and directories
175
-
176
- Finds files and directories using the find command.
177
-
178
- Args:
179
- path (str):
180
- type_ (Union[Unset, str]):
181
- patterns (Union[Unset, str]):
182
- max_results (Union[Unset, int]):
183
- exclude_dirs (Union[Unset, str]):
184
- exclude_hidden (Union[Unset, bool]):
185
-
186
- Raises:
187
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
188
- httpx.TimeoutException: If the request takes longer than Client.timeout.
189
-
190
- Returns:
191
- Response[Union[ErrorResponse, FindResponse]]
192
- """
193
-
194
- kwargs = _get_kwargs(
195
- path=path,
196
- type_=type_,
197
- patterns=patterns,
198
- max_results=max_results,
199
- exclude_dirs=exclude_dirs,
200
- exclude_hidden=exclude_hidden,
201
- )
202
-
203
- response = await client.get_async_httpx_client().request(**kwargs)
204
-
205
- return _build_response(client=client, response=response)
206
-
207
-
208
- async def asyncio(
209
- path: str,
210
- *,
211
- client: Union[Client],
212
- type_: Union[Unset, str] = UNSET,
213
- patterns: Union[Unset, str] = UNSET,
214
- max_results: Union[Unset, int] = UNSET,
215
- exclude_dirs: Union[Unset, str] = UNSET,
216
- exclude_hidden: Union[Unset, bool] = UNSET,
217
- ) -> Union[ErrorResponse, FindResponse] | None:
218
- """Find files and directories
219
-
220
- Finds files and directories using the find command.
221
-
222
- Args:
223
- path (str):
224
- type_ (Union[Unset, str]):
225
- patterns (Union[Unset, str]):
226
- max_results (Union[Unset, int]):
227
- exclude_dirs (Union[Unset, str]):
228
- exclude_hidden (Union[Unset, bool]):
229
-
230
- Raises:
231
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
232
- httpx.TimeoutException: If the request takes longer than Client.timeout.
233
-
234
- Returns:
235
- Union[ErrorResponse, FindResponse]
236
- """
237
-
238
- return (
239
- await asyncio_detailed(
240
- path=path,
241
- client=client,
242
- type_=type_,
243
- patterns=patterns,
244
- max_results=max_results,
245
- exclude_dirs=exclude_dirs,
246
- exclude_hidden=exclude_hidden,
247
- )
248
- ).parsed