@@ -615,6 +615,103 @@ def describe_instances_with_http_info(self, body, **kwargs): # noqa: E501
615615 _request_timeout = params .get ('_request_timeout' ),
616616 collection_formats = collection_formats )
617617
618+ def describe_ip_allow_list (self , body , ** kwargs ): # noqa: E501
619+ """describe_ip_allow_list # 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.describe_ip_allow_list(body, async_req=True)
624+ >>> result = thread.get()
625+
626+ :param async_req bool
627+ :param DescribeIpAllowListRequest body: (required)
628+ :return: DescribeIpAllowListResponse
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 .describe_ip_allow_list_with_http_info (body , ** kwargs ) # noqa: E501
635+ else :
636+ (data ) = self .describe_ip_allow_list_with_http_info (body , ** kwargs ) # noqa: E501
637+ return data
638+
639+ def describe_ip_allow_list_with_http_info (self , body , ** kwargs ): # noqa: E501
640+ """describe_ip_allow_list # 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.describe_ip_allow_list_with_http_info(body, async_req=True)
645+ >>> result = thread.get()
646+
647+ :param async_req bool
648+ :param DescribeIpAllowListRequest body: (required)
649+ :return: DescribeIpAllowListResponse
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 describe_ip_allow_list" % 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 `describe_ip_allow_list`" ) # 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+ '/DescribeIpAllowList/2023-01-01/escloud/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 = 'DescribeIpAllowListResponse' , # 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 describe_node_available_specs (self , body , ** kwargs ): # noqa: E501
619716 """describe_node_available_specs # noqa: E501
620717
@@ -1197,6 +1294,103 @@ def modify_ip_allow_list_with_http_info(self, body, **kwargs): # noqa: E501
11971294 _request_timeout = params .get ('_request_timeout' ),
11981295 collection_formats = collection_formats )
11991296
1297+ def modify_ip_allow_list_v2 (self , body , ** kwargs ): # noqa: E501
1298+ """modify_ip_allow_list_v2 # noqa: E501
1299+
1300+ This method makes a synchronous HTTP request by default. To make an
1301+ asynchronous HTTP request, please pass async_req=True
1302+ >>> thread = api.modify_ip_allow_list_v2(body, async_req=True)
1303+ >>> result = thread.get()
1304+
1305+ :param async_req bool
1306+ :param ModifyIpAllowListV2Request body: (required)
1307+ :return: ModifyIpAllowListV2Response
1308+ If the method is called asynchronously,
1309+ returns the request thread.
1310+ """
1311+ kwargs ['_return_http_data_only' ] = True
1312+ if kwargs .get ('async_req' ):
1313+ return self .modify_ip_allow_list_v2_with_http_info (body , ** kwargs ) # noqa: E501
1314+ else :
1315+ (data ) = self .modify_ip_allow_list_v2_with_http_info (body , ** kwargs ) # noqa: E501
1316+ return data
1317+
1318+ def modify_ip_allow_list_v2_with_http_info (self , body , ** kwargs ): # noqa: E501
1319+ """modify_ip_allow_list_v2 # noqa: E501
1320+
1321+ This method makes a synchronous HTTP request by default. To make an
1322+ asynchronous HTTP request, please pass async_req=True
1323+ >>> thread = api.modify_ip_allow_list_v2_with_http_info(body, async_req=True)
1324+ >>> result = thread.get()
1325+
1326+ :param async_req bool
1327+ :param ModifyIpAllowListV2Request body: (required)
1328+ :return: ModifyIpAllowListV2Response
1329+ If the method is called asynchronously,
1330+ returns the request thread.
1331+ """
1332+
1333+ all_params = ['body' ] # noqa: E501
1334+ all_params .append ('async_req' )
1335+ all_params .append ('_return_http_data_only' )
1336+ all_params .append ('_preload_content' )
1337+ all_params .append ('_request_timeout' )
1338+
1339+ params = locals ()
1340+ for key , val in six .iteritems (params ['kwargs' ]):
1341+ if key not in all_params :
1342+ raise TypeError (
1343+ "Got an unexpected keyword argument '%s'"
1344+ " to method modify_ip_allow_list_v2" % key
1345+ )
1346+ params [key ] = val
1347+ del params ['kwargs' ]
1348+ # verify the required parameter 'body' is set
1349+ if self .api_client .client_side_validation and ('body' not in params or
1350+ params ['body' ] is None ): # noqa: E501
1351+ raise ValueError ("Missing the required parameter `body` when calling `modify_ip_allow_list_v2`" ) # noqa: E501
1352+
1353+ collection_formats = {}
1354+
1355+ path_params = {}
1356+
1357+ query_params = []
1358+
1359+ header_params = {}
1360+
1361+ form_params = []
1362+ local_var_files = {}
1363+
1364+ body_params = None
1365+ if 'body' in params :
1366+ body_params = params ['body' ]
1367+ # HTTP header `Accept`
1368+ header_params ['Accept' ] = self .api_client .select_header_accept (
1369+ ['application/json' ]) # noqa: E501
1370+
1371+ # HTTP header `Content-Type`
1372+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1373+ ['application/json' ]) # noqa: E501
1374+
1375+ # Authentication setting
1376+ auth_settings = ['volcengineSign' ] # noqa: E501
1377+
1378+ return self .api_client .call_api (
1379+ '/ModifyIpAllowListV2/2023-01-01/escloud/post/application_json/' , 'POST' ,
1380+ path_params ,
1381+ query_params ,
1382+ header_params ,
1383+ body = body_params ,
1384+ post_params = form_params ,
1385+ files = local_var_files ,
1386+ response_type = 'ModifyIpAllowListV2Response' , # noqa: E501
1387+ auth_settings = auth_settings ,
1388+ async_req = params .get ('async_req' ),
1389+ _return_http_data_only = params .get ('_return_http_data_only' ),
1390+ _preload_content = params .get ('_preload_content' , True ),
1391+ _request_timeout = params .get ('_request_timeout' ),
1392+ collection_formats = collection_formats )
1393+
12001394 def modify_maintenance_setting (self , body , ** kwargs ): # noqa: E501
12011395 """modify_maintenance_setting # noqa: E501
12021396
0 commit comments