Skip to content

Commit 87e8229

Browse files
committed
filenas-Python-2022-01-01-online-295-2024_01_11_19_20_51
2 parents ce6ac11 + 22ad020 commit 87e8229

29 files changed

+277
-94
lines changed

volcenginesdkfilenas/api/filenas_api.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def create_file_system_with_http_info(self, body, **kwargs): # noqa: E501
115115
auth_settings = ['volcengineSign'] # noqa: E501
116116

117117
return self.api_client.call_api(
118-
'/CreateFileSystem/2022-01-01/FileNAS/post/application_json/', 'POST',
118+
'/CreateFileSystem/2022-01-01/filenas/post/application_json/', 'POST',
119119
path_params,
120120
query_params,
121121
header_params,
@@ -212,7 +212,7 @@ def create_mount_point_with_http_info(self, body, **kwargs): # noqa: E501
212212
auth_settings = ['volcengineSign'] # noqa: E501
213213

214214
return self.api_client.call_api(
215-
'/CreateMountPoint/2022-01-01/FileNAS/post/application_json/', 'POST',
215+
'/CreateMountPoint/2022-01-01/filenas/post/application_json/', 'POST',
216216
path_params,
217217
query_params,
218218
header_params,
@@ -309,7 +309,7 @@ def create_permission_group_with_http_info(self, body, **kwargs): # noqa: E501
309309
auth_settings = ['volcengineSign'] # noqa: E501
310310

311311
return self.api_client.call_api(
312-
'/CreatePermissionGroup/2022-01-01/FileNAS/post/application_json/', 'POST',
312+
'/CreatePermissionGroup/2022-01-01/filenas/post/application_json/', 'POST',
313313
path_params,
314314
query_params,
315315
header_params,
@@ -406,7 +406,7 @@ def create_snapshot_with_http_info(self, body, **kwargs): # noqa: E501
406406
auth_settings = ['volcengineSign'] # noqa: E501
407407

408408
return self.api_client.call_api(
409-
'/CreateSnapshot/2022-01-01/FileNAS/post/application_json/', 'POST',
409+
'/CreateSnapshot/2022-01-01/filenas/post/application_json/', 'POST',
410410
path_params,
411411
query_params,
412412
header_params,
@@ -503,7 +503,7 @@ def delete_file_system_with_http_info(self, body, **kwargs): # noqa: E501
503503
auth_settings = ['volcengineSign'] # noqa: E501
504504

505505
return self.api_client.call_api(
506-
'/DeleteFileSystem/2022-01-01/FileNAS/post/application_json/', 'POST',
506+
'/DeleteFileSystem/2022-01-01/filenas/post/application_json/', 'POST',
507507
path_params,
508508
query_params,
509509
header_params,
@@ -600,7 +600,7 @@ def delete_mount_point_with_http_info(self, body, **kwargs): # noqa: E501
600600
auth_settings = ['volcengineSign'] # noqa: E501
601601

602602
return self.api_client.call_api(
603-
'/DeleteMountPoint/2022-01-01/FileNAS/post/application_json/', 'POST',
603+
'/DeleteMountPoint/2022-01-01/filenas/post/application_json/', 'POST',
604604
path_params,
605605
query_params,
606606
header_params,
@@ -697,7 +697,7 @@ def delete_permission_group_with_http_info(self, body, **kwargs): # noqa: E501
697697
auth_settings = ['volcengineSign'] # noqa: E501
698698

699699
return self.api_client.call_api(
700-
'/DeletePermissionGroup/2022-01-01/FileNAS/post/application_json/', 'POST',
700+
'/DeletePermissionGroup/2022-01-01/filenas/post/application_json/', 'POST',
701701
path_params,
702702
query_params,
703703
header_params,
@@ -794,7 +794,7 @@ def delete_snapshot_with_http_info(self, body, **kwargs): # noqa: E501
794794
auth_settings = ['volcengineSign'] # noqa: E501
795795

796796
return self.api_client.call_api(
797-
'/DeleteSnapshot/2022-01-01/FileNAS/post/application_json/', 'POST',
797+
'/DeleteSnapshot/2022-01-01/filenas/post/application_json/', 'POST',
798798
path_params,
799799
query_params,
800800
header_params,
@@ -891,7 +891,7 @@ def describe_file_system_overview_with_http_info(self, body, **kwargs): # noqa:
891891
auth_settings = ['volcengineSign'] # noqa: E501
892892

893893
return self.api_client.call_api(
894-
'/DescribeFileSystemOverview/2022-01-01/FileNAS/post/application_json/', 'POST',
894+
'/DescribeFileSystemOverview/2022-01-01/filenas/post/application_json/', 'POST',
895895
path_params,
896896
query_params,
897897
header_params,
@@ -988,7 +988,7 @@ def describe_file_system_statistics_with_http_info(self, body, **kwargs): # noq
988988
auth_settings = ['volcengineSign'] # noqa: E501
989989

990990
return self.api_client.call_api(
991-
'/DescribeFileSystemStatistics/2022-01-01/FileNAS/post/application_json/', 'POST',
991+
'/DescribeFileSystemStatistics/2022-01-01/filenas/post/application_json/', 'POST',
992992
path_params,
993993
query_params,
994994
header_params,
@@ -1085,7 +1085,7 @@ def describe_file_systems_with_http_info(self, body, **kwargs): # noqa: E501
10851085
auth_settings = ['volcengineSign'] # noqa: E501
10861086

10871087
return self.api_client.call_api(
1088-
'/DescribeFileSystems/2022-01-01/FileNAS/post/application_json/', 'POST',
1088+
'/DescribeFileSystems/2022-01-01/filenas/post/application_json/', 'POST',
10891089
path_params,
10901090
query_params,
10911091
header_params,
@@ -1182,7 +1182,7 @@ def describe_mount_points_with_http_info(self, body, **kwargs): # noqa: E501
11821182
auth_settings = ['volcengineSign'] # noqa: E501
11831183

11841184
return self.api_client.call_api(
1185-
'/DescribeMountPoints/2022-01-01/FileNAS/post/application_json/', 'POST',
1185+
'/DescribeMountPoints/2022-01-01/filenas/post/application_json/', 'POST',
11861186
path_params,
11871187
query_params,
11881188
header_params,
@@ -1279,7 +1279,7 @@ def describe_permission_groups_with_http_info(self, body, **kwargs): # noqa: E5
12791279
auth_settings = ['volcengineSign'] # noqa: E501
12801280

12811281
return self.api_client.call_api(
1282-
'/DescribePermissionGroups/2022-01-01/FileNAS/post/application_json/', 'POST',
1282+
'/DescribePermissionGroups/2022-01-01/filenas/post/application_json/', 'POST',
12831283
path_params,
12841284
query_params,
12851285
header_params,
@@ -1376,7 +1376,7 @@ def describe_permission_rules_with_http_info(self, body, **kwargs): # noqa: E50
13761376
auth_settings = ['volcengineSign'] # noqa: E501
13771377

13781378
return self.api_client.call_api(
1379-
'/DescribePermissionRules/2022-01-01/FileNAS/post/application_json/', 'POST',
1379+
'/DescribePermissionRules/2022-01-01/filenas/post/application_json/', 'POST',
13801380
path_params,
13811381
query_params,
13821382
header_params,
@@ -1473,7 +1473,7 @@ def describe_regions_with_http_info(self, body, **kwargs): # noqa: E501
14731473
auth_settings = ['volcengineSign'] # noqa: E501
14741474

14751475
return self.api_client.call_api(
1476-
'/DescribeRegions/2022-01-01/FileNAS/post/application_json/', 'POST',
1476+
'/DescribeRegions/2022-01-01/filenas/post/application_json/', 'POST',
14771477
path_params,
14781478
query_params,
14791479
header_params,
@@ -1570,7 +1570,7 @@ def describe_snapshots_with_http_info(self, body, **kwargs): # noqa: E501
15701570
auth_settings = ['volcengineSign'] # noqa: E501
15711571

15721572
return self.api_client.call_api(
1573-
'/DescribeSnapshots/2022-01-01/FileNAS/post/application_json/', 'POST',
1573+
'/DescribeSnapshots/2022-01-01/filenas/post/application_json/', 'POST',
15741574
path_params,
15751575
query_params,
15761576
header_params,
@@ -1667,7 +1667,7 @@ def describe_zones_with_http_info(self, body, **kwargs): # noqa: E501
16671667
auth_settings = ['volcengineSign'] # noqa: E501
16681668

16691669
return self.api_client.call_api(
1670-
'/DescribeZones/2022-01-01/FileNAS/post/application_json/', 'POST',
1670+
'/DescribeZones/2022-01-01/filenas/post/application_json/', 'POST',
16711671
path_params,
16721672
query_params,
16731673
header_params,
@@ -1764,7 +1764,7 @@ def expand_file_system_with_http_info(self, body, **kwargs): # noqa: E501
17641764
auth_settings = ['volcengineSign'] # noqa: E501
17651765

17661766
return self.api_client.call_api(
1767-
'/ExpandFileSystem/2022-01-01/FileNAS/post/application_json/', 'POST',
1767+
'/ExpandFileSystem/2022-01-01/filenas/post/application_json/', 'POST',
17681768
path_params,
17691769
query_params,
17701770
header_params,
@@ -1861,7 +1861,7 @@ def update_file_system_with_http_info(self, body, **kwargs): # noqa: E501
18611861
auth_settings = ['volcengineSign'] # noqa: E501
18621862

18631863
return self.api_client.call_api(
1864-
'/UpdateFileSystem/2022-01-01/FileNAS/post/application_json/', 'POST',
1864+
'/UpdateFileSystem/2022-01-01/filenas/post/application_json/', 'POST',
18651865
path_params,
18661866
query_params,
18671867
header_params,
@@ -1958,7 +1958,7 @@ def update_mount_point_with_http_info(self, body, **kwargs): # noqa: E501
19581958
auth_settings = ['volcengineSign'] # noqa: E501
19591959

19601960
return self.api_client.call_api(
1961-
'/UpdateMountPoint/2022-01-01/FileNAS/post/application_json/', 'POST',
1961+
'/UpdateMountPoint/2022-01-01/filenas/post/application_json/', 'POST',
19621962
path_params,
19631963
query_params,
19641964
header_params,
@@ -2055,7 +2055,7 @@ def update_permission_group_with_http_info(self, body, **kwargs): # noqa: E501
20552055
auth_settings = ['volcengineSign'] # noqa: E501
20562056

20572057
return self.api_client.call_api(
2058-
'/UpdatePermissionGroup/2022-01-01/FileNAS/post/application_json/', 'POST',
2058+
'/UpdatePermissionGroup/2022-01-01/filenas/post/application_json/', 'POST',
20592059
path_params,
20602060
query_params,
20612061
header_params,
@@ -2152,7 +2152,7 @@ def update_permission_rule_with_http_info(self, body, **kwargs): # noqa: E501
21522152
auth_settings = ['volcengineSign'] # noqa: E501
21532153

21542154
return self.api_client.call_api(
2155-
'/UpdatePermissionRule/2022-01-01/FileNAS/post/application_json/', 'POST',
2155+
'/UpdatePermissionRule/2022-01-01/filenas/post/application_json/', 'POST',
21562156
path_params,
21572157
query_params,
21582158
header_params,
@@ -2249,7 +2249,7 @@ def update_snapshot_with_http_info(self, body, **kwargs): # noqa: E501
22492249
auth_settings = ['volcengineSign'] # noqa: E501
22502250

22512251
return self.api_client.call_api(
2252-
'/UpdateSnapshot/2022-01-01/FileNAS/post/application_json/', 'POST',
2252+
'/UpdateSnapshot/2022-01-01/filenas/post/application_json/', 'POST',
22532253
path_params,
22542254
query_params,
22552255
header_params,

volcenginesdkfilenas/models/capacity_for_describe_file_systems_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CapacityForDescribeFileSystemsOutput(object):
3939

4040
attribute_map = {
4141
'total': 'Total',
42-
'used': 'used'
42+
'used': 'Used'
4343
}
4444

4545
def __init__(self, total=None, used=None, _configuration=None): # noqa: E501

volcenginesdkfilenas/models/common_capacity_for_describe_file_system_statistics_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CommonCapacityForDescribeFileSystemStatisticsOutput(object):
3939

4040
attribute_map = {
4141
'total': 'Total',
42-
'used': 'used'
42+
'used': 'Used'
4343
}
4444

4545
def __init__(self, total=None, used=None, _configuration=None): # noqa: E501

volcenginesdkfilenas/models/create_file_system_request.py

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,30 +82,24 @@ def __init__(self, capacity=None, charge_type=None, client_token=None, descripti
8282
self._zone_id = None
8383
self.discriminator = None
8484

85-
if capacity is not None:
86-
self.capacity = capacity
87-
if charge_type is not None:
88-
self.charge_type = charge_type
85+
self.capacity = capacity
86+
self.charge_type = charge_type
8987
if client_token is not None:
9088
self.client_token = client_token
9189
if description is not None:
9290
self.description = description
93-
if file_system_name is not None:
94-
self.file_system_name = file_system_name
95-
if file_system_type is not None:
96-
self.file_system_type = file_system_type
91+
self.file_system_name = file_system_name
92+
self.file_system_type = file_system_type
9793
if project_name is not None:
9894
self.project_name = project_name
99-
if protocol_type is not None:
100-
self.protocol_type = protocol_type
95+
self.protocol_type = protocol_type
10196
if snapshot_id is not None:
10297
self.snapshot_id = snapshot_id
10398
if storage_type is not None:
10499
self.storage_type = storage_type
105100
if tags is not None:
106101
self.tags = tags
107-
if zone_id is not None:
108-
self.zone_id = zone_id
102+
self.zone_id = zone_id
109103

110104
@property
111105
def capacity(self):
@@ -125,6 +119,8 @@ def capacity(self, capacity):
125119
:param capacity: The capacity of this CreateFileSystemRequest. # noqa: E501
126120
:type: int
127121
"""
122+
if self._configuration.client_side_validation and capacity is None:
123+
raise ValueError("Invalid value for `capacity`, must not be `None`") # noqa: E501
128124

129125
self._capacity = capacity
130126

@@ -146,6 +142,15 @@ def charge_type(self, charge_type):
146142
:param charge_type: The charge_type of this CreateFileSystemRequest. # noqa: E501
147143
:type: str
148144
"""
145+
if self._configuration.client_side_validation and charge_type is None:
146+
raise ValueError("Invalid value for `charge_type`, must not be `None`") # noqa: E501
147+
allowed_values = ["PayAsYouGo"] # noqa: E501
148+
if (self._configuration.client_side_validation and
149+
charge_type not in allowed_values):
150+
raise ValueError(
151+
"Invalid value for `charge_type` ({0}), must be one of {1}" # noqa: E501
152+
.format(charge_type, allowed_values)
153+
)
149154

150155
self._charge_type = charge_type
151156

@@ -188,6 +193,9 @@ def description(self, description):
188193
:param description: The description of this CreateFileSystemRequest. # noqa: E501
189194
:type: str
190195
"""
196+
if (self._configuration.client_side_validation and
197+
description is not None and len(description) > 120):
198+
raise ValueError("Invalid value for `description`, length must be less than or equal to `120`") # noqa: E501
191199

192200
self._description = description
193201

@@ -209,6 +217,14 @@ def file_system_name(self, file_system_name):
209217
:param file_system_name: The file_system_name of this CreateFileSystemRequest. # noqa: E501
210218
:type: str
211219
"""
220+
if self._configuration.client_side_validation and file_system_name is None:
221+
raise ValueError("Invalid value for `file_system_name`, must not be `None`") # noqa: E501
222+
if (self._configuration.client_side_validation and
223+
file_system_name is not None and len(file_system_name) > 128):
224+
raise ValueError("Invalid value for `file_system_name`, length must be less than or equal to `128`") # noqa: E501
225+
if (self._configuration.client_side_validation and
226+
file_system_name is not None and len(file_system_name) < 1):
227+
raise ValueError("Invalid value for `file_system_name`, length must be greater than or equal to `1`") # noqa: E501
212228

213229
self._file_system_name = file_system_name
214230

@@ -230,6 +246,15 @@ def file_system_type(self, file_system_type):
230246
:param file_system_type: The file_system_type of this CreateFileSystemRequest. # noqa: E501
231247
:type: str
232248
"""
249+
if self._configuration.client_side_validation and file_system_type is None:
250+
raise ValueError("Invalid value for `file_system_type`, must not be `None`") # noqa: E501
251+
allowed_values = ["Extreme"] # noqa: E501
252+
if (self._configuration.client_side_validation and
253+
file_system_type not in allowed_values):
254+
raise ValueError(
255+
"Invalid value for `file_system_type` ({0}), must be one of {1}" # noqa: E501
256+
.format(file_system_type, allowed_values)
257+
)
233258

234259
self._file_system_type = file_system_type
235260

@@ -272,6 +297,15 @@ def protocol_type(self, protocol_type):
272297
:param protocol_type: The protocol_type of this CreateFileSystemRequest. # noqa: E501
273298
:type: str
274299
"""
300+
if self._configuration.client_side_validation and protocol_type is None:
301+
raise ValueError("Invalid value for `protocol_type`, must not be `None`") # noqa: E501
302+
allowed_values = ["NFS"] # noqa: E501
303+
if (self._configuration.client_side_validation and
304+
protocol_type not in allowed_values):
305+
raise ValueError(
306+
"Invalid value for `protocol_type` ({0}), must be one of {1}" # noqa: E501
307+
.format(protocol_type, allowed_values)
308+
)
275309

276310
self._protocol_type = protocol_type
277311

@@ -314,6 +348,13 @@ def storage_type(self, storage_type):
314348
:param storage_type: The storage_type of this CreateFileSystemRequest. # noqa: E501
315349
:type: str
316350
"""
351+
allowed_values = ["Standard"] # noqa: E501
352+
if (self._configuration.client_side_validation and
353+
storage_type not in allowed_values):
354+
raise ValueError(
355+
"Invalid value for `storage_type` ({0}), must be one of {1}" # noqa: E501
356+
.format(storage_type, allowed_values)
357+
)
317358

318359
self._storage_type = storage_type
319360

@@ -356,6 +397,8 @@ def zone_id(self, zone_id):
356397
:param zone_id: The zone_id of this CreateFileSystemRequest. # noqa: E501
357398
:type: str
358399
"""
400+
if self._configuration.client_side_validation and zone_id is None:
401+
raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501
359402

360403
self._zone_id = zone_id
361404

0 commit comments

Comments
 (0)