@@ -615,6 +615,103 @@ def get_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
615615 _request_timeout = params .get ('_request_timeout' ),
616616 collection_formats = collection_formats )
617617
618+ def get_endpoint_certificate (self , body , ** kwargs ): # noqa: E501
619+ """get_endpoint_certificate # noqa: E501
620+
621+ This method makes a synchronous HTTP request by default. To make an
622+ asynchronous HTTP request, please pass async_req=True
623+ >>> thread = api.get_endpoint_certificate(body, async_req=True)
624+ >>> result = thread.get()
625+
626+ :param async_req bool
627+ :param GetEndpointCertificateRequest body: (required)
628+ :return: GetEndpointCertificateResponse
629+ If the method is called asynchronously,
630+ returns the request thread.
631+ """
632+ kwargs ['_return_http_data_only' ] = True
633+ if kwargs .get ('async_req' ):
634+ return self .get_endpoint_certificate_with_http_info (body , ** kwargs ) # noqa: E501
635+ else :
636+ (data ) = self .get_endpoint_certificate_with_http_info (body , ** kwargs ) # noqa: E501
637+ return data
638+
639+ def get_endpoint_certificate_with_http_info (self , body , ** kwargs ): # noqa: E501
640+ """get_endpoint_certificate # noqa: E501
641+
642+ This method makes a synchronous HTTP request by default. To make an
643+ asynchronous HTTP request, please pass async_req=True
644+ >>> thread = api.get_endpoint_certificate_with_http_info(body, async_req=True)
645+ >>> result = thread.get()
646+
647+ :param async_req bool
648+ :param GetEndpointCertificateRequest body: (required)
649+ :return: GetEndpointCertificateResponse
650+ If the method is called asynchronously,
651+ returns the request thread.
652+ """
653+
654+ all_params = ['body' ] # noqa: E501
655+ all_params .append ('async_req' )
656+ all_params .append ('_return_http_data_only' )
657+ all_params .append ('_preload_content' )
658+ all_params .append ('_request_timeout' )
659+
660+ params = locals ()
661+ for key , val in six .iteritems (params ['kwargs' ]):
662+ if key not in all_params :
663+ raise TypeError (
664+ "Got an unexpected keyword argument '%s'"
665+ " to method get_endpoint_certificate" % key
666+ )
667+ params [key ] = val
668+ del params ['kwargs' ]
669+ # verify the required parameter 'body' is set
670+ if self .api_client .client_side_validation and ('body' not in params or
671+ params ['body' ] is None ): # noqa: E501
672+ raise ValueError ("Missing the required parameter `body` when calling `get_endpoint_certificate`" ) # noqa: E501
673+
674+ collection_formats = {}
675+
676+ path_params = {}
677+
678+ query_params = []
679+
680+ header_params = {}
681+
682+ form_params = []
683+ local_var_files = {}
684+
685+ body_params = None
686+ if 'body' in params :
687+ body_params = params ['body' ]
688+ # HTTP header `Accept`
689+ header_params ['Accept' ] = self .api_client .select_header_accept (
690+ ['application/json' ]) # noqa: E501
691+
692+ # HTTP header `Content-Type`
693+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
694+ ['application/json' ]) # noqa: E501
695+
696+ # Authentication setting
697+ auth_settings = ['volcengineSign' ] # noqa: E501
698+
699+ return self .api_client .call_api (
700+ '/GetEndpointCertificate/2024-01-01/ark/post/application_json/' , 'POST' ,
701+ path_params ,
702+ query_params ,
703+ header_params ,
704+ body = body_params ,
705+ post_params = form_params ,
706+ files = local_var_files ,
707+ response_type = 'GetEndpointCertificateResponse' , # noqa: E501
708+ auth_settings = auth_settings ,
709+ async_req = params .get ('async_req' ),
710+ _return_http_data_only = params .get ('_return_http_data_only' ),
711+ _preload_content = params .get ('_preload_content' , True ),
712+ _request_timeout = params .get ('_request_timeout' ),
713+ collection_formats = collection_formats )
714+
618715 def get_model_customization_job (self , body , ** kwargs ): # noqa: E501
619716 """get_model_customization_job # noqa: E501
620717
0 commit comments