@@ -33,6 +33,103 @@ def __init__(self, api_client=None):
3333 api_client = volcenginesdkcore .ApiClient ()
3434 self .api_client = api_client
3535
36+ def cancel_dir_quota (self , body , ** kwargs ): # noqa: E501
37+ """cancel_dir_quota # noqa: E501
38+
39+ This method makes a synchronous HTTP request by default. To make an
40+ asynchronous HTTP request, please pass async_req=True
41+ >>> thread = api.cancel_dir_quota(body, async_req=True)
42+ >>> result = thread.get()
43+
44+ :param async_req bool
45+ :param CancelDirQuotaRequest body: (required)
46+ :return: CancelDirQuotaResponse
47+ If the method is called asynchronously,
48+ returns the request thread.
49+ """
50+ kwargs ['_return_http_data_only' ] = True
51+ if kwargs .get ('async_req' ):
52+ return self .cancel_dir_quota_with_http_info (body , ** kwargs ) # noqa: E501
53+ else :
54+ (data ) = self .cancel_dir_quota_with_http_info (body , ** kwargs ) # noqa: E501
55+ return data
56+
57+ def cancel_dir_quota_with_http_info (self , body , ** kwargs ): # noqa: E501
58+ """cancel_dir_quota # noqa: E501
59+
60+ This method makes a synchronous HTTP request by default. To make an
61+ asynchronous HTTP request, please pass async_req=True
62+ >>> thread = api.cancel_dir_quota_with_http_info(body, async_req=True)
63+ >>> result = thread.get()
64+
65+ :param async_req bool
66+ :param CancelDirQuotaRequest body: (required)
67+ :return: CancelDirQuotaResponse
68+ If the method is called asynchronously,
69+ returns the request thread.
70+ """
71+
72+ all_params = ['body' ] # noqa: E501
73+ all_params .append ('async_req' )
74+ all_params .append ('_return_http_data_only' )
75+ all_params .append ('_preload_content' )
76+ all_params .append ('_request_timeout' )
77+
78+ params = locals ()
79+ for key , val in six .iteritems (params ['kwargs' ]):
80+ if key not in all_params :
81+ raise TypeError (
82+ "Got an unexpected keyword argument '%s'"
83+ " to method cancel_dir_quota" % key
84+ )
85+ params [key ] = val
86+ del params ['kwargs' ]
87+ # verify the required parameter 'body' is set
88+ if self .api_client .client_side_validation and ('body' not in params or
89+ params ['body' ] is None ): # noqa: E501
90+ raise ValueError ("Missing the required parameter `body` when calling `cancel_dir_quota`" ) # noqa: E501
91+
92+ collection_formats = {}
93+
94+ path_params = {}
95+
96+ query_params = []
97+
98+ header_params = {}
99+
100+ form_params = []
101+ local_var_files = {}
102+
103+ body_params = None
104+ if 'body' in params :
105+ body_params = params ['body' ]
106+ # HTTP header `Accept`
107+ header_params ['Accept' ] = self .api_client .select_header_accept (
108+ ['application/json' ]) # noqa: E501
109+
110+ # HTTP header `Content-Type`
111+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
112+ ['application/json' ]) # noqa: E501
113+
114+ # Authentication setting
115+ auth_settings = ['volcengineSign' ] # noqa: E501
116+
117+ return self .api_client .call_api (
118+ '/CancelDirQuota/2022-01-01/filenas/post/application_json/' , 'POST' ,
119+ path_params ,
120+ query_params ,
121+ header_params ,
122+ body = body_params ,
123+ post_params = form_params ,
124+ files = local_var_files ,
125+ response_type = 'CancelDirQuotaResponse' , # noqa: E501
126+ auth_settings = auth_settings ,
127+ async_req = params .get ('async_req' ),
128+ _return_http_data_only = params .get ('_return_http_data_only' ),
129+ _preload_content = params .get ('_preload_content' , True ),
130+ _request_timeout = params .get ('_request_timeout' ),
131+ collection_formats = collection_formats )
132+
36133 def create_file_system (self , body , ** kwargs ): # noqa: E501
37134 """create_file_system # noqa: E501
38135
@@ -809,6 +906,103 @@ def delete_snapshot_with_http_info(self, body, **kwargs): # noqa: E501
809906 _request_timeout = params .get ('_request_timeout' ),
810907 collection_formats = collection_formats )
811908
909+ def describe_dir_quotas (self , body , ** kwargs ): # noqa: E501
910+ """describe_dir_quotas # noqa: E501
911+
912+ This method makes a synchronous HTTP request by default. To make an
913+ asynchronous HTTP request, please pass async_req=True
914+ >>> thread = api.describe_dir_quotas(body, async_req=True)
915+ >>> result = thread.get()
916+
917+ :param async_req bool
918+ :param DescribeDirQuotasRequest body: (required)
919+ :return: DescribeDirQuotasResponse
920+ If the method is called asynchronously,
921+ returns the request thread.
922+ """
923+ kwargs ['_return_http_data_only' ] = True
924+ if kwargs .get ('async_req' ):
925+ return self .describe_dir_quotas_with_http_info (body , ** kwargs ) # noqa: E501
926+ else :
927+ (data ) = self .describe_dir_quotas_with_http_info (body , ** kwargs ) # noqa: E501
928+ return data
929+
930+ def describe_dir_quotas_with_http_info (self , body , ** kwargs ): # noqa: E501
931+ """describe_dir_quotas # noqa: E501
932+
933+ This method makes a synchronous HTTP request by default. To make an
934+ asynchronous HTTP request, please pass async_req=True
935+ >>> thread = api.describe_dir_quotas_with_http_info(body, async_req=True)
936+ >>> result = thread.get()
937+
938+ :param async_req bool
939+ :param DescribeDirQuotasRequest body: (required)
940+ :return: DescribeDirQuotasResponse
941+ If the method is called asynchronously,
942+ returns the request thread.
943+ """
944+
945+ all_params = ['body' ] # noqa: E501
946+ all_params .append ('async_req' )
947+ all_params .append ('_return_http_data_only' )
948+ all_params .append ('_preload_content' )
949+ all_params .append ('_request_timeout' )
950+
951+ params = locals ()
952+ for key , val in six .iteritems (params ['kwargs' ]):
953+ if key not in all_params :
954+ raise TypeError (
955+ "Got an unexpected keyword argument '%s'"
956+ " to method describe_dir_quotas" % key
957+ )
958+ params [key ] = val
959+ del params ['kwargs' ]
960+ # verify the required parameter 'body' is set
961+ if self .api_client .client_side_validation and ('body' not in params or
962+ params ['body' ] is None ): # noqa: E501
963+ raise ValueError ("Missing the required parameter `body` when calling `describe_dir_quotas`" ) # noqa: E501
964+
965+ collection_formats = {}
966+
967+ path_params = {}
968+
969+ query_params = []
970+
971+ header_params = {}
972+
973+ form_params = []
974+ local_var_files = {}
975+
976+ body_params = None
977+ if 'body' in params :
978+ body_params = params ['body' ]
979+ # HTTP header `Accept`
980+ header_params ['Accept' ] = self .api_client .select_header_accept (
981+ ['application/json' ]) # noqa: E501
982+
983+ # HTTP header `Content-Type`
984+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
985+ ['application/json' ]) # noqa: E501
986+
987+ # Authentication setting
988+ auth_settings = ['volcengineSign' ] # noqa: E501
989+
990+ return self .api_client .call_api (
991+ '/DescribeDirQuotas/2022-01-01/filenas/post/application_json/' , 'POST' ,
992+ path_params ,
993+ query_params ,
994+ header_params ,
995+ body = body_params ,
996+ post_params = form_params ,
997+ files = local_var_files ,
998+ response_type = 'DescribeDirQuotasResponse' , # noqa: E501
999+ auth_settings = auth_settings ,
1000+ async_req = params .get ('async_req' ),
1001+ _return_http_data_only = params .get ('_return_http_data_only' ),
1002+ _preload_content = params .get ('_preload_content' , True ),
1003+ _request_timeout = params .get ('_request_timeout' ),
1004+ collection_formats = collection_formats )
1005+
8121006 def describe_file_system_overview (self , body , ** kwargs ): # noqa: E501
8131007 """describe_file_system_overview # noqa: E501
8141008
@@ -1779,6 +1973,103 @@ def expand_file_system_with_http_info(self, body, **kwargs): # noqa: E501
17791973 _request_timeout = params .get ('_request_timeout' ),
17801974 collection_formats = collection_formats )
17811975
1976+ def set_dir_quota (self , body , ** kwargs ): # noqa: E501
1977+ """set_dir_quota # 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.set_dir_quota(body, async_req=True)
1982+ >>> result = thread.get()
1983+
1984+ :param async_req bool
1985+ :param SetDirQuotaRequest body: (required)
1986+ :return: SetDirQuotaResponse
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 .set_dir_quota_with_http_info (body , ** kwargs ) # noqa: E501
1993+ else :
1994+ (data ) = self .set_dir_quota_with_http_info (body , ** kwargs ) # noqa: E501
1995+ return data
1996+
1997+ def set_dir_quota_with_http_info (self , body , ** kwargs ): # noqa: E501
1998+ """set_dir_quota # 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.set_dir_quota_with_http_info(body, async_req=True)
2003+ >>> result = thread.get()
2004+
2005+ :param async_req bool
2006+ :param SetDirQuotaRequest body: (required)
2007+ :return: SetDirQuotaResponse
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 set_dir_quota" % 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 `set_dir_quota`" ) # 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+ '/SetDirQuota/2022-01-01/filenas/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 = 'SetDirQuotaResponse' , # 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+
17822073 def update_file_system (self , body , ** kwargs ): # noqa: E501
17832074 """update_file_system # noqa: E501
17842075
0 commit comments