Skip to content

Commit 5adcb81

Browse files
committed
Generated 2017-06-26 for NAS.
1 parent 28cdfae commit 5adcb81

10 files changed

+148
-32
lines changed

aliyun-python-sdk-nas/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-09-16 Version: 3.14.4
2+
- Generated 2017-06-26 for `NAS`.
3+
14
2024-10-28 Version: 3.14.3
25
- Support Fileset for BmCPFS.
36
- Support Fileset Quota for BmCPFS.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.14.3'
1+
__version__ = '3.14.4'

aliyun-python-sdk-nas/aliyunsdknas/endpoint.py

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,38 @@
2121
class EndpointData():
2222
def __init__(self):
2323
self.endpoint_map = {
24-
"cn-hangzhou-finance": "nas.aliyuncs.com",
25-
"me-east-1": "nas.ap-northeast-1.aliyuncs.com",
26-
"cn-chengdu": "nas.aliyuncs.com",
24+
"cn-shanghai-internal-test-1": "nas.aliyuncs.com",
25+
"cn-beijing-gov-1": "nas.aliyuncs.com",
26+
"cn-shenzhen-su18-b01": "nas.aliyuncs.com",
27+
"cn-shanghai-inner": "nas.aliyuncs.com",
28+
"cn-shenzhen-st4-d01": "nas.aliyuncs.com",
29+
"cn-haidian-cm12-c01": "nas.aliyuncs.com",
30+
"cn-hangzhou-internal-prod-1": "nas.aliyuncs.com",
31+
"cn-yushanfang": "nas.aliyuncs.com",
32+
"cn-hongkong-finance-pop": "nas.aliyuncs.com",
33+
"cn-qingdao-nebula": "nas.aliyuncs.com",
34+
"cn-beijing-finance-pop": "nas.aliyuncs.com",
35+
"cn-wuhan": "nas.aliyuncs.com",
36+
"cn-zhangbei": "nas.aliyuncs.com",
37+
"cn-zhengzhou-nebula-1": "nas.aliyuncs.com",
38+
"rus-west-1-pop": "nas.aliyuncs.com",
39+
"cn-shanghai-et15-b01": "nas.aliyuncs.com",
40+
"cn-hangzhou-bj-b01": "nas.aliyuncs.com",
41+
"cn-hangzhou-internal-test-1": "nas.aliyuncs.com",
42+
"eu-west-1-oxs": "nas.aliyuncs.com",
43+
"cn-zhangbei-na61-b01": "nas.aliyuncs.com",
44+
"cn-hangzhou-internal-test-3": "nas.aliyuncs.com",
45+
"cn-hangzhou-internal-test-2": "nas.aliyuncs.com",
46+
"cn-hangzhou-test-306": "nas.aliyuncs.com",
47+
"cn-shanghai-et2-b01": "nas.aliyuncs.com",
48+
"cn-hangzhou-finance": "nas.cn-hangzhou-dg-a01.aliyuncs.com",
49+
"cn-beijing-nu16-b01": "nas.aliyuncs.com",
50+
"cn-edge-1": "nas.aliyuncs.com",
51+
"ap-southeast-2": "nas.aliyuncs.com",
52+
"cn-fujian": "nas.aliyuncs.com",
53+
"ap-northeast-2-pop": "nas.aliyuncs.com",
54+
"cn-shenzhen-inner": "nas.aliyuncs.com",
55+
"cn-zhangjiakou-na62-a01": "nas.aliyuncs.com",
2756
}
2857
self.endpoint_regional = "regional"
2958

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/AddTagsRequest.py renamed to aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/AttachVscToFilesystemsRequest.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,29 @@
2020
from aliyunsdkcore.request import RpcRequest
2121
from aliyunsdknas.endpoint import endpoint_data
2222

23-
class AddTagsRequest(RpcRequest):
23+
class AttachVscToFilesystemsRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AddTags','nas')
26+
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AttachVscToFilesystems','nas')
27+
self.set_protocol_type('https')
2728
self.set_method('POST')
2829

2930
if hasattr(self, "endpoint_map"):
3031
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3132
if hasattr(self, "endpoint_regional"):
3233
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3334

34-
def get_Tags(self): # RepeatList
35-
return self.get_query_params().get('Tag')
35+
def get_ClientToken(self): # String
36+
return self.get_query_params().get('ClientToken')
3637

37-
def set_Tags(self, Tag): # RepeatList
38-
for depth1 in range(len(Tag)):
39-
if Tag[depth1].get('Value') is not None:
40-
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
41-
if Tag[depth1].get('Key') is not None:
42-
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
43-
def get_FileSystemId(self): # String
44-
return self.get_query_params().get('FileSystemId')
38+
def set_ClientToken(self, ClientToken): # String
39+
self.add_query_param('ClientToken', ClientToken)
40+
def get_ResourceIds(self): # Array
41+
return self.get_query_params().get('ResourceIds')
4542

46-
def set_FileSystemId(self, FileSystemId): # String
47-
self.add_query_param('FileSystemId', FileSystemId)
43+
def set_ResourceIds(self, ResourceIds): # Array
44+
for index1, value1 in enumerate(ResourceIds):
45+
if value1.get('VscId') is not None:
46+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.VscId', value1.get('VscId'))
47+
if value1.get('FileSystemId') is not None:
48+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.FileSystemId', value1.get('FileSystemId'))

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/CreateDataFlowTaskRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ def get_EntryList(self): # String
8181

8282
def set_EntryList(self, EntryList): # String
8383
self.add_query_param('EntryList', EntryList)
84+
def get_Includes(self): # String
85+
return self.get_query_params().get('Includes')
86+
87+
def set_Includes(self, Includes): # String
88+
self.add_query_param('Includes', Includes)
8489
def get_ConflictPolicy(self): # String
8590
return self.get_query_params().get('ConflictPolicy')
8691

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/CreateFileSystemRequest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ def get_ResourceGroupId(self): # String
7676

7777
def set_ResourceGroupId(self, ResourceGroupId): # String
7878
self.add_query_param('ResourceGroupId', ResourceGroupId)
79+
def get_Tags(self): # RepeatList
80+
return self.get_query_params().get('Tag')
81+
82+
def set_Tags(self, Tag): # RepeatList
83+
for depth1 in range(len(Tag)):
84+
if Tag[depth1].get('Value') is not None:
85+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
86+
if Tag[depth1].get('Key') is not None:
87+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
7988
def get_DryRun(self): # Boolean
8089
return self.get_query_params().get('DryRun')
8190

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/DescribeDataFlowTasksRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def __init__(self):
3131
if hasattr(self, "endpoint_regional"):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

34+
def get_WithReports(self): # Boolean
35+
return self.get_query_params().get('WithReports')
36+
37+
def set_WithReports(self, WithReports): # Boolean
38+
self.add_query_param('WithReports', WithReports)
3439
def get_NextToken(self): # String
3540
return self.get_query_params().get('NextToken')
3641

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/DescribeFilesetsRequest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,21 @@ def __init__(self):
3131
if hasattr(self, "endpoint_regional"):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

34+
def get_OrderByField(self): # String
35+
return self.get_query_params().get('OrderByField')
36+
37+
def set_OrderByField(self, OrderByField): # String
38+
self.add_query_param('OrderByField', OrderByField)
3439
def get_NextToken(self): # String
3540
return self.get_query_params().get('NextToken')
3641

3742
def set_NextToken(self, NextToken): # String
3843
self.add_query_param('NextToken', NextToken)
44+
def get_SortOrder(self): # String
45+
return self.get_query_params().get('SortOrder')
46+
47+
def set_SortOrder(self, SortOrder): # String
48+
self.add_query_param('SortOrder', SortOrder)
3949
def get_FileSystemId(self): # String
4050
return self.get_query_params().get('FileSystemId')
4151

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdknas.endpoint import endpoint_data
22+
23+
class DescribeFilesystemsVscAttachInfoRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'DescribeFilesystemsVscAttachInfo','nas')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_NextToken(self): # String
36+
return self.get_query_params().get('NextToken')
37+
38+
def set_NextToken(self, NextToken): # String
39+
self.add_query_param('NextToken', NextToken)
40+
def get_MaxResults(self): # Integer
41+
return self.get_query_params().get('MaxResults')
42+
43+
def set_MaxResults(self, MaxResults): # Integer
44+
self.add_query_param('MaxResults', MaxResults)
45+
def get_ResourceIds(self): # Array
46+
return self.get_query_params().get('ResourceIds')
47+
48+
def set_ResourceIds(self, ResourceIds): # Array
49+
for index1, value1 in enumerate(ResourceIds):
50+
if value1.get('VscId') is not None:
51+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.VscId', value1.get('VscId'))
52+
if value1.get('FileSystemId') is not None:
53+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.FileSystemId', value1.get('FileSystemId'))

aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/RemoveTagsRequest.py renamed to aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/DetachVscFromFilesystemsRequest.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,29 @@
2020
from aliyunsdkcore.request import RpcRequest
2121
from aliyunsdknas.endpoint import endpoint_data
2222

23-
class RemoveTagsRequest(RpcRequest):
23+
class DetachVscFromFilesystemsRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'RemoveTags','nas')
26+
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'DetachVscFromFilesystems','nas')
27+
self.set_protocol_type('https')
2728
self.set_method('POST')
2829

2930
if hasattr(self, "endpoint_map"):
3031
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3132
if hasattr(self, "endpoint_regional"):
3233
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3334

34-
def get_Tags(self): # RepeatList
35-
return self.get_query_params().get('Tag')
35+
def get_ClientToken(self): # String
36+
return self.get_query_params().get('ClientToken')
3637

37-
def set_Tags(self, Tag): # RepeatList
38-
for depth1 in range(len(Tag)):
39-
if Tag[depth1].get('Value') is not None:
40-
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
41-
if Tag[depth1].get('Key') is not None:
42-
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
43-
def get_FileSystemId(self): # String
44-
return self.get_query_params().get('FileSystemId')
38+
def set_ClientToken(self, ClientToken): # String
39+
self.add_query_param('ClientToken', ClientToken)
40+
def get_ResourceIds(self): # Array
41+
return self.get_query_params().get('ResourceIds')
4542

46-
def set_FileSystemId(self, FileSystemId): # String
47-
self.add_query_param('FileSystemId', FileSystemId)
43+
def set_ResourceIds(self, ResourceIds): # Array
44+
for index1, value1 in enumerate(ResourceIds):
45+
if value1.get('VscId') is not None:
46+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.VscId', value1.get('VscId'))
47+
if value1.get('FileSystemId') is not None:
48+
self.add_query_param('ResourceIds.' + str(index1 + 1) + '.FileSystemId', value1.get('FileSystemId'))

0 commit comments

Comments
 (0)