perceptic-core-client 0.7.3__py3-none-any.whl → 0.7.6__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.

Potentially problematic release.


This version of perceptic-core-client might be problematic. Click here for more details.

@@ -19,6 +19,8 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator
20
20
  from typing import Optional, Tuple, Union
21
21
  from typing_extensions import Annotated
22
+ from perceptic_core_client.models.create_folder_request import CreateFolderRequest
23
+ from perceptic_core_client.models.create_folder_response import CreateFolderResponse
22
24
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
23
25
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
24
26
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
@@ -44,6 +46,296 @@ class UriResourceApi:
44
46
  self.api_client = api_client
45
47
 
46
48
 
49
+ @validate_call
50
+ def create_folder(
51
+ self,
52
+ create_folder_request: CreateFolderRequest,
53
+ uri: Optional[StrictStr] = None,
54
+ _request_timeout: Union[
55
+ None,
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Tuple[
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Annotated[StrictFloat, Field(gt=0)]
60
+ ]
61
+ ] = None,
62
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
63
+ _content_type: Optional[StrictStr] = None,
64
+ _headers: Optional[Dict[StrictStr, Any]] = None,
65
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
+ ) -> CreateFolderResponse:
67
+ """Create Folder
68
+
69
+
70
+ :param create_folder_request: (required)
71
+ :type create_folder_request: CreateFolderRequest
72
+ :param uri:
73
+ :type uri: str
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+
96
+ _param = self._create_folder_serialize(
97
+ create_folder_request=create_folder_request,
98
+ uri=uri,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '200': "CreateFolderResponse",
107
+ '400': None,
108
+ }
109
+ response_data = self.api_client.call_api(
110
+ *_param,
111
+ _request_timeout=_request_timeout
112
+ )
113
+ response_data.read()
114
+ return self.api_client.response_deserialize(
115
+ response_data=response_data,
116
+ response_types_map=_response_types_map,
117
+ ).data
118
+
119
+
120
+ @validate_call
121
+ def create_folder_with_http_info(
122
+ self,
123
+ create_folder_request: CreateFolderRequest,
124
+ uri: Optional[StrictStr] = None,
125
+ _request_timeout: Union[
126
+ None,
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Tuple[
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Annotated[StrictFloat, Field(gt=0)]
131
+ ]
132
+ ] = None,
133
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
134
+ _content_type: Optional[StrictStr] = None,
135
+ _headers: Optional[Dict[StrictStr, Any]] = None,
136
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
137
+ ) -> ApiResponse[CreateFolderResponse]:
138
+ """Create Folder
139
+
140
+
141
+ :param create_folder_request: (required)
142
+ :type create_folder_request: CreateFolderRequest
143
+ :param uri:
144
+ :type uri: str
145
+ :param _request_timeout: timeout setting for this request. If one
146
+ number provided, it will be total request
147
+ timeout. It can also be a pair (tuple) of
148
+ (connection, read) timeouts.
149
+ :type _request_timeout: int, tuple(int, int), optional
150
+ :param _request_auth: set to override the auth_settings for an a single
151
+ request; this effectively ignores the
152
+ authentication in the spec for a single request.
153
+ :type _request_auth: dict, optional
154
+ :param _content_type: force content-type for the request.
155
+ :type _content_type: str, Optional
156
+ :param _headers: set to override the headers for a single
157
+ request; this effectively ignores the headers
158
+ in the spec for a single request.
159
+ :type _headers: dict, optional
160
+ :param _host_index: set to override the host_index for a single
161
+ request; this effectively ignores the host_index
162
+ in the spec for a single request.
163
+ :type _host_index: int, optional
164
+ :return: Returns the result object.
165
+ """ # noqa: E501
166
+
167
+ _param = self._create_folder_serialize(
168
+ create_folder_request=create_folder_request,
169
+ uri=uri,
170
+ _request_auth=_request_auth,
171
+ _content_type=_content_type,
172
+ _headers=_headers,
173
+ _host_index=_host_index
174
+ )
175
+
176
+ _response_types_map: Dict[str, Optional[str]] = {
177
+ '200': "CreateFolderResponse",
178
+ '400': None,
179
+ }
180
+ response_data = self.api_client.call_api(
181
+ *_param,
182
+ _request_timeout=_request_timeout
183
+ )
184
+ response_data.read()
185
+ return self.api_client.response_deserialize(
186
+ response_data=response_data,
187
+ response_types_map=_response_types_map,
188
+ )
189
+
190
+
191
+ @validate_call
192
+ def create_folder_without_preload_content(
193
+ self,
194
+ create_folder_request: CreateFolderRequest,
195
+ uri: Optional[StrictStr] = None,
196
+ _request_timeout: Union[
197
+ None,
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Tuple[
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Annotated[StrictFloat, Field(gt=0)]
202
+ ]
203
+ ] = None,
204
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
+ _content_type: Optional[StrictStr] = None,
206
+ _headers: Optional[Dict[StrictStr, Any]] = None,
207
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
208
+ ) -> RESTResponseType:
209
+ """Create Folder
210
+
211
+
212
+ :param create_folder_request: (required)
213
+ :type create_folder_request: CreateFolderRequest
214
+ :param uri:
215
+ :type uri: str
216
+ :param _request_timeout: timeout setting for this request. If one
217
+ number provided, it will be total request
218
+ timeout. It can also be a pair (tuple) of
219
+ (connection, read) timeouts.
220
+ :type _request_timeout: int, tuple(int, int), optional
221
+ :param _request_auth: set to override the auth_settings for an a single
222
+ request; this effectively ignores the
223
+ authentication in the spec for a single request.
224
+ :type _request_auth: dict, optional
225
+ :param _content_type: force content-type for the request.
226
+ :type _content_type: str, Optional
227
+ :param _headers: set to override the headers for a single
228
+ request; this effectively ignores the headers
229
+ in the spec for a single request.
230
+ :type _headers: dict, optional
231
+ :param _host_index: set to override the host_index for a single
232
+ request; this effectively ignores the host_index
233
+ in the spec for a single request.
234
+ :type _host_index: int, optional
235
+ :return: Returns the result object.
236
+ """ # noqa: E501
237
+
238
+ _param = self._create_folder_serialize(
239
+ create_folder_request=create_folder_request,
240
+ uri=uri,
241
+ _request_auth=_request_auth,
242
+ _content_type=_content_type,
243
+ _headers=_headers,
244
+ _host_index=_host_index
245
+ )
246
+
247
+ _response_types_map: Dict[str, Optional[str]] = {
248
+ '200': "CreateFolderResponse",
249
+ '400': None,
250
+ }
251
+ response_data = self.api_client.call_api(
252
+ *_param,
253
+ _request_timeout=_request_timeout
254
+ )
255
+ return response_data.response
256
+
257
+
258
+ def _create_folder_serialize(
259
+ self,
260
+ create_folder_request,
261
+ uri,
262
+ _request_auth,
263
+ _content_type,
264
+ _headers,
265
+ _host_index,
266
+ ) -> RequestSerialized:
267
+
268
+ _host = None
269
+
270
+ _collection_formats: Dict[str, str] = {
271
+ }
272
+
273
+ _path_params: Dict[str, str] = {}
274
+ _query_params: List[Tuple[str, str]] = []
275
+ _header_params: Dict[str, Optional[str]] = _headers or {}
276
+ _form_params: List[Tuple[str, str]] = []
277
+ _files: Dict[
278
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
279
+ ] = {}
280
+ _body_params: Optional[bytes] = None
281
+
282
+ # process the path parameters
283
+ # process the query parameters
284
+ if uri is not None:
285
+
286
+ _query_params.append(('uri', uri))
287
+
288
+ # process the header parameters
289
+ # process the form parameters
290
+ # process the body parameter
291
+ if create_folder_request is not None:
292
+ _body_params = create_folder_request
293
+
294
+
295
+ # set the HTTP header `Accept`
296
+ if 'Accept' not in _header_params:
297
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
+ [
299
+ 'application/json'
300
+ ]
301
+ )
302
+
303
+ # set the HTTP header `Content-Type`
304
+ if _content_type:
305
+ _header_params['Content-Type'] = _content_type
306
+ else:
307
+ _default_content_type = (
308
+ self.api_client.select_header_content_type(
309
+ [
310
+ 'application/json'
311
+ ]
312
+ )
313
+ )
314
+ if _default_content_type is not None:
315
+ _header_params['Content-Type'] = _default_content_type
316
+
317
+ # authentication setting
318
+ _auth_settings: List[str] = [
319
+ ]
320
+
321
+ return self.api_client.param_serialize(
322
+ method='POST',
323
+ resource_path='/api/v1/resources/folders',
324
+ path_params=_path_params,
325
+ query_params=_query_params,
326
+ header_params=_header_params,
327
+ body=_body_params,
328
+ post_params=_form_params,
329
+ files=_files,
330
+ auth_settings=_auth_settings,
331
+ collection_formats=_collection_formats,
332
+ _host=_host,
333
+ _request_auth=_request_auth
334
+ )
335
+
336
+
337
+
338
+
47
339
  @validate_call
48
340
  def download_resource(
49
341
  self,
@@ -26,7 +26,7 @@ class CreateIndexingTaskRequest(BaseModel):
26
26
  """
27
27
  CreateIndexingTaskRequest
28
28
  """ # noqa: E501
29
- indexer_rid: Optional[StrictStr] = Field(default=None, alias="indexerRid")
29
+ indexer_rid: StrictStr = Field(alias="indexerRid")
30
30
  folder_uri: Optional[StrictStr] = Field(default=None, alias="folderUri")
31
31
  namespace: Optional[StrictStr] = None
32
32
  target_minimum_version: Optional[StrictInt] = Field(default=None, alias="targetMinimumVersion")
@@ -45,6 +45,7 @@ class TestCreateIndexingTaskRequest(unittest.TestCase):
45
45
  )
46
46
  else:
47
47
  return CreateIndexingTaskRequest(
48
+ indexer_rid = '',
48
49
  )
49
50
  """
50
51
 
@@ -26,6 +26,13 @@ class TestUriResourceApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
+ def test_create_folder(self) -> None:
30
+ """Test case for create_folder
31
+
32
+ Create Folder
33
+ """
34
+ pass
35
+
29
36
  def test_download_resource(self) -> None:
30
37
  """Test case for download_resource
31
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: perceptic-core-client
3
- Version: 0.7.3
3
+ Version: 0.7.6
4
4
  Summary: Python client for Perceptic Core
5
5
  Author-email: Your Name <you@example.com>
6
6
  License: Proprietary
@@ -10,7 +10,7 @@ perceptic_core_client/api/file_system_contents_resource_api.py,sha256=v-tY95knuC
10
10
  perceptic_core_client/api/file_system_resource_api.py,sha256=7wDk7cs60UQmTaGkWNK9qdFEiGvrBUa6H21FoItf43o,42398
11
11
  perceptic_core_client/api/indexer_resource_api.py,sha256=nNeyrB0wMOetwDO92jfkv2PtQLaW5XUrsHUhDwVBhUM,20059
12
12
  perceptic_core_client/api/indexing_task_resource_api.py,sha256=nHDH5bEdTUzw8qsS8FvmCEErF6JTH4vGI4JC6mmylD8,44317
13
- perceptic_core_client/api/uri_resource_api.py,sha256=JOx-mCJRdLtHUmdSOt01pblRjEaUK_1xhkjJvwSNkq0,81531
13
+ perceptic_core_client/api/uri_resource_api.py,sha256=LJmR1cJ04nUGUaWsFEqgV9wWRPT7y5YO2E2f6AJzFUk,92598
14
14
  perceptic_core_client/api/user_resource_api.py,sha256=LrqvNebOhBI_EoLTZpCC7OHYPomDoctWKJkv173W2p8,10222
15
15
  perceptic_core_client/api/worker_resource_api.py,sha256=qyzp9_qMZICVpKtEyy70Gs5ps36Cmgl9lZLllOXkNOI,66424
16
16
  perceptic_core_client/models/__init__.py,sha256=tJ_PQCIyNwFS_it8hEA85NKCDDEhO3aAVV45GwsiFFw,5636
@@ -24,7 +24,7 @@ perceptic_core_client/models/create_connection_response.py,sha256=a89PYs-gW68WJi
24
24
  perceptic_core_client/models/create_file_system_response.py,sha256=264-WVVkMeKq1sTwgsVd27z48TuG-2DPW26-tqdWaK0,2649
25
25
  perceptic_core_client/models/create_folder_request.py,sha256=M9AoxG24IHCX8IyUJfdIRXQMkBMTSXO2QrKT4x1ncmU,2613
26
26
  perceptic_core_client/models/create_folder_response.py,sha256=MZ3DpsR50slSTNHGQ0JhL0EHkDowjAM1mydfFgdlpmA,2617
27
- perceptic_core_client/models/create_indexing_task_request.py,sha256=NbdcsjBVzDkUmPrLINYlmecQc85UYoZ7ORNvdJQ6UvM,3183
27
+ perceptic_core_client/models/create_indexing_task_request.py,sha256=7LHNYjKGYNZA07af_4hcp5HUnRASpcu_IItt5589Dl4,3159
28
28
  perceptic_core_client/models/create_indexing_task_response.py,sha256=tYqelsYuOMjl2kdzjIDeHoqfT3Zf9Jaz2qrZGWpAiqU,3113
29
29
  perceptic_core_client/models/create_managed_file_system_request.py,sha256=5b8zp0-Z5lDMaHeNi1k2HG8JbZzYrAeDV1RUnSASPN8,2700
30
30
  perceptic_core_client/models/create_remote_file_system_request.py,sha256=oNFfhOo2VCteERUfvfiAlkYC8vUiqEA2X1g1SXWk8ZU,3331
@@ -87,7 +87,7 @@ perceptic_core_client/test/test_create_connection_response.py,sha256=FLeeBFLE1YS
87
87
  perceptic_core_client/test/test_create_file_system_response.py,sha256=jWEZe9pxSOqERTzPNJHeBJO9ld0e2k-TiY3LDnqGH4Y,1548
88
88
  perceptic_core_client/test/test_create_folder_request.py,sha256=0wVZY_lEvkM0Zy2O_VSnUMl1rd5E9DtvSNJ0DLmthCc,1483
89
89
  perceptic_core_client/test/test_create_folder_response.py,sha256=kuN57ZCvE7GmFHgyQzsVmpgP_90FMefrQ5UnN6pEW4Q,1495
90
- perceptic_core_client/test/test_create_indexing_task_request.py,sha256=s0tH5XYIrsqXG_cPLFIdStvVHV_hJ4cCnVx3o1W1-7g,1751
90
+ perceptic_core_client/test/test_create_indexing_task_request.py,sha256=w_xadH52NGh4gsrRyTcTOFqQGqEXBRWuOAu7qJnOQdc,1785
91
91
  perceptic_core_client/test/test_create_indexing_task_response.py,sha256=KS4chfWNKFmGCiyQLlP_KhKrIq8qAa7hd4bOfSLA5cM,2234
92
92
  perceptic_core_client/test/test_create_managed_file_system_request.py,sha256=xOqVlAaInFiwWQiFRnKGlcv2NE5PiUmDEqyv1UOWVj0,1644
93
93
  perceptic_core_client/test/test_create_remote_file_system_request.py,sha256=mfyL3YgNmXCLid5QFzdxPFH9GdxD1pZs_MuQrnNr2Xc,1791
@@ -140,12 +140,12 @@ perceptic_core_client/test/test_s3_file_system_root_metadata_api_dto.py,sha256=K
140
140
  perceptic_core_client/test/test_schema_location.py,sha256=lEe3E-VJLQ8UtvpImmQIq1DnsaeCQq3RTNCM1QdqbfI,1514
141
141
  perceptic_core_client/test/test_start_execution_response.py,sha256=1dpZ3bQIXpMyG8HgCMqePY_hkHZqc_IIc4m2-z4Bg-E,2122
142
142
  perceptic_core_client/test/test_upload_file_to_managed_file_system_response.py,sha256=Mpmwqqz0m3p6b9Ofa3nC9ar9tG8FwHYBf9QkhLA54Ho,1705
143
- perceptic_core_client/test/test_uri_resource_api.py,sha256=GZFgsVQDxcDAhWkFmADKGA2_p4MQqfYStnbVCD-x_p4,1757
143
+ perceptic_core_client/test/test_uri_resource_api.py,sha256=vpMfVsVGBypdIQfMlSDtytZlqphDeLDsJju1P5mrDLs,1887
144
144
  perceptic_core_client/test/test_user_resource_api.py,sha256=yCzM6n1J0xjbLBWW1hcE6m6epT8u8Atck7fnGoOdwBw,817
145
145
  perceptic_core_client/test/test_worker_event.py,sha256=f8zBXEkGhya6Tu0quq9p3Mpm1exxMr9z21q72JvYNLg,1699
146
146
  perceptic_core_client/test/test_worker_metadata_dto.py,sha256=lbvKWvnwcKEfHHh9diRevdceGEJwgv3INVphqaxiAlw,1674
147
147
  perceptic_core_client/test/test_worker_resource_api.py,sha256=1kCAFp5_mHmrQrUKgp6hKcriNlwvtq5J8dCvAFTMKQM,1794
148
- perceptic_core_client-0.7.3.dist-info/METADATA,sha256=FNEDPPWlfXkBE4bdAXqJJbkEf3oqI9x0IbOuQV2qTPo,3604
149
- perceptic_core_client-0.7.3.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
150
- perceptic_core_client-0.7.3.dist-info/top_level.txt,sha256=wWF5_isd4ZU0SRPPhKKAxW4kJ9hYIBgLbcWn_y-c1tg,22
151
- perceptic_core_client-0.7.3.dist-info/RECORD,,
148
+ perceptic_core_client-0.7.6.dist-info/METADATA,sha256=jZXg_f6-YgflFz2zeKxOIP2iQruR8FzRCfYINzNS7SA,3604
149
+ perceptic_core_client-0.7.6.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
150
+ perceptic_core_client-0.7.6.dist-info/top_level.txt,sha256=wWF5_isd4ZU0SRPPhKKAxW4kJ9hYIBgLbcWn_y-c1tg,22
151
+ perceptic_core_client-0.7.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5