@@ -1100,6 +1100,103 @@ def describe_sandbox_with_http_info(self, body, **kwargs): # noqa: E501
11001100 _request_timeout = params .get ('_request_timeout' ),
11011101 collection_formats = collection_formats )
11021102
1103+ def enable_user_cr_vpc_tunnel (self , body , ** kwargs ): # noqa: E501
1104+ """enable_user_cr_vpc_tunnel # noqa: E501
1105+
1106+ This method makes a synchronous HTTP request by default. To make an
1107+ asynchronous HTTP request, please pass async_req=True
1108+ >>> thread = api.enable_user_cr_vpc_tunnel(body, async_req=True)
1109+ >>> result = thread.get()
1110+
1111+ :param async_req bool
1112+ :param EnableUserCrVpcTunnelRequest body: (required)
1113+ :return: EnableUserCrVpcTunnelResponse
1114+ If the method is called asynchronously,
1115+ returns the request thread.
1116+ """
1117+ kwargs ['_return_http_data_only' ] = True
1118+ if kwargs .get ('async_req' ):
1119+ return self .enable_user_cr_vpc_tunnel_with_http_info (body , ** kwargs ) # noqa: E501
1120+ else :
1121+ (data ) = self .enable_user_cr_vpc_tunnel_with_http_info (body , ** kwargs ) # noqa: E501
1122+ return data
1123+
1124+ def enable_user_cr_vpc_tunnel_with_http_info (self , body , ** kwargs ): # noqa: E501
1125+ """enable_user_cr_vpc_tunnel # noqa: E501
1126+
1127+ This method makes a synchronous HTTP request by default. To make an
1128+ asynchronous HTTP request, please pass async_req=True
1129+ >>> thread = api.enable_user_cr_vpc_tunnel_with_http_info(body, async_req=True)
1130+ >>> result = thread.get()
1131+
1132+ :param async_req bool
1133+ :param EnableUserCrVpcTunnelRequest body: (required)
1134+ :return: EnableUserCrVpcTunnelResponse
1135+ If the method is called asynchronously,
1136+ returns the request thread.
1137+ """
1138+
1139+ all_params = ['body' ] # noqa: E501
1140+ all_params .append ('async_req' )
1141+ all_params .append ('_return_http_data_only' )
1142+ all_params .append ('_preload_content' )
1143+ all_params .append ('_request_timeout' )
1144+
1145+ params = locals ()
1146+ for key , val in six .iteritems (params ['kwargs' ]):
1147+ if key not in all_params :
1148+ raise TypeError (
1149+ "Got an unexpected keyword argument '%s'"
1150+ " to method enable_user_cr_vpc_tunnel" % key
1151+ )
1152+ params [key ] = val
1153+ del params ['kwargs' ]
1154+ # verify the required parameter 'body' is set
1155+ if self .api_client .client_side_validation and ('body' not in params or
1156+ params ['body' ] is None ): # noqa: E501
1157+ raise ValueError ("Missing the required parameter `body` when calling `enable_user_cr_vpc_tunnel`" ) # noqa: E501
1158+
1159+ collection_formats = {}
1160+
1161+ path_params = {}
1162+
1163+ query_params = []
1164+
1165+ header_params = {}
1166+
1167+ form_params = []
1168+ local_var_files = {}
1169+
1170+ body_params = None
1171+ if 'body' in params :
1172+ body_params = params ['body' ]
1173+ # HTTP header `Accept`
1174+ header_params ['Accept' ] = self .api_client .select_header_accept (
1175+ ['application/json' ]) # noqa: E501
1176+
1177+ # HTTP header `Content-Type`
1178+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1179+ ['application/json' ]) # noqa: E501
1180+
1181+ # Authentication setting
1182+ auth_settings = ['volcengineSign' ] # noqa: E501
1183+
1184+ return self .api_client .call_api (
1185+ '/EnableUserCrVpcTunnel/2024-06-06/vefaas/post/application_json/' , 'POST' ,
1186+ path_params ,
1187+ query_params ,
1188+ header_params ,
1189+ body = body_params ,
1190+ post_params = form_params ,
1191+ files = local_var_files ,
1192+ response_type = 'EnableUserCrVpcTunnelResponse' , # noqa: E501
1193+ auth_settings = auth_settings ,
1194+ async_req = params .get ('async_req' ),
1195+ _return_http_data_only = params .get ('_return_http_data_only' ),
1196+ _preload_content = params .get ('_preload_content' , True ),
1197+ _request_timeout = params .get ('_request_timeout' ),
1198+ collection_formats = collection_formats )
1199+
11031200 def gen_webshell_endpoint (self , body , ** kwargs ): # noqa: E501
11041201 """gen_webshell_endpoint # noqa: E501
11051202
@@ -3622,6 +3719,103 @@ def precache_sandbox_images_with_http_info(self, body, **kwargs): # noqa: E501
36223719 _request_timeout = params .get ('_request_timeout' ),
36233720 collection_formats = collection_formats )
36243721
3722+ def query_user_cr_vpc_tunnel (self , body , ** kwargs ): # noqa: E501
3723+ """query_user_cr_vpc_tunnel # noqa: E501
3724+
3725+ This method makes a synchronous HTTP request by default. To make an
3726+ asynchronous HTTP request, please pass async_req=True
3727+ >>> thread = api.query_user_cr_vpc_tunnel(body, async_req=True)
3728+ >>> result = thread.get()
3729+
3730+ :param async_req bool
3731+ :param QueryUserCrVpcTunnelRequest body: (required)
3732+ :return: QueryUserCrVpcTunnelResponse
3733+ If the method is called asynchronously,
3734+ returns the request thread.
3735+ """
3736+ kwargs ['_return_http_data_only' ] = True
3737+ if kwargs .get ('async_req' ):
3738+ return self .query_user_cr_vpc_tunnel_with_http_info (body , ** kwargs ) # noqa: E501
3739+ else :
3740+ (data ) = self .query_user_cr_vpc_tunnel_with_http_info (body , ** kwargs ) # noqa: E501
3741+ return data
3742+
3743+ def query_user_cr_vpc_tunnel_with_http_info (self , body , ** kwargs ): # noqa: E501
3744+ """query_user_cr_vpc_tunnel # noqa: E501
3745+
3746+ This method makes a synchronous HTTP request by default. To make an
3747+ asynchronous HTTP request, please pass async_req=True
3748+ >>> thread = api.query_user_cr_vpc_tunnel_with_http_info(body, async_req=True)
3749+ >>> result = thread.get()
3750+
3751+ :param async_req bool
3752+ :param QueryUserCrVpcTunnelRequest body: (required)
3753+ :return: QueryUserCrVpcTunnelResponse
3754+ If the method is called asynchronously,
3755+ returns the request thread.
3756+ """
3757+
3758+ all_params = ['body' ] # noqa: E501
3759+ all_params .append ('async_req' )
3760+ all_params .append ('_return_http_data_only' )
3761+ all_params .append ('_preload_content' )
3762+ all_params .append ('_request_timeout' )
3763+
3764+ params = locals ()
3765+ for key , val in six .iteritems (params ['kwargs' ]):
3766+ if key not in all_params :
3767+ raise TypeError (
3768+ "Got an unexpected keyword argument '%s'"
3769+ " to method query_user_cr_vpc_tunnel" % key
3770+ )
3771+ params [key ] = val
3772+ del params ['kwargs' ]
3773+ # verify the required parameter 'body' is set
3774+ if self .api_client .client_side_validation and ('body' not in params or
3775+ params ['body' ] is None ): # noqa: E501
3776+ raise ValueError ("Missing the required parameter `body` when calling `query_user_cr_vpc_tunnel`" ) # noqa: E501
3777+
3778+ collection_formats = {}
3779+
3780+ path_params = {}
3781+
3782+ query_params = []
3783+
3784+ header_params = {}
3785+
3786+ form_params = []
3787+ local_var_files = {}
3788+
3789+ body_params = None
3790+ if 'body' in params :
3791+ body_params = params ['body' ]
3792+ # HTTP header `Accept`
3793+ header_params ['Accept' ] = self .api_client .select_header_accept (
3794+ ['application/json' ]) # noqa: E501
3795+
3796+ # HTTP header `Content-Type`
3797+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3798+ ['application/json' ]) # noqa: E501
3799+
3800+ # Authentication setting
3801+ auth_settings = ['volcengineSign' ] # noqa: E501
3802+
3803+ return self .api_client .call_api (
3804+ '/QueryUserCrVpcTunnel/2024-06-06/vefaas/post/application_json/' , 'POST' ,
3805+ path_params ,
3806+ query_params ,
3807+ header_params ,
3808+ body = body_params ,
3809+ post_params = form_params ,
3810+ files = local_var_files ,
3811+ response_type = 'QueryUserCrVpcTunnelResponse' , # noqa: E501
3812+ auth_settings = auth_settings ,
3813+ async_req = params .get ('async_req' ),
3814+ _return_http_data_only = params .get ('_return_http_data_only' ),
3815+ _preload_content = params .get ('_preload_content' , True ),
3816+ _request_timeout = params .get ('_request_timeout' ),
3817+ collection_formats = collection_formats )
3818+
36253819 def release (self , body , ** kwargs ): # noqa: E501
36263820 """release # noqa: E501
36273821
0 commit comments