@@ -1391,6 +1391,103 @@ def get_global_default_delete_option_with_http_info(self, body, **kwargs): # no
13911391 _request_timeout = params .get ('_request_timeout' ),
13921392 collection_formats = collection_formats )
13931393
1394+ def grant_permission (self , body , ** kwargs ): # noqa: E501
1395+ """grant_permission # noqa: E501
1396+
1397+ This method makes a synchronous HTTP request by default. To make an
1398+ asynchronous HTTP request, please pass async_req=True
1399+ >>> thread = api.grant_permission(body, async_req=True)
1400+ >>> result = thread.get()
1401+
1402+ :param async_req bool
1403+ :param GrantPermissionRequest body: (required)
1404+ :return: GrantPermissionResponse
1405+ If the method is called asynchronously,
1406+ returns the request thread.
1407+ """
1408+ kwargs ['_return_http_data_only' ] = True
1409+ if kwargs .get ('async_req' ):
1410+ return self .grant_permission_with_http_info (body , ** kwargs ) # noqa: E501
1411+ else :
1412+ (data ) = self .grant_permission_with_http_info (body , ** kwargs ) # noqa: E501
1413+ return data
1414+
1415+ def grant_permission_with_http_info (self , body , ** kwargs ): # noqa: E501
1416+ """grant_permission # noqa: E501
1417+
1418+ This method makes a synchronous HTTP request by default. To make an
1419+ asynchronous HTTP request, please pass async_req=True
1420+ >>> thread = api.grant_permission_with_http_info(body, async_req=True)
1421+ >>> result = thread.get()
1422+
1423+ :param async_req bool
1424+ :param GrantPermissionRequest body: (required)
1425+ :return: GrantPermissionResponse
1426+ If the method is called asynchronously,
1427+ returns the request thread.
1428+ """
1429+
1430+ all_params = ['body' ] # noqa: E501
1431+ all_params .append ('async_req' )
1432+ all_params .append ('_return_http_data_only' )
1433+ all_params .append ('_preload_content' )
1434+ all_params .append ('_request_timeout' )
1435+
1436+ params = locals ()
1437+ for key , val in six .iteritems (params ['kwargs' ]):
1438+ if key not in all_params :
1439+ raise TypeError (
1440+ "Got an unexpected keyword argument '%s'"
1441+ " to method grant_permission" % key
1442+ )
1443+ params [key ] = val
1444+ del params ['kwargs' ]
1445+ # verify the required parameter 'body' is set
1446+ if self .api_client .client_side_validation and ('body' not in params or
1447+ params ['body' ] is None ): # noqa: E501
1448+ raise ValueError ("Missing the required parameter `body` when calling `grant_permission`" ) # noqa: E501
1449+
1450+ collection_formats = {}
1451+
1452+ path_params = {}
1453+
1454+ query_params = []
1455+
1456+ header_params = {}
1457+
1458+ form_params = []
1459+ local_var_files = {}
1460+
1461+ body_params = None
1462+ if 'body' in params :
1463+ body_params = params ['body' ]
1464+ # HTTP header `Accept`
1465+ header_params ['Accept' ] = self .api_client .select_header_accept (
1466+ ['application/json' ]) # noqa: E501
1467+
1468+ # HTTP header `Content-Type`
1469+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1470+ ['application/json' ]) # noqa: E501
1471+
1472+ # Authentication setting
1473+ auth_settings = ['volcengineSign' ] # noqa: E501
1474+
1475+ return self .api_client .call_api (
1476+ '/GrantPermission/2022-05-12/vke/post/application_json/' , 'POST' ,
1477+ path_params ,
1478+ query_params ,
1479+ header_params ,
1480+ body = body_params ,
1481+ post_params = form_params ,
1482+ files = local_var_files ,
1483+ response_type = 'GrantPermissionResponse' , # noqa: E501
1484+ auth_settings = auth_settings ,
1485+ async_req = params .get ('async_req' ),
1486+ _return_http_data_only = params .get ('_return_http_data_only' ),
1487+ _preload_content = params .get ('_preload_content' , True ),
1488+ _request_timeout = params .get ('_request_timeout' ),
1489+ collection_formats = collection_formats )
1490+
13941491 def list_addons (self , body , ** kwargs ): # noqa: E501
13951492 """list_addons # noqa: E501
13961493
@@ -1876,6 +1973,103 @@ def list_nodes_with_http_info(self, body, **kwargs): # noqa: E501
18761973 _request_timeout = params .get ('_request_timeout' ),
18771974 collection_formats = collection_formats )
18781975
1976+ def list_permissions (self , body , ** kwargs ): # noqa: E501
1977+ """list_permissions # 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.list_permissions(body, async_req=True)
1982+ >>> result = thread.get()
1983+
1984+ :param async_req bool
1985+ :param ListPermissionsRequest body: (required)
1986+ :return: ListPermissionsResponse
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 .list_permissions_with_http_info (body , ** kwargs ) # noqa: E501
1993+ else :
1994+ (data ) = self .list_permissions_with_http_info (body , ** kwargs ) # noqa: E501
1995+ return data
1996+
1997+ def list_permissions_with_http_info (self , body , ** kwargs ): # noqa: E501
1998+ """list_permissions # 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.list_permissions_with_http_info(body, async_req=True)
2003+ >>> result = thread.get()
2004+
2005+ :param async_req bool
2006+ :param ListPermissionsRequest body: (required)
2007+ :return: ListPermissionsResponse
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 list_permissions" % 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 `list_permissions`" ) # 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+ '/ListPermissions/2022-05-12/vke/post/application_json/' , '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 = 'ListPermissionsResponse' , # 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 )
2072+
18792073 def list_scaling_events (self , body , ** kwargs ): # noqa: E501
18802074 """list_scaling_events # noqa: E501
18812075
@@ -2264,6 +2458,103 @@ def list_tags_for_resources_with_http_info(self, body, **kwargs): # noqa: E501
22642458 _request_timeout = params .get ('_request_timeout' ),
22652459 collection_formats = collection_formats )
22662460
2461+ def revoke_permission (self , body , ** kwargs ): # noqa: E501
2462+ """revoke_permission # noqa: E501
2463+
2464+ This method makes a synchronous HTTP request by default. To make an
2465+ asynchronous HTTP request, please pass async_req=True
2466+ >>> thread = api.revoke_permission(body, async_req=True)
2467+ >>> result = thread.get()
2468+
2469+ :param async_req bool
2470+ :param RevokePermissionRequest body: (required)
2471+ :return: RevokePermissionResponse
2472+ If the method is called asynchronously,
2473+ returns the request thread.
2474+ """
2475+ kwargs ['_return_http_data_only' ] = True
2476+ if kwargs .get ('async_req' ):
2477+ return self .revoke_permission_with_http_info (body , ** kwargs ) # noqa: E501
2478+ else :
2479+ (data ) = self .revoke_permission_with_http_info (body , ** kwargs ) # noqa: E501
2480+ return data
2481+
2482+ def revoke_permission_with_http_info (self , body , ** kwargs ): # noqa: E501
2483+ """revoke_permission # noqa: E501
2484+
2485+ This method makes a synchronous HTTP request by default. To make an
2486+ asynchronous HTTP request, please pass async_req=True
2487+ >>> thread = api.revoke_permission_with_http_info(body, async_req=True)
2488+ >>> result = thread.get()
2489+
2490+ :param async_req bool
2491+ :param RevokePermissionRequest body: (required)
2492+ :return: RevokePermissionResponse
2493+ If the method is called asynchronously,
2494+ returns the request thread.
2495+ """
2496+
2497+ all_params = ['body' ] # noqa: E501
2498+ all_params .append ('async_req' )
2499+ all_params .append ('_return_http_data_only' )
2500+ all_params .append ('_preload_content' )
2501+ all_params .append ('_request_timeout' )
2502+
2503+ params = locals ()
2504+ for key , val in six .iteritems (params ['kwargs' ]):
2505+ if key not in all_params :
2506+ raise TypeError (
2507+ "Got an unexpected keyword argument '%s'"
2508+ " to method revoke_permission" % key
2509+ )
2510+ params [key ] = val
2511+ del params ['kwargs' ]
2512+ # verify the required parameter 'body' is set
2513+ if self .api_client .client_side_validation and ('body' not in params or
2514+ params ['body' ] is None ): # noqa: E501
2515+ raise ValueError ("Missing the required parameter `body` when calling `revoke_permission`" ) # noqa: E501
2516+
2517+ collection_formats = {}
2518+
2519+ path_params = {}
2520+
2521+ query_params = []
2522+
2523+ header_params = {}
2524+
2525+ form_params = []
2526+ local_var_files = {}
2527+
2528+ body_params = None
2529+ if 'body' in params :
2530+ body_params = params ['body' ]
2531+ # HTTP header `Accept`
2532+ header_params ['Accept' ] = self .api_client .select_header_accept (
2533+ ['application/json' ]) # noqa: E501
2534+
2535+ # HTTP header `Content-Type`
2536+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2537+ ['application/json' ]) # noqa: E501
2538+
2539+ # Authentication setting
2540+ auth_settings = ['volcengineSign' ] # noqa: E501
2541+
2542+ return self .api_client .call_api (
2543+ '/RevokePermission/2022-05-12/vke/post/application_json/' , 'POST' ,
2544+ path_params ,
2545+ query_params ,
2546+ header_params ,
2547+ body = body_params ,
2548+ post_params = form_params ,
2549+ files = local_var_files ,
2550+ response_type = 'RevokePermissionResponse' , # noqa: E501
2551+ auth_settings = auth_settings ,
2552+ async_req = params .get ('async_req' ),
2553+ _return_http_data_only = params .get ('_return_http_data_only' ),
2554+ _preload_content = params .get ('_preload_content' , True ),
2555+ _request_timeout = params .get ('_request_timeout' ),
2556+ collection_formats = collection_formats )
2557+
22672558 def set_global_default_delete_option (self , body , ** kwargs ): # noqa: E501
22682559 """set_global_default_delete_option # noqa: E501
22692560
0 commit comments