perceptic-core-client 0.26.0__py3-none-any.whl → 0.27.1__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.
- perceptic_core_client/__init__.py +4 -0
- perceptic_core_client/api/tag_resource_api.py +493 -0
- perceptic_core_client/api/uri_resource_api.py +568 -0
- perceptic_core_client/models/__init__.py +2 -0
- perceptic_core_client/models/add_tag_to_file_request.py +87 -0
- perceptic_core_client/models/remove_tag_from_file_request.py +87 -0
- perceptic_core_client/models/resource_metadata_dto.py +4 -2
- perceptic_core_client/test/test_add_tag_to_file_request.py +51 -0
- perceptic_core_client/test/test_get_metadata_response.py +4 -1
- perceptic_core_client/test/test_list_file_system_response.py +4 -1
- perceptic_core_client/test/test_paged_list_file_system_response.py +4 -1
- perceptic_core_client/test/test_remove_tag_from_file_request.py +51 -0
- perceptic_core_client/test/test_resource_entry_dto.py +4 -1
- perceptic_core_client/test/test_resource_metadata_dto.py +4 -1
- perceptic_core_client/test/test_tag_resource_api.py +14 -0
- perceptic_core_client/test/test_uri_resource_api.py +14 -0
- {perceptic_core_client-0.26.0.dist-info → perceptic_core_client-0.27.1.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.26.0.dist-info → perceptic_core_client-0.27.1.dist-info}/RECORD +20 -16
- {perceptic_core_client-0.26.0.dist-info → perceptic_core_client-0.27.1.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.26.0.dist-info → perceptic_core_client-0.27.1.dist-info}/top_level.txt +0 -0
|
@@ -38,6 +38,7 @@ __all__ = [
|
|
|
38
38
|
"ApiAttributeError",
|
|
39
39
|
"ApiException",
|
|
40
40
|
"ActionType",
|
|
41
|
+
"AddTagToFileRequest",
|
|
41
42
|
"AzureBlobConnectionSettingsApiDto",
|
|
42
43
|
"AzureBlobFileSystemRootMetadataApiDto",
|
|
43
44
|
"ConnectionApiDto",
|
|
@@ -97,6 +98,7 @@ __all__ = [
|
|
|
97
98
|
"PostWorkerRunResponse",
|
|
98
99
|
"ProgressEvent",
|
|
99
100
|
"RemoteFileSystemApiDto",
|
|
101
|
+
"RemoveTagFromFileRequest",
|
|
100
102
|
"RequestForInputEvent",
|
|
101
103
|
"ResourceEntryDto",
|
|
102
104
|
"ResourceIdentifier",
|
|
@@ -144,6 +146,7 @@ from perceptic_core_client.exceptions import ApiException as ApiException
|
|
|
144
146
|
|
|
145
147
|
# import models into sdk package
|
|
146
148
|
from perceptic_core_client.models.action_type import ActionType as ActionType
|
|
149
|
+
from perceptic_core_client.models.add_tag_to_file_request import AddTagToFileRequest as AddTagToFileRequest
|
|
147
150
|
from perceptic_core_client.models.azure_blob_connection_settings_api_dto import AzureBlobConnectionSettingsApiDto as AzureBlobConnectionSettingsApiDto
|
|
148
151
|
from perceptic_core_client.models.azure_blob_file_system_root_metadata_api_dto import AzureBlobFileSystemRootMetadataApiDto as AzureBlobFileSystemRootMetadataApiDto
|
|
149
152
|
from perceptic_core_client.models.connection_api_dto import ConnectionApiDto as ConnectionApiDto
|
|
@@ -203,6 +206,7 @@ from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRe
|
|
|
203
206
|
from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse as PostWorkerRunResponse
|
|
204
207
|
from perceptic_core_client.models.progress_event import ProgressEvent as ProgressEvent
|
|
205
208
|
from perceptic_core_client.models.remote_file_system_api_dto import RemoteFileSystemApiDto as RemoteFileSystemApiDto
|
|
209
|
+
from perceptic_core_client.models.remove_tag_from_file_request import RemoveTagFromFileRequest as RemoveTagFromFileRequest
|
|
206
210
|
from perceptic_core_client.models.request_for_input_event import RequestForInputEvent as RequestForInputEvent
|
|
207
211
|
from perceptic_core_client.models.resource_entry_dto import ResourceEntryDto as ResourceEntryDto
|
|
208
212
|
from perceptic_core_client.models.resource_identifier import ResourceIdentifier as ResourceIdentifier
|
|
@@ -17,6 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import StrictStr
|
|
20
|
+
from typing import List
|
|
20
21
|
from perceptic_core_client.models.create_tag_request import CreateTagRequest
|
|
21
22
|
from perceptic_core_client.models.create_tag_response import CreateTagResponse
|
|
22
23
|
from perceptic_core_client.models.list_tags_response import ListTagsResponse
|
|
@@ -314,6 +315,498 @@ class TagResourceApi:
|
|
|
314
315
|
|
|
315
316
|
|
|
316
317
|
|
|
318
|
+
@validate_call
|
|
319
|
+
def get_files_for_tag(
|
|
320
|
+
self,
|
|
321
|
+
_request_timeout: Union[
|
|
322
|
+
None,
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Tuple[
|
|
325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
327
|
+
]
|
|
328
|
+
] = None,
|
|
329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_content_type: Optional[StrictStr] = None,
|
|
331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
333
|
+
) -> None:
|
|
334
|
+
"""Get Files For Tag Empty
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._get_files_for_tag_serialize(
|
|
360
|
+
_request_auth=_request_auth,
|
|
361
|
+
_content_type=_content_type,
|
|
362
|
+
_headers=_headers,
|
|
363
|
+
_host_index=_host_index
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
367
|
+
'204': None,
|
|
368
|
+
}
|
|
369
|
+
response_data = self.api_client.call_api(
|
|
370
|
+
*_param,
|
|
371
|
+
_request_timeout=_request_timeout
|
|
372
|
+
)
|
|
373
|
+
response_data.read()
|
|
374
|
+
return self.api_client.response_deserialize(
|
|
375
|
+
response_data=response_data,
|
|
376
|
+
response_types_map=_response_types_map,
|
|
377
|
+
).data
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
@validate_call
|
|
381
|
+
def get_files_for_tag_with_http_info(
|
|
382
|
+
self,
|
|
383
|
+
_request_timeout: Union[
|
|
384
|
+
None,
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
386
|
+
Tuple[
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
388
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
389
|
+
]
|
|
390
|
+
] = None,
|
|
391
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
392
|
+
_content_type: Optional[StrictStr] = None,
|
|
393
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
394
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
395
|
+
) -> ApiResponse[None]:
|
|
396
|
+
"""Get Files For Tag Empty
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
400
|
+
number provided, it will be total request
|
|
401
|
+
timeout. It can also be a pair (tuple) of
|
|
402
|
+
(connection, read) timeouts.
|
|
403
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
404
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
405
|
+
request; this effectively ignores the
|
|
406
|
+
authentication in the spec for a single request.
|
|
407
|
+
:type _request_auth: dict, optional
|
|
408
|
+
:param _content_type: force content-type for the request.
|
|
409
|
+
:type _content_type: str, Optional
|
|
410
|
+
:param _headers: set to override the headers for a single
|
|
411
|
+
request; this effectively ignores the headers
|
|
412
|
+
in the spec for a single request.
|
|
413
|
+
:type _headers: dict, optional
|
|
414
|
+
:param _host_index: set to override the host_index for a single
|
|
415
|
+
request; this effectively ignores the host_index
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _host_index: int, optional
|
|
418
|
+
:return: Returns the result object.
|
|
419
|
+
""" # noqa: E501
|
|
420
|
+
|
|
421
|
+
_param = self._get_files_for_tag_serialize(
|
|
422
|
+
_request_auth=_request_auth,
|
|
423
|
+
_content_type=_content_type,
|
|
424
|
+
_headers=_headers,
|
|
425
|
+
_host_index=_host_index
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
429
|
+
'204': None,
|
|
430
|
+
}
|
|
431
|
+
response_data = self.api_client.call_api(
|
|
432
|
+
*_param,
|
|
433
|
+
_request_timeout=_request_timeout
|
|
434
|
+
)
|
|
435
|
+
response_data.read()
|
|
436
|
+
return self.api_client.response_deserialize(
|
|
437
|
+
response_data=response_data,
|
|
438
|
+
response_types_map=_response_types_map,
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
@validate_call
|
|
443
|
+
def get_files_for_tag_without_preload_content(
|
|
444
|
+
self,
|
|
445
|
+
_request_timeout: Union[
|
|
446
|
+
None,
|
|
447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
448
|
+
Tuple[
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
451
|
+
]
|
|
452
|
+
] = None,
|
|
453
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
454
|
+
_content_type: Optional[StrictStr] = None,
|
|
455
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
456
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
457
|
+
) -> RESTResponseType:
|
|
458
|
+
"""Get Files For Tag Empty
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
462
|
+
number provided, it will be total request
|
|
463
|
+
timeout. It can also be a pair (tuple) of
|
|
464
|
+
(connection, read) timeouts.
|
|
465
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
466
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
467
|
+
request; this effectively ignores the
|
|
468
|
+
authentication in the spec for a single request.
|
|
469
|
+
:type _request_auth: dict, optional
|
|
470
|
+
:param _content_type: force content-type for the request.
|
|
471
|
+
:type _content_type: str, Optional
|
|
472
|
+
:param _headers: set to override the headers for a single
|
|
473
|
+
request; this effectively ignores the headers
|
|
474
|
+
in the spec for a single request.
|
|
475
|
+
:type _headers: dict, optional
|
|
476
|
+
:param _host_index: set to override the host_index for a single
|
|
477
|
+
request; this effectively ignores the host_index
|
|
478
|
+
in the spec for a single request.
|
|
479
|
+
:type _host_index: int, optional
|
|
480
|
+
:return: Returns the result object.
|
|
481
|
+
""" # noqa: E501
|
|
482
|
+
|
|
483
|
+
_param = self._get_files_for_tag_serialize(
|
|
484
|
+
_request_auth=_request_auth,
|
|
485
|
+
_content_type=_content_type,
|
|
486
|
+
_headers=_headers,
|
|
487
|
+
_host_index=_host_index
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
491
|
+
'204': None,
|
|
492
|
+
}
|
|
493
|
+
response_data = self.api_client.call_api(
|
|
494
|
+
*_param,
|
|
495
|
+
_request_timeout=_request_timeout
|
|
496
|
+
)
|
|
497
|
+
return response_data.response
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
def _get_files_for_tag_serialize(
|
|
501
|
+
self,
|
|
502
|
+
_request_auth,
|
|
503
|
+
_content_type,
|
|
504
|
+
_headers,
|
|
505
|
+
_host_index,
|
|
506
|
+
) -> RequestSerialized:
|
|
507
|
+
|
|
508
|
+
_host = None
|
|
509
|
+
|
|
510
|
+
_collection_formats: Dict[str, str] = {
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
_path_params: Dict[str, str] = {}
|
|
514
|
+
_query_params: List[Tuple[str, str]] = []
|
|
515
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
516
|
+
_form_params: List[Tuple[str, str]] = []
|
|
517
|
+
_files: Dict[
|
|
518
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
519
|
+
] = {}
|
|
520
|
+
_body_params: Optional[bytes] = None
|
|
521
|
+
|
|
522
|
+
# process the path parameters
|
|
523
|
+
# process the query parameters
|
|
524
|
+
# process the header parameters
|
|
525
|
+
# process the form parameters
|
|
526
|
+
# process the body parameter
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
# authentication setting
|
|
532
|
+
_auth_settings: List[str] = [
|
|
533
|
+
]
|
|
534
|
+
|
|
535
|
+
return self.api_client.param_serialize(
|
|
536
|
+
method='GET',
|
|
537
|
+
resource_path='/api/v1/tags/files',
|
|
538
|
+
path_params=_path_params,
|
|
539
|
+
query_params=_query_params,
|
|
540
|
+
header_params=_header_params,
|
|
541
|
+
body=_body_params,
|
|
542
|
+
post_params=_form_params,
|
|
543
|
+
files=_files,
|
|
544
|
+
auth_settings=_auth_settings,
|
|
545
|
+
collection_formats=_collection_formats,
|
|
546
|
+
_host=_host,
|
|
547
|
+
_request_auth=_request_auth
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
@validate_call
|
|
554
|
+
def get_files_for_tag_0(
|
|
555
|
+
self,
|
|
556
|
+
tag_rid: StrictStr,
|
|
557
|
+
_request_timeout: Union[
|
|
558
|
+
None,
|
|
559
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
560
|
+
Tuple[
|
|
561
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
562
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
563
|
+
]
|
|
564
|
+
] = None,
|
|
565
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
566
|
+
_content_type: Optional[StrictStr] = None,
|
|
567
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
568
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
569
|
+
) -> List[str]:
|
|
570
|
+
"""Get Files For Tag
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
:param tag_rid: (required)
|
|
574
|
+
:type tag_rid: str
|
|
575
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
576
|
+
number provided, it will be total request
|
|
577
|
+
timeout. It can also be a pair (tuple) of
|
|
578
|
+
(connection, read) timeouts.
|
|
579
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
580
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
581
|
+
request; this effectively ignores the
|
|
582
|
+
authentication in the spec for a single request.
|
|
583
|
+
:type _request_auth: dict, optional
|
|
584
|
+
:param _content_type: force content-type for the request.
|
|
585
|
+
:type _content_type: str, Optional
|
|
586
|
+
:param _headers: set to override the headers for a single
|
|
587
|
+
request; this effectively ignores the headers
|
|
588
|
+
in the spec for a single request.
|
|
589
|
+
:type _headers: dict, optional
|
|
590
|
+
:param _host_index: set to override the host_index for a single
|
|
591
|
+
request; this effectively ignores the host_index
|
|
592
|
+
in the spec for a single request.
|
|
593
|
+
:type _host_index: int, optional
|
|
594
|
+
:return: Returns the result object.
|
|
595
|
+
""" # noqa: E501
|
|
596
|
+
|
|
597
|
+
_param = self._get_files_for_tag_0_serialize(
|
|
598
|
+
tag_rid=tag_rid,
|
|
599
|
+
_request_auth=_request_auth,
|
|
600
|
+
_content_type=_content_type,
|
|
601
|
+
_headers=_headers,
|
|
602
|
+
_host_index=_host_index
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
606
|
+
'200': "List[str]",
|
|
607
|
+
}
|
|
608
|
+
response_data = self.api_client.call_api(
|
|
609
|
+
*_param,
|
|
610
|
+
_request_timeout=_request_timeout
|
|
611
|
+
)
|
|
612
|
+
response_data.read()
|
|
613
|
+
return self.api_client.response_deserialize(
|
|
614
|
+
response_data=response_data,
|
|
615
|
+
response_types_map=_response_types_map,
|
|
616
|
+
).data
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
@validate_call
|
|
620
|
+
def get_files_for_tag_0_with_http_info(
|
|
621
|
+
self,
|
|
622
|
+
tag_rid: StrictStr,
|
|
623
|
+
_request_timeout: Union[
|
|
624
|
+
None,
|
|
625
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
626
|
+
Tuple[
|
|
627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
628
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
629
|
+
]
|
|
630
|
+
] = None,
|
|
631
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
632
|
+
_content_type: Optional[StrictStr] = None,
|
|
633
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
634
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
635
|
+
) -> ApiResponse[List[str]]:
|
|
636
|
+
"""Get Files For Tag
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
:param tag_rid: (required)
|
|
640
|
+
:type tag_rid: str
|
|
641
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
642
|
+
number provided, it will be total request
|
|
643
|
+
timeout. It can also be a pair (tuple) of
|
|
644
|
+
(connection, read) timeouts.
|
|
645
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
646
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
647
|
+
request; this effectively ignores the
|
|
648
|
+
authentication in the spec for a single request.
|
|
649
|
+
:type _request_auth: dict, optional
|
|
650
|
+
:param _content_type: force content-type for the request.
|
|
651
|
+
:type _content_type: str, Optional
|
|
652
|
+
:param _headers: set to override the headers for a single
|
|
653
|
+
request; this effectively ignores the headers
|
|
654
|
+
in the spec for a single request.
|
|
655
|
+
:type _headers: dict, optional
|
|
656
|
+
:param _host_index: set to override the host_index for a single
|
|
657
|
+
request; this effectively ignores the host_index
|
|
658
|
+
in the spec for a single request.
|
|
659
|
+
:type _host_index: int, optional
|
|
660
|
+
:return: Returns the result object.
|
|
661
|
+
""" # noqa: E501
|
|
662
|
+
|
|
663
|
+
_param = self._get_files_for_tag_0_serialize(
|
|
664
|
+
tag_rid=tag_rid,
|
|
665
|
+
_request_auth=_request_auth,
|
|
666
|
+
_content_type=_content_type,
|
|
667
|
+
_headers=_headers,
|
|
668
|
+
_host_index=_host_index
|
|
669
|
+
)
|
|
670
|
+
|
|
671
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
672
|
+
'200': "List[str]",
|
|
673
|
+
}
|
|
674
|
+
response_data = self.api_client.call_api(
|
|
675
|
+
*_param,
|
|
676
|
+
_request_timeout=_request_timeout
|
|
677
|
+
)
|
|
678
|
+
response_data.read()
|
|
679
|
+
return self.api_client.response_deserialize(
|
|
680
|
+
response_data=response_data,
|
|
681
|
+
response_types_map=_response_types_map,
|
|
682
|
+
)
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
@validate_call
|
|
686
|
+
def get_files_for_tag_0_without_preload_content(
|
|
687
|
+
self,
|
|
688
|
+
tag_rid: StrictStr,
|
|
689
|
+
_request_timeout: Union[
|
|
690
|
+
None,
|
|
691
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
692
|
+
Tuple[
|
|
693
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
694
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
695
|
+
]
|
|
696
|
+
] = None,
|
|
697
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
698
|
+
_content_type: Optional[StrictStr] = None,
|
|
699
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
700
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
701
|
+
) -> RESTResponseType:
|
|
702
|
+
"""Get Files For Tag
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
:param tag_rid: (required)
|
|
706
|
+
:type tag_rid: str
|
|
707
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
708
|
+
number provided, it will be total request
|
|
709
|
+
timeout. It can also be a pair (tuple) of
|
|
710
|
+
(connection, read) timeouts.
|
|
711
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
712
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
713
|
+
request; this effectively ignores the
|
|
714
|
+
authentication in the spec for a single request.
|
|
715
|
+
:type _request_auth: dict, optional
|
|
716
|
+
:param _content_type: force content-type for the request.
|
|
717
|
+
:type _content_type: str, Optional
|
|
718
|
+
:param _headers: set to override the headers for a single
|
|
719
|
+
request; this effectively ignores the headers
|
|
720
|
+
in the spec for a single request.
|
|
721
|
+
:type _headers: dict, optional
|
|
722
|
+
:param _host_index: set to override the host_index for a single
|
|
723
|
+
request; this effectively ignores the host_index
|
|
724
|
+
in the spec for a single request.
|
|
725
|
+
:type _host_index: int, optional
|
|
726
|
+
:return: Returns the result object.
|
|
727
|
+
""" # noqa: E501
|
|
728
|
+
|
|
729
|
+
_param = self._get_files_for_tag_0_serialize(
|
|
730
|
+
tag_rid=tag_rid,
|
|
731
|
+
_request_auth=_request_auth,
|
|
732
|
+
_content_type=_content_type,
|
|
733
|
+
_headers=_headers,
|
|
734
|
+
_host_index=_host_index
|
|
735
|
+
)
|
|
736
|
+
|
|
737
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
738
|
+
'200': "List[str]",
|
|
739
|
+
}
|
|
740
|
+
response_data = self.api_client.call_api(
|
|
741
|
+
*_param,
|
|
742
|
+
_request_timeout=_request_timeout
|
|
743
|
+
)
|
|
744
|
+
return response_data.response
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
def _get_files_for_tag_0_serialize(
|
|
748
|
+
self,
|
|
749
|
+
tag_rid,
|
|
750
|
+
_request_auth,
|
|
751
|
+
_content_type,
|
|
752
|
+
_headers,
|
|
753
|
+
_host_index,
|
|
754
|
+
) -> RequestSerialized:
|
|
755
|
+
|
|
756
|
+
_host = None
|
|
757
|
+
|
|
758
|
+
_collection_formats: Dict[str, str] = {
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
_path_params: Dict[str, str] = {}
|
|
762
|
+
_query_params: List[Tuple[str, str]] = []
|
|
763
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
764
|
+
_form_params: List[Tuple[str, str]] = []
|
|
765
|
+
_files: Dict[
|
|
766
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
767
|
+
] = {}
|
|
768
|
+
_body_params: Optional[bytes] = None
|
|
769
|
+
|
|
770
|
+
# process the path parameters
|
|
771
|
+
if tag_rid is not None:
|
|
772
|
+
_path_params['tagRid'] = tag_rid
|
|
773
|
+
# process the query parameters
|
|
774
|
+
# process the header parameters
|
|
775
|
+
# process the form parameters
|
|
776
|
+
# process the body parameter
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
# set the HTTP header `Accept`
|
|
780
|
+
if 'Accept' not in _header_params:
|
|
781
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
782
|
+
[
|
|
783
|
+
'application/json'
|
|
784
|
+
]
|
|
785
|
+
)
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
# authentication setting
|
|
789
|
+
_auth_settings: List[str] = [
|
|
790
|
+
]
|
|
791
|
+
|
|
792
|
+
return self.api_client.param_serialize(
|
|
793
|
+
method='GET',
|
|
794
|
+
resource_path='/api/v1/tags/{tagRid}/files',
|
|
795
|
+
path_params=_path_params,
|
|
796
|
+
query_params=_query_params,
|
|
797
|
+
header_params=_header_params,
|
|
798
|
+
body=_body_params,
|
|
799
|
+
post_params=_form_params,
|
|
800
|
+
files=_files,
|
|
801
|
+
auth_settings=_auth_settings,
|
|
802
|
+
collection_formats=_collection_formats,
|
|
803
|
+
_host=_host,
|
|
804
|
+
_request_auth=_request_auth
|
|
805
|
+
)
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
317
810
|
@validate_call
|
|
318
811
|
def list_tags(
|
|
319
812
|
self,
|