Skip to content

Commit d934091

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for filenas-Python-2022-01-01-online-793-2024_11_20_15_32_26
1 parent 6c3df5f commit d934091

15 files changed

+1841
-5
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.109",
3-
"meta_commit": "4a25d5602d9a2cbd91f81aaf048011b7013e73ed"
2+
"lasted": "1.0.110",
3+
"meta_commit": "982bb41ee049a9da94f5554e65a31cc9342e1d76"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "1.0.109"
6+
VERSION = "1.0.110"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/1.0.109'
70+
self.user_agent = 'volcstack-python-sdk/1.0.110'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.109".\
224+
"SDK Package Version: 1.0.110".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkfilenas/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from volcenginesdkfilenas.api.filenas_api import FILENASApi
2020

2121
# import models into sdk package
22+
from volcenginesdkfilenas.models.cancel_dir_quota_request import CancelDirQuotaRequest
23+
from volcenginesdkfilenas.models.cancel_dir_quota_response import CancelDirQuotaResponse
2224
from volcenginesdkfilenas.models.capacity_for_describe_file_systems_output import CapacityForDescribeFileSystemsOutput
2325
from volcenginesdkfilenas.models.common_capacity_for_describe_file_system_statistics_output import CommonCapacityForDescribeFileSystemStatisticsOutput
2426
from volcenginesdkfilenas.models.convert_mount_point_for_describe_mount_points_output import ConvertMountPointForDescribeMountPointsOutput
@@ -38,6 +40,8 @@
3840
from volcenginesdkfilenas.models.delete_permission_group_response import DeletePermissionGroupResponse
3941
from volcenginesdkfilenas.models.delete_snapshot_request import DeleteSnapshotRequest
4042
from volcenginesdkfilenas.models.delete_snapshot_response import DeleteSnapshotResponse
43+
from volcenginesdkfilenas.models.describe_dir_quotas_request import DescribeDirQuotasRequest
44+
from volcenginesdkfilenas.models.describe_dir_quotas_response import DescribeDirQuotasResponse
4145
from volcenginesdkfilenas.models.describe_file_system_overview_request import DescribeFileSystemOverviewRequest
4246
from volcenginesdkfilenas.models.describe_file_system_overview_response import DescribeFileSystemOverviewResponse
4347
from volcenginesdkfilenas.models.describe_file_system_statistics_request import DescribeFileSystemStatisticsRequest
@@ -56,6 +60,7 @@
5660
from volcenginesdkfilenas.models.describe_snapshots_response import DescribeSnapshotsResponse
5761
from volcenginesdkfilenas.models.describe_zones_request import DescribeZonesRequest
5862
from volcenginesdkfilenas.models.describe_zones_response import DescribeZonesResponse
63+
from volcenginesdkfilenas.models.dir_quota_info_for_describe_dir_quotas_output import DirQuotaInfoForDescribeDirQuotasOutput
5964
from volcenginesdkfilenas.models.expand_file_system_request import ExpandFileSystemRequest
6065
from volcenginesdkfilenas.models.expand_file_system_response import ExpandFileSystemResponse
6166
from volcenginesdkfilenas.models.extreme_capacity_for_describe_file_system_statistics_output import ExtremeCapacityForDescribeFileSystemStatisticsOutput
@@ -71,6 +76,8 @@
7176
from volcenginesdkfilenas.models.permission_rule_for_update_permission_rule_input import PermissionRuleForUpdatePermissionRuleInput
7277
from volcenginesdkfilenas.models.region_for_describe_regions_output import RegionForDescribeRegionsOutput
7378
from volcenginesdkfilenas.models.sale_for_describe_zones_output import SaleForDescribeZonesOutput
79+
from volcenginesdkfilenas.models.set_dir_quota_request import SetDirQuotaRequest
80+
from volcenginesdkfilenas.models.set_dir_quota_response import SetDirQuotaResponse
7481
from volcenginesdkfilenas.models.snapshot_for_describe_snapshots_output import SnapshotForDescribeSnapshotsOutput
7582
from volcenginesdkfilenas.models.statistic_for_describe_file_system_statistics_output import StatisticForDescribeFileSystemStatisticsOutput
7683
from volcenginesdkfilenas.models.tag_filter_for_describe_file_systems_input import TagFilterForDescribeFileSystemsInput
@@ -87,4 +94,5 @@
8794
from volcenginesdkfilenas.models.update_permission_rule_response import UpdatePermissionRuleResponse
8895
from volcenginesdkfilenas.models.update_snapshot_request import UpdateSnapshotRequest
8996
from volcenginesdkfilenas.models.update_snapshot_response import UpdateSnapshotResponse
97+
from volcenginesdkfilenas.models.user_quota_info_for_describe_dir_quotas_output import UserQuotaInfoForDescribeDirQuotasOutput
9098
from volcenginesdkfilenas.models.zone_for_describe_zones_output import ZoneForDescribeZonesOutput

volcenginesdkfilenas/api/filenas_api.py

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)