@@ -1003,6 +1003,103 @@ def get_user_with_http_info(self, body, **kwargs): # noqa: E501
10031003 _request_timeout = params .get ('_request_timeout' ),
10041004 collection_formats = collection_formats )
10051005
1006+ def get_vpc_endpoint (self , body , ** kwargs ): # noqa: E501
1007+ """get_vpc_endpoint # noqa: E501
1008+
1009+ This method makes a synchronous HTTP request by default. To make an
1010+ asynchronous HTTP request, please pass async_req=True
1011+ >>> thread = api.get_vpc_endpoint(body, async_req=True)
1012+ >>> result = thread.get()
1013+
1014+ :param async_req bool
1015+ :param GetVpcEndpointRequest body: (required)
1016+ :return: GetVpcEndpointResponse
1017+ If the method is called asynchronously,
1018+ returns the request thread.
1019+ """
1020+ kwargs ['_return_http_data_only' ] = True
1021+ if kwargs .get ('async_req' ):
1022+ return self .get_vpc_endpoint_with_http_info (body , ** kwargs ) # noqa: E501
1023+ else :
1024+ (data ) = self .get_vpc_endpoint_with_http_info (body , ** kwargs ) # noqa: E501
1025+ return data
1026+
1027+ def get_vpc_endpoint_with_http_info (self , body , ** kwargs ): # noqa: E501
1028+ """get_vpc_endpoint # noqa: E501
1029+
1030+ This method makes a synchronous HTTP request by default. To make an
1031+ asynchronous HTTP request, please pass async_req=True
1032+ >>> thread = api.get_vpc_endpoint_with_http_info(body, async_req=True)
1033+ >>> result = thread.get()
1034+
1035+ :param async_req bool
1036+ :param GetVpcEndpointRequest body: (required)
1037+ :return: GetVpcEndpointResponse
1038+ If the method is called asynchronously,
1039+ returns the request thread.
1040+ """
1041+
1042+ all_params = ['body' ] # noqa: E501
1043+ all_params .append ('async_req' )
1044+ all_params .append ('_return_http_data_only' )
1045+ all_params .append ('_preload_content' )
1046+ all_params .append ('_request_timeout' )
1047+
1048+ params = locals ()
1049+ for key , val in six .iteritems (params ['kwargs' ]):
1050+ if key not in all_params :
1051+ raise TypeError (
1052+ "Got an unexpected keyword argument '%s'"
1053+ " to method get_vpc_endpoint" % key
1054+ )
1055+ params [key ] = val
1056+ del params ['kwargs' ]
1057+ # verify the required parameter 'body' is set
1058+ if self .api_client .client_side_validation and ('body' not in params or
1059+ params ['body' ] is None ): # noqa: E501
1060+ raise ValueError ("Missing the required parameter `body` when calling `get_vpc_endpoint`" ) # noqa: E501
1061+
1062+ collection_formats = {}
1063+
1064+ path_params = {}
1065+
1066+ query_params = []
1067+
1068+ header_params = {}
1069+
1070+ form_params = []
1071+ local_var_files = {}
1072+
1073+ body_params = None
1074+ if 'body' in params :
1075+ body_params = params ['body' ]
1076+ # HTTP header `Accept`
1077+ header_params ['Accept' ] = self .api_client .select_header_accept (
1078+ ['application/json' ]) # noqa: E501
1079+
1080+ # HTTP header `Content-Type`
1081+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1082+ ['application/json' ]) # noqa: E501
1083+
1084+ # Authentication setting
1085+ auth_settings = ['volcengineSign' ] # noqa: E501
1086+
1087+ return self .api_client .call_api (
1088+ '/GetVpcEndpoint/2022-05-12/cr/post/' , 'POST' ,
1089+ path_params ,
1090+ query_params ,
1091+ header_params ,
1092+ body = body_params ,
1093+ post_params = form_params ,
1094+ files = local_var_files ,
1095+ response_type = 'GetVpcEndpointResponse' , # noqa: E501
1096+ auth_settings = auth_settings ,
1097+ async_req = params .get ('async_req' ),
1098+ _return_http_data_only = params .get ('_return_http_data_only' ),
1099+ _preload_content = params .get ('_preload_content' , True ),
1100+ _request_timeout = params .get ('_request_timeout' ),
1101+ collection_formats = collection_formats )
1102+
10061103 def list_domains (self , body , ** kwargs ): # noqa: E501
10071104 """list_domains # noqa: E501
10081105
@@ -1875,3 +1972,100 @@ def update_repository_with_http_info(self, body, **kwargs): # noqa: E501
18751972 _preload_content = params .get ('_preload_content' , True ),
18761973 _request_timeout = params .get ('_request_timeout' ),
18771974 collection_formats = collection_formats )
1975+
1976+ def update_vpc_endpoint (self , body , ** kwargs ): # noqa: E501
1977+ """update_vpc_endpoint # noqa: E501
1978+
1979+ This method makes a synchronous HTTP request by default. To make an
1980+ asynchronous HTTP request, please pass async_req=True
1981+ >>> thread = api.update_vpc_endpoint(body, async_req=True)
1982+ >>> result = thread.get()
1983+
1984+ :param async_req bool
1985+ :param UpdateVpcEndpointRequest body: (required)
1986+ :return: UpdateVpcEndpointResponse
1987+ If the method is called asynchronously,
1988+ returns the request thread.
1989+ """
1990+ kwargs ['_return_http_data_only' ] = True
1991+ if kwargs .get ('async_req' ):
1992+ return self .update_vpc_endpoint_with_http_info (body , ** kwargs ) # noqa: E501
1993+ else :
1994+ (data ) = self .update_vpc_endpoint_with_http_info (body , ** kwargs ) # noqa: E501
1995+ return data
1996+
1997+ def update_vpc_endpoint_with_http_info (self , body , ** kwargs ): # noqa: E501
1998+ """update_vpc_endpoint # noqa: E501
1999+
2000+ This method makes a synchronous HTTP request by default. To make an
2001+ asynchronous HTTP request, please pass async_req=True
2002+ >>> thread = api.update_vpc_endpoint_with_http_info(body, async_req=True)
2003+ >>> result = thread.get()
2004+
2005+ :param async_req bool
2006+ :param UpdateVpcEndpointRequest body: (required)
2007+ :return: UpdateVpcEndpointResponse
2008+ If the method is called asynchronously,
2009+ returns the request thread.
2010+ """
2011+
2012+ all_params = ['body' ] # noqa: E501
2013+ all_params .append ('async_req' )
2014+ all_params .append ('_return_http_data_only' )
2015+ all_params .append ('_preload_content' )
2016+ all_params .append ('_request_timeout' )
2017+
2018+ params = locals ()
2019+ for key , val in six .iteritems (params ['kwargs' ]):
2020+ if key not in all_params :
2021+ raise TypeError (
2022+ "Got an unexpected keyword argument '%s'"
2023+ " to method update_vpc_endpoint" % key
2024+ )
2025+ params [key ] = val
2026+ del params ['kwargs' ]
2027+ # verify the required parameter 'body' is set
2028+ if self .api_client .client_side_validation and ('body' not in params or
2029+ params ['body' ] is None ): # noqa: E501
2030+ raise ValueError ("Missing the required parameter `body` when calling `update_vpc_endpoint`" ) # noqa: E501
2031+
2032+ collection_formats = {}
2033+
2034+ path_params = {}
2035+
2036+ query_params = []
2037+
2038+ header_params = {}
2039+
2040+ form_params = []
2041+ local_var_files = {}
2042+
2043+ body_params = None
2044+ if 'body' in params :
2045+ body_params = params ['body' ]
2046+ # HTTP header `Accept`
2047+ header_params ['Accept' ] = self .api_client .select_header_accept (
2048+ ['application/json' ]) # noqa: E501
2049+
2050+ # HTTP header `Content-Type`
2051+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2052+ ['application/json' ]) # noqa: E501
2053+
2054+ # Authentication setting
2055+ auth_settings = ['volcengineSign' ] # noqa: E501
2056+
2057+ return self .api_client .call_api (
2058+ '/UpdateVpcEndpoint/2022-05-12/cr/post/' , 'POST' ,
2059+ path_params ,
2060+ query_params ,
2061+ header_params ,
2062+ body = body_params ,
2063+ post_params = form_params ,
2064+ files = local_var_files ,
2065+ response_type = 'UpdateVpcEndpointResponse' , # noqa: E501
2066+ auth_settings = auth_settings ,
2067+ async_req = params .get ('async_req' ),
2068+ _return_http_data_only = params .get ('_return_http_data_only' ),
2069+ _preload_content = params .get ('_preload_content' , True ),
2070+ _request_timeout = params .get ('_request_timeout' ),
2071+ collection_formats = collection_formats )
0 commit comments