@@ -633,6 +633,151 @@ def get_clusters_connection_with_http_info(self, get_clusters_connection_request
633
633
collection_formats = collection_formats ,
634
634
_request_auth = local_var_params .get ('_request_auth' ))
635
635
636
+ def get_meta_leader (self , get_meta_leader_request_body , ** kwargs ): # noqa: E501
637
+ """get_meta_leader # noqa: E501
638
+
639
+ This method makes a synchronous HTTP request by default. To make an
640
+ asynchronous HTTP request, please pass async_req=True
641
+
642
+ >>> thread = api.get_meta_leader(get_meta_leader_request_body, async_req=True)
643
+ >>> result = thread.get()
644
+
645
+ :param get_meta_leader_request_body: (required)
646
+ :type get_meta_leader_request_body: GetMetaLeaderRequestBody
647
+ :param async_req: Whether to execute the request asynchronously.
648
+ :type async_req: bool, optional
649
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
650
+ be returned without reading/decoding response
651
+ data. Default is True.
652
+ :type _preload_content: bool, optional
653
+ :param _request_timeout: timeout setting for this request. If one
654
+ number provided, it will be total request
655
+ timeout. It can also be a pair (tuple) of
656
+ (connection, read) timeouts.
657
+ :return: Returns the result object.
658
+ If the method is called asynchronously,
659
+ returns the request thread.
660
+ :rtype: list[MetaLeader]
661
+ """
662
+ kwargs ['_return_http_data_only' ] = True
663
+ return self .get_meta_leader_with_http_info (get_meta_leader_request_body , ** kwargs ) # noqa: E501
664
+
665
+ def get_meta_leader_with_http_info (self , get_meta_leader_request_body , ** kwargs ): # noqa: E501
666
+ """get_meta_leader # noqa: E501
667
+
668
+ This method makes a synchronous HTTP request by default. To make an
669
+ asynchronous HTTP request, please pass async_req=True
670
+
671
+ >>> thread = api.get_meta_leader_with_http_info(get_meta_leader_request_body, async_req=True)
672
+ >>> result = thread.get()
673
+
674
+ :param get_meta_leader_request_body: (required)
675
+ :type get_meta_leader_request_body: GetMetaLeaderRequestBody
676
+ :param async_req: Whether to execute the request asynchronously.
677
+ :type async_req: bool, optional
678
+ :param _return_http_data_only: response data without head status code
679
+ and headers
680
+ :type _return_http_data_only: bool, optional
681
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
682
+ be returned without reading/decoding response
683
+ data. Default is True.
684
+ :type _preload_content: bool, optional
685
+ :param _request_timeout: timeout setting for this request. If one
686
+ number provided, it will be total request
687
+ timeout. It can also be a pair (tuple) of
688
+ (connection, read) timeouts.
689
+ :param _request_auth: set to override the auth_settings for an a single
690
+ request; this effectively ignores the authentication
691
+ in the spec for a single request.
692
+ :type _request_auth: dict, optional
693
+ :type _content_type: string, optional: force content-type for the request
694
+ :return: Returns the result object.
695
+ If the method is called asynchronously,
696
+ returns the request thread.
697
+ :rtype: tuple(list[MetaLeader], status_code(int), headers(HTTPHeaderDict))
698
+ """
699
+
700
+ local_var_params = locals ()
701
+
702
+ all_params = [
703
+ 'get_meta_leader_request_body'
704
+ ]
705
+ all_params .extend (
706
+ [
707
+ 'async_req' ,
708
+ '_return_http_data_only' ,
709
+ '_preload_content' ,
710
+ '_request_timeout' ,
711
+ '_request_auth' ,
712
+ '_content_type' ,
713
+ '_headers'
714
+ ]
715
+ )
716
+
717
+ for key , val in six .iteritems (local_var_params ['kwargs' ]):
718
+ if key not in all_params :
719
+ raise ApiTypeError (
720
+ "Got an unexpected keyword argument '%s'"
721
+ " to method get_meta_leader" % key
722
+ )
723
+ local_var_params [key ] = val
724
+ del local_var_params ['kwargs' ]
725
+ # verify the required parameter 'get_meta_leader_request_body' is set
726
+ if self .api_client .client_side_validation and ('get_meta_leader_request_body' not in local_var_params or # noqa: E501
727
+ local_var_params ['get_meta_leader_request_body' ] is None ): # noqa: E501
728
+ raise ApiValueError ("Missing the required parameter `get_meta_leader_request_body` when calling `get_meta_leader`" ) # noqa: E501
729
+
730
+ collection_formats = {}
731
+
732
+ path_params = {}
733
+
734
+ query_params = []
735
+
736
+ header_params = dict (local_var_params .get ('_headers' , {}))
737
+
738
+ form_params = []
739
+ local_var_files = {}
740
+
741
+ body_params = None
742
+ if 'get_meta_leader_request_body' in local_var_params :
743
+ body_params = local_var_params ['get_meta_leader_request_body' ]
744
+ # HTTP header `Accept`
745
+ header_params ['Accept' ] = self .api_client .select_header_accept (
746
+ ['application/json' ]) # noqa: E501
747
+
748
+ # HTTP header `Content-Type`
749
+ header_params ['Content-Type' ] = local_var_params .get ('_content_type' ,
750
+ self .api_client .select_header_content_type (
751
+ ['application/json' ],
752
+ 'POST' , body_params )) # noqa: E501
753
+
754
+ # Authentication setting
755
+ auth_settings = ['Authorization' ] # noqa: E501
756
+
757
+ response_types_map = {
758
+ 200 : "list[MetaLeader]" ,
759
+ 400 : "ErrorBody" ,
760
+ 404 : "ErrorBody" ,
761
+ 500 : "ErrorBody" ,
762
+ }
763
+
764
+ return self .api_client .call_api (
765
+ '/get-meta-leader' , 'POST' ,
766
+ path_params ,
767
+ query_params ,
768
+ header_params ,
769
+ body = body_params ,
770
+ post_params = form_params ,
771
+ files = local_var_files ,
772
+ response_types_map = response_types_map ,
773
+ auth_settings = auth_settings ,
774
+ async_req = local_var_params .get ('async_req' ),
775
+ _return_http_data_only = local_var_params .get ('_return_http_data_only' ), # noqa: E501
776
+ _preload_content = local_var_params .get ('_preload_content' , True ),
777
+ _request_timeout = local_var_params .get ('_request_timeout' ),
778
+ collection_formats = collection_formats ,
779
+ _request_auth = local_var_params .get ('_request_auth' ))
780
+
636
781
def update_cluster (self , cluster_updation_params , ** kwargs ): # noqa: E501
637
782
"""update_cluster # noqa: E501
638
783
0 commit comments