@@ -712,6 +712,200 @@ def describe_cdn_region_and_isp_with_http_info(self, body, **kwargs): # noqa: E
712712 _request_timeout = params .get ('_request_timeout' ),
713713 collection_formats = collection_formats )
714714
715+ def describe_cdn_top_ip (self , body , ** kwargs ): # noqa: E501
716+ """describe_cdn_top_ip # noqa: E501
717+
718+ This method makes a synchronous HTTP request by default. To make an
719+ asynchronous HTTP request, please pass async_req=True
720+ >>> thread = api.describe_cdn_top_ip(body, async_req=True)
721+ >>> result = thread.get()
722+
723+ :param async_req bool
724+ :param DescribeCdnTopIpRequest body: (required)
725+ :return: DescribeCdnTopIpResponse
726+ If the method is called asynchronously,
727+ returns the request thread.
728+ """
729+ kwargs ['_return_http_data_only' ] = True
730+ if kwargs .get ('async_req' ):
731+ return self .describe_cdn_top_ip_with_http_info (body , ** kwargs ) # noqa: E501
732+ else :
733+ (data ) = self .describe_cdn_top_ip_with_http_info (body , ** kwargs ) # noqa: E501
734+ return data
735+
736+ def describe_cdn_top_ip_with_http_info (self , body , ** kwargs ): # noqa: E501
737+ """describe_cdn_top_ip # noqa: E501
738+
739+ This method makes a synchronous HTTP request by default. To make an
740+ asynchronous HTTP request, please pass async_req=True
741+ >>> thread = api.describe_cdn_top_ip_with_http_info(body, async_req=True)
742+ >>> result = thread.get()
743+
744+ :param async_req bool
745+ :param DescribeCdnTopIpRequest body: (required)
746+ :return: DescribeCdnTopIpResponse
747+ If the method is called asynchronously,
748+ returns the request thread.
749+ """
750+
751+ all_params = ['body' ] # noqa: E501
752+ all_params .append ('async_req' )
753+ all_params .append ('_return_http_data_only' )
754+ all_params .append ('_preload_content' )
755+ all_params .append ('_request_timeout' )
756+
757+ params = locals ()
758+ for key , val in six .iteritems (params ['kwargs' ]):
759+ if key not in all_params :
760+ raise TypeError (
761+ "Got an unexpected keyword argument '%s'"
762+ " to method describe_cdn_top_ip" % key
763+ )
764+ params [key ] = val
765+ del params ['kwargs' ]
766+ # verify the required parameter 'body' is set
767+ if self .api_client .client_side_validation and ('body' not in params or
768+ params ['body' ] is None ): # noqa: E501
769+ raise ValueError ("Missing the required parameter `body` when calling `describe_cdn_top_ip`" ) # noqa: E501
770+
771+ collection_formats = {}
772+
773+ path_params = {}
774+
775+ query_params = []
776+
777+ header_params = {}
778+
779+ form_params = []
780+ local_var_files = {}
781+
782+ body_params = None
783+ if 'body' in params :
784+ body_params = params ['body' ]
785+ # HTTP header `Accept`
786+ header_params ['Accept' ] = self .api_client .select_header_accept (
787+ ['application/json' ]) # noqa: E501
788+
789+ # HTTP header `Content-Type`
790+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
791+ ['application/json' ]) # noqa: E501
792+
793+ # Authentication setting
794+ auth_settings = ['volcengineSign' ] # noqa: E501
795+
796+ return self .api_client .call_api (
797+ '/DescribeCdnTopIp/2022-03-01/mcdn/post/application_json/' , 'POST' ,
798+ path_params ,
799+ query_params ,
800+ header_params ,
801+ body = body_params ,
802+ post_params = form_params ,
803+ files = local_var_files ,
804+ response_type = 'DescribeCdnTopIpResponse' , # noqa: E501
805+ auth_settings = auth_settings ,
806+ async_req = params .get ('async_req' ),
807+ _return_http_data_only = params .get ('_return_http_data_only' ),
808+ _preload_content = params .get ('_preload_content' , True ),
809+ _request_timeout = params .get ('_request_timeout' ),
810+ collection_formats = collection_formats )
811+
812+ def describe_cdn_top_url (self , body , ** kwargs ): # noqa: E501
813+ """describe_cdn_top_url # noqa: E501
814+
815+ This method makes a synchronous HTTP request by default. To make an
816+ asynchronous HTTP request, please pass async_req=True
817+ >>> thread = api.describe_cdn_top_url(body, async_req=True)
818+ >>> result = thread.get()
819+
820+ :param async_req bool
821+ :param DescribeCdnTopUrlRequest body: (required)
822+ :return: DescribeCdnTopUrlResponse
823+ If the method is called asynchronously,
824+ returns the request thread.
825+ """
826+ kwargs ['_return_http_data_only' ] = True
827+ if kwargs .get ('async_req' ):
828+ return self .describe_cdn_top_url_with_http_info (body , ** kwargs ) # noqa: E501
829+ else :
830+ (data ) = self .describe_cdn_top_url_with_http_info (body , ** kwargs ) # noqa: E501
831+ return data
832+
833+ def describe_cdn_top_url_with_http_info (self , body , ** kwargs ): # noqa: E501
834+ """describe_cdn_top_url # noqa: E501
835+
836+ This method makes a synchronous HTTP request by default. To make an
837+ asynchronous HTTP request, please pass async_req=True
838+ >>> thread = api.describe_cdn_top_url_with_http_info(body, async_req=True)
839+ >>> result = thread.get()
840+
841+ :param async_req bool
842+ :param DescribeCdnTopUrlRequest body: (required)
843+ :return: DescribeCdnTopUrlResponse
844+ If the method is called asynchronously,
845+ returns the request thread.
846+ """
847+
848+ all_params = ['body' ] # noqa: E501
849+ all_params .append ('async_req' )
850+ all_params .append ('_return_http_data_only' )
851+ all_params .append ('_preload_content' )
852+ all_params .append ('_request_timeout' )
853+
854+ params = locals ()
855+ for key , val in six .iteritems (params ['kwargs' ]):
856+ if key not in all_params :
857+ raise TypeError (
858+ "Got an unexpected keyword argument '%s'"
859+ " to method describe_cdn_top_url" % key
860+ )
861+ params [key ] = val
862+ del params ['kwargs' ]
863+ # verify the required parameter 'body' is set
864+ if self .api_client .client_side_validation and ('body' not in params or
865+ params ['body' ] is None ): # noqa: E501
866+ raise ValueError ("Missing the required parameter `body` when calling `describe_cdn_top_url`" ) # noqa: E501
867+
868+ collection_formats = {}
869+
870+ path_params = {}
871+
872+ query_params = []
873+
874+ header_params = {}
875+
876+ form_params = []
877+ local_var_files = {}
878+
879+ body_params = None
880+ if 'body' in params :
881+ body_params = params ['body' ]
882+ # HTTP header `Accept`
883+ header_params ['Accept' ] = self .api_client .select_header_accept (
884+ ['application/json' ]) # noqa: E501
885+
886+ # HTTP header `Content-Type`
887+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
888+ ['application/json' ]) # noqa: E501
889+
890+ # Authentication setting
891+ auth_settings = ['volcengineSign' ] # noqa: E501
892+
893+ return self .api_client .call_api (
894+ '/DescribeCdnTopUrl/2022-03-01/mcdn/post/application_json/' , 'POST' ,
895+ path_params ,
896+ query_params ,
897+ header_params ,
898+ body = body_params ,
899+ post_params = form_params ,
900+ files = local_var_files ,
901+ response_type = 'DescribeCdnTopUrlResponse' , # noqa: E501
902+ auth_settings = auth_settings ,
903+ async_req = params .get ('async_req' ),
904+ _return_http_data_only = params .get ('_return_http_data_only' ),
905+ _preload_content = params .get ('_preload_content' , True ),
906+ _request_timeout = params .get ('_request_timeout' ),
907+ collection_formats = collection_formats )
908+
715909 def describe_content_quota (self , body , ** kwargs ): # noqa: E501
716910 """describe_content_quota # noqa: E501
717911
0 commit comments