perceptic-core-client 0.19.0__py3-none-any.whl → 0.21.0__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/file_system_resource_api.py +250 -0
- perceptic_core_client/api/tag_resource_api.py +596 -16
- perceptic_core_client/models/__init__.py +4 -0
- perceptic_core_client/models/list_tags_response.py +95 -0
- perceptic_core_client/models/tag_info.py +93 -0
- perceptic_core_client/models/update_tag_request.py +99 -0
- perceptic_core_client/models/update_tag_response.py +91 -0
- perceptic_core_client/test/test_file_system_resource_api.py +7 -0
- perceptic_core_client/test/test_list_tags_response.py +57 -0
- perceptic_core_client/test/test_tag_info.py +54 -0
- perceptic_core_client/test/test_tag_resource_api.py +14 -0
- perceptic_core_client/test/test_update_tag_request.py +52 -0
- perceptic_core_client/test/test_update_tag_response.py +55 -0
- {perceptic_core_client-0.19.0.dist-info → perceptic_core_client-0.21.0.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.19.0.dist-info → perceptic_core_client-0.21.0.dist-info}/RECORD +18 -10
- {perceptic_core_client-0.19.0.dist-info → perceptic_core_client-0.21.0.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.19.0.dist-info → perceptic_core_client-0.21.0.dist-info}/top_level.txt +0 -0
|
@@ -16,8 +16,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
+
from pydantic import StrictStr
|
|
19
20
|
from perceptic_core_client.models.create_tag_request import CreateTagRequest
|
|
20
21
|
from perceptic_core_client.models.create_tag_response import CreateTagResponse
|
|
22
|
+
from perceptic_core_client.models.list_tags_response import ListTagsResponse
|
|
23
|
+
from perceptic_core_client.models.update_tag_request import UpdateTagRequest
|
|
24
|
+
from perceptic_core_client.models.update_tag_response import UpdateTagResponse
|
|
21
25
|
|
|
22
26
|
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
23
27
|
from perceptic_core_client.api_response import ApiResponse
|
|
@@ -294,7 +298,7 @@ class TagResourceApi:
|
|
|
294
298
|
|
|
295
299
|
return self.api_client.param_serialize(
|
|
296
300
|
method='POST',
|
|
297
|
-
resource_path='/api/v1/tags
|
|
301
|
+
resource_path='/api/v1/tags',
|
|
298
302
|
path_params=_path_params,
|
|
299
303
|
query_params=_query_params,
|
|
300
304
|
header_params=_header_params,
|
|
@@ -325,7 +329,7 @@ class TagResourceApi:
|
|
|
325
329
|
_content_type: Optional[StrictStr] = None,
|
|
326
330
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
327
331
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
328
|
-
) ->
|
|
332
|
+
) -> ListTagsResponse:
|
|
329
333
|
"""List Tags
|
|
330
334
|
|
|
331
335
|
|
|
@@ -359,7 +363,7 @@ class TagResourceApi:
|
|
|
359
363
|
)
|
|
360
364
|
|
|
361
365
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
362
|
-
'200':
|
|
366
|
+
'200': "ListTagsResponse",
|
|
363
367
|
}
|
|
364
368
|
response_data = self.api_client.call_api(
|
|
365
369
|
*_param,
|
|
@@ -387,7 +391,7 @@ class TagResourceApi:
|
|
|
387
391
|
_content_type: Optional[StrictStr] = None,
|
|
388
392
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
389
393
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
390
|
-
) -> ApiResponse[
|
|
394
|
+
) -> ApiResponse[ListTagsResponse]:
|
|
391
395
|
"""List Tags
|
|
392
396
|
|
|
393
397
|
|
|
@@ -421,7 +425,7 @@ class TagResourceApi:
|
|
|
421
425
|
)
|
|
422
426
|
|
|
423
427
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
424
|
-
'200':
|
|
428
|
+
'200': "ListTagsResponse",
|
|
425
429
|
}
|
|
426
430
|
response_data = self.api_client.call_api(
|
|
427
431
|
*_param,
|
|
@@ -483,7 +487,7 @@ class TagResourceApi:
|
|
|
483
487
|
)
|
|
484
488
|
|
|
485
489
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
486
|
-
'200':
|
|
490
|
+
'200': "ListTagsResponse",
|
|
487
491
|
}
|
|
488
492
|
response_data = self.api_client.call_api(
|
|
489
493
|
*_param,
|
|
@@ -521,6 +525,13 @@ class TagResourceApi:
|
|
|
521
525
|
# process the body parameter
|
|
522
526
|
|
|
523
527
|
|
|
528
|
+
# set the HTTP header `Accept`
|
|
529
|
+
if 'Accept' not in _header_params:
|
|
530
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
531
|
+
[
|
|
532
|
+
'application/json'
|
|
533
|
+
]
|
|
534
|
+
)
|
|
524
535
|
|
|
525
536
|
|
|
526
537
|
# authentication setting
|
|
@@ -548,6 +559,7 @@ class TagResourceApi:
|
|
|
548
559
|
@validate_call
|
|
549
560
|
def remove_tag(
|
|
550
561
|
self,
|
|
562
|
+
tag_rid: StrictStr,
|
|
551
563
|
_request_timeout: Union[
|
|
552
564
|
None,
|
|
553
565
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -564,6 +576,8 @@ class TagResourceApi:
|
|
|
564
576
|
"""Remove Tag
|
|
565
577
|
|
|
566
578
|
|
|
579
|
+
:param tag_rid: (required)
|
|
580
|
+
:type tag_rid: str
|
|
567
581
|
:param _request_timeout: timeout setting for this request. If one
|
|
568
582
|
number provided, it will be total request
|
|
569
583
|
timeout. It can also be a pair (tuple) of
|
|
@@ -587,6 +601,7 @@ class TagResourceApi:
|
|
|
587
601
|
""" # noqa: E501
|
|
588
602
|
|
|
589
603
|
_param = self._remove_tag_serialize(
|
|
604
|
+
tag_rid=tag_rid,
|
|
590
605
|
_request_auth=_request_auth,
|
|
591
606
|
_content_type=_content_type,
|
|
592
607
|
_headers=_headers,
|
|
@@ -594,7 +609,7 @@ class TagResourceApi:
|
|
|
594
609
|
)
|
|
595
610
|
|
|
596
611
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
597
|
-
'
|
|
612
|
+
'204': None,
|
|
598
613
|
}
|
|
599
614
|
response_data = self.api_client.call_api(
|
|
600
615
|
*_param,
|
|
@@ -610,6 +625,7 @@ class TagResourceApi:
|
|
|
610
625
|
@validate_call
|
|
611
626
|
def remove_tag_with_http_info(
|
|
612
627
|
self,
|
|
628
|
+
tag_rid: StrictStr,
|
|
613
629
|
_request_timeout: Union[
|
|
614
630
|
None,
|
|
615
631
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -626,6 +642,8 @@ class TagResourceApi:
|
|
|
626
642
|
"""Remove Tag
|
|
627
643
|
|
|
628
644
|
|
|
645
|
+
:param tag_rid: (required)
|
|
646
|
+
:type tag_rid: str
|
|
629
647
|
:param _request_timeout: timeout setting for this request. If one
|
|
630
648
|
number provided, it will be total request
|
|
631
649
|
timeout. It can also be a pair (tuple) of
|
|
@@ -649,6 +667,7 @@ class TagResourceApi:
|
|
|
649
667
|
""" # noqa: E501
|
|
650
668
|
|
|
651
669
|
_param = self._remove_tag_serialize(
|
|
670
|
+
tag_rid=tag_rid,
|
|
652
671
|
_request_auth=_request_auth,
|
|
653
672
|
_content_type=_content_type,
|
|
654
673
|
_headers=_headers,
|
|
@@ -656,7 +675,7 @@ class TagResourceApi:
|
|
|
656
675
|
)
|
|
657
676
|
|
|
658
677
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
659
|
-
'
|
|
678
|
+
'204': None,
|
|
660
679
|
}
|
|
661
680
|
response_data = self.api_client.call_api(
|
|
662
681
|
*_param,
|
|
@@ -672,6 +691,7 @@ class TagResourceApi:
|
|
|
672
691
|
@validate_call
|
|
673
692
|
def remove_tag_without_preload_content(
|
|
674
693
|
self,
|
|
694
|
+
tag_rid: StrictStr,
|
|
675
695
|
_request_timeout: Union[
|
|
676
696
|
None,
|
|
677
697
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -688,6 +708,8 @@ class TagResourceApi:
|
|
|
688
708
|
"""Remove Tag
|
|
689
709
|
|
|
690
710
|
|
|
711
|
+
:param tag_rid: (required)
|
|
712
|
+
:type tag_rid: str
|
|
691
713
|
:param _request_timeout: timeout setting for this request. If one
|
|
692
714
|
number provided, it will be total request
|
|
693
715
|
timeout. It can also be a pair (tuple) of
|
|
@@ -711,6 +733,7 @@ class TagResourceApi:
|
|
|
711
733
|
""" # noqa: E501
|
|
712
734
|
|
|
713
735
|
_param = self._remove_tag_serialize(
|
|
736
|
+
tag_rid=tag_rid,
|
|
714
737
|
_request_auth=_request_auth,
|
|
715
738
|
_content_type=_content_type,
|
|
716
739
|
_headers=_headers,
|
|
@@ -718,7 +741,7 @@ class TagResourceApi:
|
|
|
718
741
|
)
|
|
719
742
|
|
|
720
743
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
721
|
-
'
|
|
744
|
+
'204': None,
|
|
722
745
|
}
|
|
723
746
|
response_data = self.api_client.call_api(
|
|
724
747
|
*_param,
|
|
@@ -729,6 +752,7 @@ class TagResourceApi:
|
|
|
729
752
|
|
|
730
753
|
def _remove_tag_serialize(
|
|
731
754
|
self,
|
|
755
|
+
tag_rid,
|
|
732
756
|
_request_auth,
|
|
733
757
|
_content_type,
|
|
734
758
|
_headers,
|
|
@@ -750,6 +774,8 @@ class TagResourceApi:
|
|
|
750
774
|
_body_params: Optional[bytes] = None
|
|
751
775
|
|
|
752
776
|
# process the path parameters
|
|
777
|
+
if tag_rid is not None:
|
|
778
|
+
_path_params['tagRid'] = tag_rid
|
|
753
779
|
# process the query parameters
|
|
754
780
|
# process the header parameters
|
|
755
781
|
# process the form parameters
|
|
@@ -764,7 +790,7 @@ class TagResourceApi:
|
|
|
764
790
|
|
|
765
791
|
return self.api_client.param_serialize(
|
|
766
792
|
method='DELETE',
|
|
767
|
-
resource_path='/api/v1/tags/
|
|
793
|
+
resource_path='/api/v1/tags/{tagRid}',
|
|
768
794
|
path_params=_path_params,
|
|
769
795
|
query_params=_query_params,
|
|
770
796
|
header_params=_header_params,
|
|
@@ -781,7 +807,7 @@ class TagResourceApi:
|
|
|
781
807
|
|
|
782
808
|
|
|
783
809
|
@validate_call
|
|
784
|
-
def
|
|
810
|
+
def remove_tag_empty(
|
|
785
811
|
self,
|
|
786
812
|
_request_timeout: Union[
|
|
787
813
|
None,
|
|
@@ -796,9 +822,250 @@ class TagResourceApi:
|
|
|
796
822
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
797
823
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
798
824
|
) -> None:
|
|
825
|
+
"""Remove Tag Empty
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
829
|
+
number provided, it will be total request
|
|
830
|
+
timeout. It can also be a pair (tuple) of
|
|
831
|
+
(connection, read) timeouts.
|
|
832
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
833
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
834
|
+
request; this effectively ignores the
|
|
835
|
+
authentication in the spec for a single request.
|
|
836
|
+
:type _request_auth: dict, optional
|
|
837
|
+
:param _content_type: force content-type for the request.
|
|
838
|
+
:type _content_type: str, Optional
|
|
839
|
+
:param _headers: set to override the headers for a single
|
|
840
|
+
request; this effectively ignores the headers
|
|
841
|
+
in the spec for a single request.
|
|
842
|
+
:type _headers: dict, optional
|
|
843
|
+
:param _host_index: set to override the host_index for a single
|
|
844
|
+
request; this effectively ignores the host_index
|
|
845
|
+
in the spec for a single request.
|
|
846
|
+
:type _host_index: int, optional
|
|
847
|
+
:return: Returns the result object.
|
|
848
|
+
""" # noqa: E501
|
|
849
|
+
|
|
850
|
+
_param = self._remove_tag_empty_serialize(
|
|
851
|
+
_request_auth=_request_auth,
|
|
852
|
+
_content_type=_content_type,
|
|
853
|
+
_headers=_headers,
|
|
854
|
+
_host_index=_host_index
|
|
855
|
+
)
|
|
856
|
+
|
|
857
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
858
|
+
'204': None,
|
|
859
|
+
}
|
|
860
|
+
response_data = self.api_client.call_api(
|
|
861
|
+
*_param,
|
|
862
|
+
_request_timeout=_request_timeout
|
|
863
|
+
)
|
|
864
|
+
response_data.read()
|
|
865
|
+
return self.api_client.response_deserialize(
|
|
866
|
+
response_data=response_data,
|
|
867
|
+
response_types_map=_response_types_map,
|
|
868
|
+
).data
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
@validate_call
|
|
872
|
+
def remove_tag_empty_with_http_info(
|
|
873
|
+
self,
|
|
874
|
+
_request_timeout: Union[
|
|
875
|
+
None,
|
|
876
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
877
|
+
Tuple[
|
|
878
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
879
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
880
|
+
]
|
|
881
|
+
] = None,
|
|
882
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
883
|
+
_content_type: Optional[StrictStr] = None,
|
|
884
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
885
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
886
|
+
) -> ApiResponse[None]:
|
|
887
|
+
"""Remove Tag Empty
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
891
|
+
number provided, it will be total request
|
|
892
|
+
timeout. It can also be a pair (tuple) of
|
|
893
|
+
(connection, read) timeouts.
|
|
894
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
895
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
896
|
+
request; this effectively ignores the
|
|
897
|
+
authentication in the spec for a single request.
|
|
898
|
+
:type _request_auth: dict, optional
|
|
899
|
+
:param _content_type: force content-type for the request.
|
|
900
|
+
:type _content_type: str, Optional
|
|
901
|
+
:param _headers: set to override the headers for a single
|
|
902
|
+
request; this effectively ignores the headers
|
|
903
|
+
in the spec for a single request.
|
|
904
|
+
:type _headers: dict, optional
|
|
905
|
+
:param _host_index: set to override the host_index for a single
|
|
906
|
+
request; this effectively ignores the host_index
|
|
907
|
+
in the spec for a single request.
|
|
908
|
+
:type _host_index: int, optional
|
|
909
|
+
:return: Returns the result object.
|
|
910
|
+
""" # noqa: E501
|
|
911
|
+
|
|
912
|
+
_param = self._remove_tag_empty_serialize(
|
|
913
|
+
_request_auth=_request_auth,
|
|
914
|
+
_content_type=_content_type,
|
|
915
|
+
_headers=_headers,
|
|
916
|
+
_host_index=_host_index
|
|
917
|
+
)
|
|
918
|
+
|
|
919
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
920
|
+
'204': None,
|
|
921
|
+
}
|
|
922
|
+
response_data = self.api_client.call_api(
|
|
923
|
+
*_param,
|
|
924
|
+
_request_timeout=_request_timeout
|
|
925
|
+
)
|
|
926
|
+
response_data.read()
|
|
927
|
+
return self.api_client.response_deserialize(
|
|
928
|
+
response_data=response_data,
|
|
929
|
+
response_types_map=_response_types_map,
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
@validate_call
|
|
934
|
+
def remove_tag_empty_without_preload_content(
|
|
935
|
+
self,
|
|
936
|
+
_request_timeout: Union[
|
|
937
|
+
None,
|
|
938
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
939
|
+
Tuple[
|
|
940
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
941
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
942
|
+
]
|
|
943
|
+
] = None,
|
|
944
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
945
|
+
_content_type: Optional[StrictStr] = None,
|
|
946
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
947
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
948
|
+
) -> RESTResponseType:
|
|
949
|
+
"""Remove Tag Empty
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
953
|
+
number provided, it will be total request
|
|
954
|
+
timeout. It can also be a pair (tuple) of
|
|
955
|
+
(connection, read) timeouts.
|
|
956
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
957
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
958
|
+
request; this effectively ignores the
|
|
959
|
+
authentication in the spec for a single request.
|
|
960
|
+
:type _request_auth: dict, optional
|
|
961
|
+
:param _content_type: force content-type for the request.
|
|
962
|
+
:type _content_type: str, Optional
|
|
963
|
+
:param _headers: set to override the headers for a single
|
|
964
|
+
request; this effectively ignores the headers
|
|
965
|
+
in the spec for a single request.
|
|
966
|
+
:type _headers: dict, optional
|
|
967
|
+
:param _host_index: set to override the host_index for a single
|
|
968
|
+
request; this effectively ignores the host_index
|
|
969
|
+
in the spec for a single request.
|
|
970
|
+
:type _host_index: int, optional
|
|
971
|
+
:return: Returns the result object.
|
|
972
|
+
""" # noqa: E501
|
|
973
|
+
|
|
974
|
+
_param = self._remove_tag_empty_serialize(
|
|
975
|
+
_request_auth=_request_auth,
|
|
976
|
+
_content_type=_content_type,
|
|
977
|
+
_headers=_headers,
|
|
978
|
+
_host_index=_host_index
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
982
|
+
'204': None,
|
|
983
|
+
}
|
|
984
|
+
response_data = self.api_client.call_api(
|
|
985
|
+
*_param,
|
|
986
|
+
_request_timeout=_request_timeout
|
|
987
|
+
)
|
|
988
|
+
return response_data.response
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
def _remove_tag_empty_serialize(
|
|
992
|
+
self,
|
|
993
|
+
_request_auth,
|
|
994
|
+
_content_type,
|
|
995
|
+
_headers,
|
|
996
|
+
_host_index,
|
|
997
|
+
) -> RequestSerialized:
|
|
998
|
+
|
|
999
|
+
_host = None
|
|
1000
|
+
|
|
1001
|
+
_collection_formats: Dict[str, str] = {
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
_path_params: Dict[str, str] = {}
|
|
1005
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1006
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1007
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1008
|
+
_files: Dict[
|
|
1009
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1010
|
+
] = {}
|
|
1011
|
+
_body_params: Optional[bytes] = None
|
|
1012
|
+
|
|
1013
|
+
# process the path parameters
|
|
1014
|
+
# process the query parameters
|
|
1015
|
+
# process the header parameters
|
|
1016
|
+
# process the form parameters
|
|
1017
|
+
# process the body parameter
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
# authentication setting
|
|
1023
|
+
_auth_settings: List[str] = [
|
|
1024
|
+
]
|
|
1025
|
+
|
|
1026
|
+
return self.api_client.param_serialize(
|
|
1027
|
+
method='DELETE',
|
|
1028
|
+
resource_path='/api/v1/tags',
|
|
1029
|
+
path_params=_path_params,
|
|
1030
|
+
query_params=_query_params,
|
|
1031
|
+
header_params=_header_params,
|
|
1032
|
+
body=_body_params,
|
|
1033
|
+
post_params=_form_params,
|
|
1034
|
+
files=_files,
|
|
1035
|
+
auth_settings=_auth_settings,
|
|
1036
|
+
collection_formats=_collection_formats,
|
|
1037
|
+
_host=_host,
|
|
1038
|
+
_request_auth=_request_auth
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
@validate_call
|
|
1045
|
+
def update_tag(
|
|
1046
|
+
self,
|
|
1047
|
+
tag_rid: StrictStr,
|
|
1048
|
+
update_tag_request: UpdateTagRequest,
|
|
1049
|
+
_request_timeout: Union[
|
|
1050
|
+
None,
|
|
1051
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1052
|
+
Tuple[
|
|
1053
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1054
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1055
|
+
]
|
|
1056
|
+
] = None,
|
|
1057
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1058
|
+
_content_type: Optional[StrictStr] = None,
|
|
1059
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1060
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1061
|
+
) -> UpdateTagResponse:
|
|
799
1062
|
"""Update Tag
|
|
800
1063
|
|
|
801
1064
|
|
|
1065
|
+
:param tag_rid: (required)
|
|
1066
|
+
:type tag_rid: str
|
|
1067
|
+
:param update_tag_request: (required)
|
|
1068
|
+
:type update_tag_request: UpdateTagRequest
|
|
802
1069
|
:param _request_timeout: timeout setting for this request. If one
|
|
803
1070
|
number provided, it will be total request
|
|
804
1071
|
timeout. It can also be a pair (tuple) of
|
|
@@ -822,6 +1089,8 @@ class TagResourceApi:
|
|
|
822
1089
|
""" # noqa: E501
|
|
823
1090
|
|
|
824
1091
|
_param = self._update_tag_serialize(
|
|
1092
|
+
tag_rid=tag_rid,
|
|
1093
|
+
update_tag_request=update_tag_request,
|
|
825
1094
|
_request_auth=_request_auth,
|
|
826
1095
|
_content_type=_content_type,
|
|
827
1096
|
_headers=_headers,
|
|
@@ -829,7 +1098,8 @@ class TagResourceApi:
|
|
|
829
1098
|
)
|
|
830
1099
|
|
|
831
1100
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
832
|
-
'200':
|
|
1101
|
+
'200': "UpdateTagResponse",
|
|
1102
|
+
'400': None,
|
|
833
1103
|
}
|
|
834
1104
|
response_data = self.api_client.call_api(
|
|
835
1105
|
*_param,
|
|
@@ -845,6 +1115,8 @@ class TagResourceApi:
|
|
|
845
1115
|
@validate_call
|
|
846
1116
|
def update_tag_with_http_info(
|
|
847
1117
|
self,
|
|
1118
|
+
tag_rid: StrictStr,
|
|
1119
|
+
update_tag_request: UpdateTagRequest,
|
|
848
1120
|
_request_timeout: Union[
|
|
849
1121
|
None,
|
|
850
1122
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -857,10 +1129,14 @@ class TagResourceApi:
|
|
|
857
1129
|
_content_type: Optional[StrictStr] = None,
|
|
858
1130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
859
1131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
860
|
-
) -> ApiResponse[
|
|
1132
|
+
) -> ApiResponse[UpdateTagResponse]:
|
|
861
1133
|
"""Update Tag
|
|
862
1134
|
|
|
863
1135
|
|
|
1136
|
+
:param tag_rid: (required)
|
|
1137
|
+
:type tag_rid: str
|
|
1138
|
+
:param update_tag_request: (required)
|
|
1139
|
+
:type update_tag_request: UpdateTagRequest
|
|
864
1140
|
:param _request_timeout: timeout setting for this request. If one
|
|
865
1141
|
number provided, it will be total request
|
|
866
1142
|
timeout. It can also be a pair (tuple) of
|
|
@@ -884,6 +1160,8 @@ class TagResourceApi:
|
|
|
884
1160
|
""" # noqa: E501
|
|
885
1161
|
|
|
886
1162
|
_param = self._update_tag_serialize(
|
|
1163
|
+
tag_rid=tag_rid,
|
|
1164
|
+
update_tag_request=update_tag_request,
|
|
887
1165
|
_request_auth=_request_auth,
|
|
888
1166
|
_content_type=_content_type,
|
|
889
1167
|
_headers=_headers,
|
|
@@ -891,7 +1169,8 @@ class TagResourceApi:
|
|
|
891
1169
|
)
|
|
892
1170
|
|
|
893
1171
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
894
|
-
'200':
|
|
1172
|
+
'200': "UpdateTagResponse",
|
|
1173
|
+
'400': None,
|
|
895
1174
|
}
|
|
896
1175
|
response_data = self.api_client.call_api(
|
|
897
1176
|
*_param,
|
|
@@ -907,6 +1186,8 @@ class TagResourceApi:
|
|
|
907
1186
|
@validate_call
|
|
908
1187
|
def update_tag_without_preload_content(
|
|
909
1188
|
self,
|
|
1189
|
+
tag_rid: StrictStr,
|
|
1190
|
+
update_tag_request: UpdateTagRequest,
|
|
910
1191
|
_request_timeout: Union[
|
|
911
1192
|
None,
|
|
912
1193
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -923,6 +1204,10 @@ class TagResourceApi:
|
|
|
923
1204
|
"""Update Tag
|
|
924
1205
|
|
|
925
1206
|
|
|
1207
|
+
:param tag_rid: (required)
|
|
1208
|
+
:type tag_rid: str
|
|
1209
|
+
:param update_tag_request: (required)
|
|
1210
|
+
:type update_tag_request: UpdateTagRequest
|
|
926
1211
|
:param _request_timeout: timeout setting for this request. If one
|
|
927
1212
|
number provided, it will be total request
|
|
928
1213
|
timeout. It can also be a pair (tuple) of
|
|
@@ -946,6 +1231,8 @@ class TagResourceApi:
|
|
|
946
1231
|
""" # noqa: E501
|
|
947
1232
|
|
|
948
1233
|
_param = self._update_tag_serialize(
|
|
1234
|
+
tag_rid=tag_rid,
|
|
1235
|
+
update_tag_request=update_tag_request,
|
|
949
1236
|
_request_auth=_request_auth,
|
|
950
1237
|
_content_type=_content_type,
|
|
951
1238
|
_headers=_headers,
|
|
@@ -953,7 +1240,8 @@ class TagResourceApi:
|
|
|
953
1240
|
)
|
|
954
1241
|
|
|
955
1242
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
956
|
-
'200':
|
|
1243
|
+
'200': "UpdateTagResponse",
|
|
1244
|
+
'400': None,
|
|
957
1245
|
}
|
|
958
1246
|
response_data = self.api_client.call_api(
|
|
959
1247
|
*_param,
|
|
@@ -964,6 +1252,8 @@ class TagResourceApi:
|
|
|
964
1252
|
|
|
965
1253
|
def _update_tag_serialize(
|
|
966
1254
|
self,
|
|
1255
|
+
tag_rid,
|
|
1256
|
+
update_tag_request,
|
|
967
1257
|
_request_auth,
|
|
968
1258
|
_content_type,
|
|
969
1259
|
_headers,
|
|
@@ -985,13 +1275,37 @@ class TagResourceApi:
|
|
|
985
1275
|
_body_params: Optional[bytes] = None
|
|
986
1276
|
|
|
987
1277
|
# process the path parameters
|
|
1278
|
+
if tag_rid is not None:
|
|
1279
|
+
_path_params['tagRid'] = tag_rid
|
|
988
1280
|
# process the query parameters
|
|
989
1281
|
# process the header parameters
|
|
990
1282
|
# process the form parameters
|
|
991
1283
|
# process the body parameter
|
|
1284
|
+
if update_tag_request is not None:
|
|
1285
|
+
_body_params = update_tag_request
|
|
992
1286
|
|
|
993
1287
|
|
|
1288
|
+
# set the HTTP header `Accept`
|
|
1289
|
+
if 'Accept' not in _header_params:
|
|
1290
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1291
|
+
[
|
|
1292
|
+
'application/json'
|
|
1293
|
+
]
|
|
1294
|
+
)
|
|
994
1295
|
|
|
1296
|
+
# set the HTTP header `Content-Type`
|
|
1297
|
+
if _content_type:
|
|
1298
|
+
_header_params['Content-Type'] = _content_type
|
|
1299
|
+
else:
|
|
1300
|
+
_default_content_type = (
|
|
1301
|
+
self.api_client.select_header_content_type(
|
|
1302
|
+
[
|
|
1303
|
+
'application/json'
|
|
1304
|
+
]
|
|
1305
|
+
)
|
|
1306
|
+
)
|
|
1307
|
+
if _default_content_type is not None:
|
|
1308
|
+
_header_params['Content-Type'] = _default_content_type
|
|
995
1309
|
|
|
996
1310
|
# authentication setting
|
|
997
1311
|
_auth_settings: List[str] = [
|
|
@@ -999,7 +1313,273 @@ class TagResourceApi:
|
|
|
999
1313
|
|
|
1000
1314
|
return self.api_client.param_serialize(
|
|
1001
1315
|
method='PUT',
|
|
1002
|
-
resource_path='/api/v1/tags/
|
|
1316
|
+
resource_path='/api/v1/tags/{tagRid}',
|
|
1317
|
+
path_params=_path_params,
|
|
1318
|
+
query_params=_query_params,
|
|
1319
|
+
header_params=_header_params,
|
|
1320
|
+
body=_body_params,
|
|
1321
|
+
post_params=_form_params,
|
|
1322
|
+
files=_files,
|
|
1323
|
+
auth_settings=_auth_settings,
|
|
1324
|
+
collection_formats=_collection_formats,
|
|
1325
|
+
_host=_host,
|
|
1326
|
+
_request_auth=_request_auth
|
|
1327
|
+
)
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
@validate_call
|
|
1333
|
+
def update_tag_empty(
|
|
1334
|
+
self,
|
|
1335
|
+
update_tag_request: UpdateTagRequest,
|
|
1336
|
+
_request_timeout: Union[
|
|
1337
|
+
None,
|
|
1338
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1339
|
+
Tuple[
|
|
1340
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1341
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1342
|
+
]
|
|
1343
|
+
] = None,
|
|
1344
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1345
|
+
_content_type: Optional[StrictStr] = None,
|
|
1346
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1347
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1348
|
+
) -> None:
|
|
1349
|
+
"""Update Tag Empty
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
:param update_tag_request: (required)
|
|
1353
|
+
:type update_tag_request: UpdateTagRequest
|
|
1354
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1355
|
+
number provided, it will be total request
|
|
1356
|
+
timeout. It can also be a pair (tuple) of
|
|
1357
|
+
(connection, read) timeouts.
|
|
1358
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1359
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1360
|
+
request; this effectively ignores the
|
|
1361
|
+
authentication in the spec for a single request.
|
|
1362
|
+
:type _request_auth: dict, optional
|
|
1363
|
+
:param _content_type: force content-type for the request.
|
|
1364
|
+
:type _content_type: str, Optional
|
|
1365
|
+
:param _headers: set to override the headers for a single
|
|
1366
|
+
request; this effectively ignores the headers
|
|
1367
|
+
in the spec for a single request.
|
|
1368
|
+
:type _headers: dict, optional
|
|
1369
|
+
:param _host_index: set to override the host_index for a single
|
|
1370
|
+
request; this effectively ignores the host_index
|
|
1371
|
+
in the spec for a single request.
|
|
1372
|
+
:type _host_index: int, optional
|
|
1373
|
+
:return: Returns the result object.
|
|
1374
|
+
""" # noqa: E501
|
|
1375
|
+
|
|
1376
|
+
_param = self._update_tag_empty_serialize(
|
|
1377
|
+
update_tag_request=update_tag_request,
|
|
1378
|
+
_request_auth=_request_auth,
|
|
1379
|
+
_content_type=_content_type,
|
|
1380
|
+
_headers=_headers,
|
|
1381
|
+
_host_index=_host_index
|
|
1382
|
+
)
|
|
1383
|
+
|
|
1384
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1385
|
+
'204': None,
|
|
1386
|
+
'400': None,
|
|
1387
|
+
}
|
|
1388
|
+
response_data = self.api_client.call_api(
|
|
1389
|
+
*_param,
|
|
1390
|
+
_request_timeout=_request_timeout
|
|
1391
|
+
)
|
|
1392
|
+
response_data.read()
|
|
1393
|
+
return self.api_client.response_deserialize(
|
|
1394
|
+
response_data=response_data,
|
|
1395
|
+
response_types_map=_response_types_map,
|
|
1396
|
+
).data
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
@validate_call
|
|
1400
|
+
def update_tag_empty_with_http_info(
|
|
1401
|
+
self,
|
|
1402
|
+
update_tag_request: UpdateTagRequest,
|
|
1403
|
+
_request_timeout: Union[
|
|
1404
|
+
None,
|
|
1405
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1406
|
+
Tuple[
|
|
1407
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1408
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1409
|
+
]
|
|
1410
|
+
] = None,
|
|
1411
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1412
|
+
_content_type: Optional[StrictStr] = None,
|
|
1413
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1414
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1415
|
+
) -> ApiResponse[None]:
|
|
1416
|
+
"""Update Tag Empty
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
:param update_tag_request: (required)
|
|
1420
|
+
:type update_tag_request: UpdateTagRequest
|
|
1421
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1422
|
+
number provided, it will be total request
|
|
1423
|
+
timeout. It can also be a pair (tuple) of
|
|
1424
|
+
(connection, read) timeouts.
|
|
1425
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1426
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1427
|
+
request; this effectively ignores the
|
|
1428
|
+
authentication in the spec for a single request.
|
|
1429
|
+
:type _request_auth: dict, optional
|
|
1430
|
+
:param _content_type: force content-type for the request.
|
|
1431
|
+
:type _content_type: str, Optional
|
|
1432
|
+
:param _headers: set to override the headers for a single
|
|
1433
|
+
request; this effectively ignores the headers
|
|
1434
|
+
in the spec for a single request.
|
|
1435
|
+
:type _headers: dict, optional
|
|
1436
|
+
:param _host_index: set to override the host_index for a single
|
|
1437
|
+
request; this effectively ignores the host_index
|
|
1438
|
+
in the spec for a single request.
|
|
1439
|
+
:type _host_index: int, optional
|
|
1440
|
+
:return: Returns the result object.
|
|
1441
|
+
""" # noqa: E501
|
|
1442
|
+
|
|
1443
|
+
_param = self._update_tag_empty_serialize(
|
|
1444
|
+
update_tag_request=update_tag_request,
|
|
1445
|
+
_request_auth=_request_auth,
|
|
1446
|
+
_content_type=_content_type,
|
|
1447
|
+
_headers=_headers,
|
|
1448
|
+
_host_index=_host_index
|
|
1449
|
+
)
|
|
1450
|
+
|
|
1451
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1452
|
+
'204': None,
|
|
1453
|
+
'400': None,
|
|
1454
|
+
}
|
|
1455
|
+
response_data = self.api_client.call_api(
|
|
1456
|
+
*_param,
|
|
1457
|
+
_request_timeout=_request_timeout
|
|
1458
|
+
)
|
|
1459
|
+
response_data.read()
|
|
1460
|
+
return self.api_client.response_deserialize(
|
|
1461
|
+
response_data=response_data,
|
|
1462
|
+
response_types_map=_response_types_map,
|
|
1463
|
+
)
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
@validate_call
|
|
1467
|
+
def update_tag_empty_without_preload_content(
|
|
1468
|
+
self,
|
|
1469
|
+
update_tag_request: UpdateTagRequest,
|
|
1470
|
+
_request_timeout: Union[
|
|
1471
|
+
None,
|
|
1472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1473
|
+
Tuple[
|
|
1474
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1475
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1476
|
+
]
|
|
1477
|
+
] = None,
|
|
1478
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1479
|
+
_content_type: Optional[StrictStr] = None,
|
|
1480
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1481
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1482
|
+
) -> RESTResponseType:
|
|
1483
|
+
"""Update Tag Empty
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
:param update_tag_request: (required)
|
|
1487
|
+
:type update_tag_request: UpdateTagRequest
|
|
1488
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1489
|
+
number provided, it will be total request
|
|
1490
|
+
timeout. It can also be a pair (tuple) of
|
|
1491
|
+
(connection, read) timeouts.
|
|
1492
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1493
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1494
|
+
request; this effectively ignores the
|
|
1495
|
+
authentication in the spec for a single request.
|
|
1496
|
+
:type _request_auth: dict, optional
|
|
1497
|
+
:param _content_type: force content-type for the request.
|
|
1498
|
+
:type _content_type: str, Optional
|
|
1499
|
+
:param _headers: set to override the headers for a single
|
|
1500
|
+
request; this effectively ignores the headers
|
|
1501
|
+
in the spec for a single request.
|
|
1502
|
+
:type _headers: dict, optional
|
|
1503
|
+
:param _host_index: set to override the host_index for a single
|
|
1504
|
+
request; this effectively ignores the host_index
|
|
1505
|
+
in the spec for a single request.
|
|
1506
|
+
:type _host_index: int, optional
|
|
1507
|
+
:return: Returns the result object.
|
|
1508
|
+
""" # noqa: E501
|
|
1509
|
+
|
|
1510
|
+
_param = self._update_tag_empty_serialize(
|
|
1511
|
+
update_tag_request=update_tag_request,
|
|
1512
|
+
_request_auth=_request_auth,
|
|
1513
|
+
_content_type=_content_type,
|
|
1514
|
+
_headers=_headers,
|
|
1515
|
+
_host_index=_host_index
|
|
1516
|
+
)
|
|
1517
|
+
|
|
1518
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1519
|
+
'204': None,
|
|
1520
|
+
'400': None,
|
|
1521
|
+
}
|
|
1522
|
+
response_data = self.api_client.call_api(
|
|
1523
|
+
*_param,
|
|
1524
|
+
_request_timeout=_request_timeout
|
|
1525
|
+
)
|
|
1526
|
+
return response_data.response
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
def _update_tag_empty_serialize(
|
|
1530
|
+
self,
|
|
1531
|
+
update_tag_request,
|
|
1532
|
+
_request_auth,
|
|
1533
|
+
_content_type,
|
|
1534
|
+
_headers,
|
|
1535
|
+
_host_index,
|
|
1536
|
+
) -> RequestSerialized:
|
|
1537
|
+
|
|
1538
|
+
_host = None
|
|
1539
|
+
|
|
1540
|
+
_collection_formats: Dict[str, str] = {
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
_path_params: Dict[str, str] = {}
|
|
1544
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1545
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1546
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1547
|
+
_files: Dict[
|
|
1548
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1549
|
+
] = {}
|
|
1550
|
+
_body_params: Optional[bytes] = None
|
|
1551
|
+
|
|
1552
|
+
# process the path parameters
|
|
1553
|
+
# process the query parameters
|
|
1554
|
+
# process the header parameters
|
|
1555
|
+
# process the form parameters
|
|
1556
|
+
# process the body parameter
|
|
1557
|
+
if update_tag_request is not None:
|
|
1558
|
+
_body_params = update_tag_request
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
# set the HTTP header `Content-Type`
|
|
1563
|
+
if _content_type:
|
|
1564
|
+
_header_params['Content-Type'] = _content_type
|
|
1565
|
+
else:
|
|
1566
|
+
_default_content_type = (
|
|
1567
|
+
self.api_client.select_header_content_type(
|
|
1568
|
+
[
|
|
1569
|
+
'application/json'
|
|
1570
|
+
]
|
|
1571
|
+
)
|
|
1572
|
+
)
|
|
1573
|
+
if _default_content_type is not None:
|
|
1574
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1575
|
+
|
|
1576
|
+
# authentication setting
|
|
1577
|
+
_auth_settings: List[str] = [
|
|
1578
|
+
]
|
|
1579
|
+
|
|
1580
|
+
return self.api_client.param_serialize(
|
|
1581
|
+
method='PUT',
|
|
1582
|
+
resource_path='/api/v1/tags',
|
|
1003
1583
|
path_params=_path_params,
|
|
1004
1584
|
query_params=_query_params,
|
|
1005
1585
|
header_params=_header_params,
|