perceptic-core-client 0.20.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.

@@ -90,6 +90,7 @@ from perceptic_core_client.models.list_indexers_response import ListIndexersResp
90
90
  from perceptic_core_client.models.list_indexing_actions_response import ListIndexingActionsResponse
91
91
  from perceptic_core_client.models.list_indexing_schedules_response import ListIndexingSchedulesResponse
92
92
  from perceptic_core_client.models.list_schedule_executions_response import ListScheduleExecutionsResponse
93
+ from perceptic_core_client.models.list_tags_response import ListTagsResponse
93
94
  from perceptic_core_client.models.managed_file_system_api_dto import ManagedFileSystemApiDto
94
95
  from perceptic_core_client.models.me_response import MeResponse
95
96
  from perceptic_core_client.models.model_schema import ModelSchema
@@ -111,8 +112,11 @@ from perceptic_core_client.models.schedule_execution_dto import ScheduleExecutio
111
112
  from perceptic_core_client.models.schedule_trigger import ScheduleTrigger
112
113
  from perceptic_core_client.models.schema_location import SchemaLocation
113
114
  from perceptic_core_client.models.start_execution_response import StartExecutionResponse
115
+ from perceptic_core_client.models.tag_info import TagInfo
114
116
  from perceptic_core_client.models.update_indexing_schedule_request import UpdateIndexingScheduleRequest
115
117
  from perceptic_core_client.models.update_indexing_schedule_response import UpdateIndexingScheduleResponse
118
+ from perceptic_core_client.models.update_tag_request import UpdateTagRequest
119
+ from perceptic_core_client.models.update_tag_response import UpdateTagResponse
116
120
  from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
117
121
  from perceptic_core_client.models.worker_event import WorkerEvent
118
122
  from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
@@ -587,6 +587,256 @@ class FileSystemResourceApi:
587
587
 
588
588
 
589
589
 
590
+ @validate_call
591
+ def delete_file_system(
592
+ self,
593
+ file_system_rid: StrictStr,
594
+ _request_timeout: Union[
595
+ None,
596
+ Annotated[StrictFloat, Field(gt=0)],
597
+ Tuple[
598
+ Annotated[StrictFloat, Field(gt=0)],
599
+ Annotated[StrictFloat, Field(gt=0)]
600
+ ]
601
+ ] = None,
602
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
603
+ _content_type: Optional[StrictStr] = None,
604
+ _headers: Optional[Dict[StrictStr, Any]] = None,
605
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
606
+ ) -> None:
607
+ """Delete File System
608
+
609
+
610
+ :param file_system_rid: (required)
611
+ :type file_system_rid: str
612
+ :param _request_timeout: timeout setting for this request. If one
613
+ number provided, it will be total request
614
+ timeout. It can also be a pair (tuple) of
615
+ (connection, read) timeouts.
616
+ :type _request_timeout: int, tuple(int, int), optional
617
+ :param _request_auth: set to override the auth_settings for an a single
618
+ request; this effectively ignores the
619
+ authentication in the spec for a single request.
620
+ :type _request_auth: dict, optional
621
+ :param _content_type: force content-type for the request.
622
+ :type _content_type: str, Optional
623
+ :param _headers: set to override the headers for a single
624
+ request; this effectively ignores the headers
625
+ in the spec for a single request.
626
+ :type _headers: dict, optional
627
+ :param _host_index: set to override the host_index for a single
628
+ request; this effectively ignores the host_index
629
+ in the spec for a single request.
630
+ :type _host_index: int, optional
631
+ :return: Returns the result object.
632
+ """ # noqa: E501
633
+
634
+ _param = self._delete_file_system_serialize(
635
+ file_system_rid=file_system_rid,
636
+ _request_auth=_request_auth,
637
+ _content_type=_content_type,
638
+ _headers=_headers,
639
+ _host_index=_host_index
640
+ )
641
+
642
+ _response_types_map: Dict[str, Optional[str]] = {
643
+ '204': None,
644
+ }
645
+ response_data = self.api_client.call_api(
646
+ *_param,
647
+ _request_timeout=_request_timeout
648
+ )
649
+ response_data.read()
650
+ return self.api_client.response_deserialize(
651
+ response_data=response_data,
652
+ response_types_map=_response_types_map,
653
+ ).data
654
+
655
+
656
+ @validate_call
657
+ def delete_file_system_with_http_info(
658
+ self,
659
+ file_system_rid: StrictStr,
660
+ _request_timeout: Union[
661
+ None,
662
+ Annotated[StrictFloat, Field(gt=0)],
663
+ Tuple[
664
+ Annotated[StrictFloat, Field(gt=0)],
665
+ Annotated[StrictFloat, Field(gt=0)]
666
+ ]
667
+ ] = None,
668
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
669
+ _content_type: Optional[StrictStr] = None,
670
+ _headers: Optional[Dict[StrictStr, Any]] = None,
671
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
672
+ ) -> ApiResponse[None]:
673
+ """Delete File System
674
+
675
+
676
+ :param file_system_rid: (required)
677
+ :type file_system_rid: str
678
+ :param _request_timeout: timeout setting for this request. If one
679
+ number provided, it will be total request
680
+ timeout. It can also be a pair (tuple) of
681
+ (connection, read) timeouts.
682
+ :type _request_timeout: int, tuple(int, int), optional
683
+ :param _request_auth: set to override the auth_settings for an a single
684
+ request; this effectively ignores the
685
+ authentication in the spec for a single request.
686
+ :type _request_auth: dict, optional
687
+ :param _content_type: force content-type for the request.
688
+ :type _content_type: str, Optional
689
+ :param _headers: set to override the headers for a single
690
+ request; this effectively ignores the headers
691
+ in the spec for a single request.
692
+ :type _headers: dict, optional
693
+ :param _host_index: set to override the host_index for a single
694
+ request; this effectively ignores the host_index
695
+ in the spec for a single request.
696
+ :type _host_index: int, optional
697
+ :return: Returns the result object.
698
+ """ # noqa: E501
699
+
700
+ _param = self._delete_file_system_serialize(
701
+ file_system_rid=file_system_rid,
702
+ _request_auth=_request_auth,
703
+ _content_type=_content_type,
704
+ _headers=_headers,
705
+ _host_index=_host_index
706
+ )
707
+
708
+ _response_types_map: Dict[str, Optional[str]] = {
709
+ '204': None,
710
+ }
711
+ response_data = self.api_client.call_api(
712
+ *_param,
713
+ _request_timeout=_request_timeout
714
+ )
715
+ response_data.read()
716
+ return self.api_client.response_deserialize(
717
+ response_data=response_data,
718
+ response_types_map=_response_types_map,
719
+ )
720
+
721
+
722
+ @validate_call
723
+ def delete_file_system_without_preload_content(
724
+ self,
725
+ file_system_rid: StrictStr,
726
+ _request_timeout: Union[
727
+ None,
728
+ Annotated[StrictFloat, Field(gt=0)],
729
+ Tuple[
730
+ Annotated[StrictFloat, Field(gt=0)],
731
+ Annotated[StrictFloat, Field(gt=0)]
732
+ ]
733
+ ] = None,
734
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
735
+ _content_type: Optional[StrictStr] = None,
736
+ _headers: Optional[Dict[StrictStr, Any]] = None,
737
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
738
+ ) -> RESTResponseType:
739
+ """Delete File System
740
+
741
+
742
+ :param file_system_rid: (required)
743
+ :type file_system_rid: str
744
+ :param _request_timeout: timeout setting for this request. If one
745
+ number provided, it will be total request
746
+ timeout. It can also be a pair (tuple) of
747
+ (connection, read) timeouts.
748
+ :type _request_timeout: int, tuple(int, int), optional
749
+ :param _request_auth: set to override the auth_settings for an a single
750
+ request; this effectively ignores the
751
+ authentication in the spec for a single request.
752
+ :type _request_auth: dict, optional
753
+ :param _content_type: force content-type for the request.
754
+ :type _content_type: str, Optional
755
+ :param _headers: set to override the headers for a single
756
+ request; this effectively ignores the headers
757
+ in the spec for a single request.
758
+ :type _headers: dict, optional
759
+ :param _host_index: set to override the host_index for a single
760
+ request; this effectively ignores the host_index
761
+ in the spec for a single request.
762
+ :type _host_index: int, optional
763
+ :return: Returns the result object.
764
+ """ # noqa: E501
765
+
766
+ _param = self._delete_file_system_serialize(
767
+ file_system_rid=file_system_rid,
768
+ _request_auth=_request_auth,
769
+ _content_type=_content_type,
770
+ _headers=_headers,
771
+ _host_index=_host_index
772
+ )
773
+
774
+ _response_types_map: Dict[str, Optional[str]] = {
775
+ '204': None,
776
+ }
777
+ response_data = self.api_client.call_api(
778
+ *_param,
779
+ _request_timeout=_request_timeout
780
+ )
781
+ return response_data.response
782
+
783
+
784
+ def _delete_file_system_serialize(
785
+ self,
786
+ file_system_rid,
787
+ _request_auth,
788
+ _content_type,
789
+ _headers,
790
+ _host_index,
791
+ ) -> RequestSerialized:
792
+
793
+ _host = None
794
+
795
+ _collection_formats: Dict[str, str] = {
796
+ }
797
+
798
+ _path_params: Dict[str, str] = {}
799
+ _query_params: List[Tuple[str, str]] = []
800
+ _header_params: Dict[str, Optional[str]] = _headers or {}
801
+ _form_params: List[Tuple[str, str]] = []
802
+ _files: Dict[
803
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
804
+ ] = {}
805
+ _body_params: Optional[bytes] = None
806
+
807
+ # process the path parameters
808
+ if file_system_rid is not None:
809
+ _path_params['fileSystemRid'] = file_system_rid
810
+ # process the query parameters
811
+ # process the header parameters
812
+ # process the form parameters
813
+ # process the body parameter
814
+
815
+
816
+
817
+
818
+ # authentication setting
819
+ _auth_settings: List[str] = [
820
+ ]
821
+
822
+ return self.api_client.param_serialize(
823
+ method='DELETE',
824
+ resource_path='/api/v1/file-systems/{fileSystemRid}',
825
+ path_params=_path_params,
826
+ query_params=_query_params,
827
+ header_params=_header_params,
828
+ body=_body_params,
829
+ post_params=_form_params,
830
+ files=_files,
831
+ auth_settings=_auth_settings,
832
+ collection_formats=_collection_formats,
833
+ _host=_host,
834
+ _request_auth=_request_auth
835
+ )
836
+
837
+
838
+
839
+
590
840
  @validate_call
591
841
  def get_file_system(
592
842
  self,