Skip to content

Commit 6642d04

Browse files
committed
Suport 3az mp.
1 parent be5d7bd commit 6642d04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1944
-0
lines changed

aliyun-python-sdk-dfs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2025-04-03 Version: 0.0.2
2+
- Suport 3az mp.
3+

aliyun-python-sdk-dfs/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

aliyun-python-sdk-dfs/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

aliyun-python-sdk-dfs/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-dfs
3+
=============================================================
4+
5+
.. This is the dfs module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
3.7 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.0.2'

aliyun-python-sdk-dfs/aliyunsdkdfs/request/__init__.py

Whitespace-only changes.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
import json
22+
23+
class AttachVscMountPointRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DFS', '2018-06-20', 'AttachVscMountPoint','alidfs')
27+
self.set_method('POST')
28+
29+
def get_VscType(self): # String
30+
return self.get_query_params().get('VscType')
31+
32+
def set_VscType(self, VscType): # String
33+
self.add_query_param('VscType', VscType)
34+
def get_Description(self): # String
35+
return self.get_query_params().get('Description')
36+
37+
def set_Description(self, Description): # String
38+
self.add_query_param('Description', Description)
39+
def get_InputRegionId(self): # String
40+
return self.get_query_params().get('InputRegionId')
41+
42+
def set_InputRegionId(self, InputRegionId): # String
43+
self.add_query_param('InputRegionId', InputRegionId)
44+
def get_MountPointId(self): # String
45+
return self.get_query_params().get('MountPointId')
46+
47+
def set_MountPointId(self, MountPointId): # String
48+
self.add_query_param('MountPointId', MountPointId)
49+
def get_FileSystemId(self): # String
50+
return self.get_query_params().get('FileSystemId')
51+
52+
def set_FileSystemId(self, FileSystemId): # String
53+
self.add_query_param('FileSystemId', FileSystemId)
54+
def get_VscIds(self): # Array
55+
return self.get_query_params().get('VscIds')
56+
57+
def set_VscIds(self, VscIds): # Array
58+
self.add_query_param("VscIds", json.dumps(VscIds))
59+
def get_UseAssumeRoleChkServerPerm(self): # Boolean
60+
return self.get_query_params().get('UseAssumeRoleChkServerPerm')
61+
62+
def set_UseAssumeRoleChkServerPerm(self, UseAssumeRoleChkServerPerm): # Boolean
63+
self.add_query_param('UseAssumeRoleChkServerPerm', UseAssumeRoleChkServerPerm)
64+
def get_InstanceIds(self): # Array
65+
return self.get_query_params().get('InstanceIds')
66+
67+
def set_InstanceIds(self, InstanceIds): # Array
68+
self.add_query_param("InstanceIds", json.dumps(InstanceIds))
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
22+
class BindVscMountPointAliasRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DFS', '2018-06-20', 'BindVscMountPointAlias','alidfs')
26+
self.set_method('POST')
27+
28+
def get_InputRegionId(self): # String
29+
return self.get_query_params().get('InputRegionId')
30+
31+
def set_InputRegionId(self, InputRegionId): # String
32+
self.add_query_param('InputRegionId', InputRegionId)
33+
def get_MountPointId(self): # String
34+
return self.get_query_params().get('MountPointId')
35+
36+
def set_MountPointId(self, MountPointId): # String
37+
self.add_query_param('MountPointId', MountPointId)
38+
def get_FileSystemId(self): # String
39+
return self.get_query_params().get('FileSystemId')
40+
41+
def set_FileSystemId(self, FileSystemId): # String
42+
self.add_query_param('FileSystemId', FileSystemId)
43+
def get_AliasPrefix(self): # String
44+
return self.get_query_params().get('AliasPrefix')
45+
46+
def set_AliasPrefix(self, AliasPrefix): # String
47+
self.add_query_param('AliasPrefix', AliasPrefix)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
22+
class CreateAccessGroupRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DFS', '2018-06-20', 'CreateAccessGroup','alidfs')
26+
self.set_method('POST')
27+
28+
def get_Description(self): # String
29+
return self.get_query_params().get('Description')
30+
31+
def set_Description(self, Description): # String
32+
self.add_query_param('Description', Description)
33+
def get_NetworkType(self): # String
34+
return self.get_query_params().get('NetworkType')
35+
36+
def set_NetworkType(self, NetworkType): # String
37+
self.add_query_param('NetworkType', NetworkType)
38+
def get_InputRegionId(self): # String
39+
return self.get_query_params().get('InputRegionId')
40+
41+
def set_InputRegionId(self, InputRegionId): # String
42+
self.add_query_param('InputRegionId', InputRegionId)
43+
def get_AccessGroupName(self): # String
44+
return self.get_query_params().get('AccessGroupName')
45+
46+
def set_AccessGroupName(self, AccessGroupName): # String
47+
self.add_query_param('AccessGroupName', AccessGroupName)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
22+
class CreateAccessRuleRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DFS', '2018-06-20', 'CreateAccessRule','alidfs')
26+
self.set_method('POST')
27+
28+
def get_RWAccessType(self): # String
29+
return self.get_query_params().get('RWAccessType')
30+
31+
def set_RWAccessType(self, RWAccessType): # String
32+
self.add_query_param('RWAccessType', RWAccessType)
33+
def get_Description(self): # String
34+
return self.get_query_params().get('Description')
35+
36+
def set_Description(self, Description): # String
37+
self.add_query_param('Description', Description)
38+
def get_AccessGroupId(self): # String
39+
return self.get_query_params().get('AccessGroupId')
40+
41+
def set_AccessGroupId(self, AccessGroupId): # String
42+
self.add_query_param('AccessGroupId', AccessGroupId)
43+
def get_InputRegionId(self): # String
44+
return self.get_query_params().get('InputRegionId')
45+
46+
def set_InputRegionId(self, InputRegionId): # String
47+
self.add_query_param('InputRegionId', InputRegionId)
48+
def get_NetworkSegment(self): # String
49+
return self.get_query_params().get('NetworkSegment')
50+
51+
def set_NetworkSegment(self, NetworkSegment): # String
52+
self.add_query_param('NetworkSegment', NetworkSegment)
53+
def get_Priority(self): # Integer
54+
return self.get_query_params().get('Priority')
55+
56+
def set_Priority(self, Priority): # Integer
57+
self.add_query_param('Priority', Priority)
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
22+
class CreateFileSystemRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DFS', '2018-06-20', 'CreateFileSystem','alidfs')
26+
self.set_method('POST')
27+
28+
def get_ThroughputMode(self): # String
29+
return self.get_query_params().get('ThroughputMode')
30+
31+
def set_ThroughputMode(self, ThroughputMode): # String
32+
self.add_query_param('ThroughputMode', ThroughputMode)
33+
def get_Description(self): # String
34+
return self.get_query_params().get('Description')
35+
36+
def set_Description(self, Description): # String
37+
self.add_query_param('Description', Description)
38+
def get_DedicatedClusterId(self): # String
39+
return self.get_query_params().get('DedicatedClusterId')
40+
41+
def set_DedicatedClusterId(self, DedicatedClusterId): # String
42+
self.add_query_param('DedicatedClusterId', DedicatedClusterId)
43+
def get_DataRedundancyType(self): # String
44+
return self.get_query_params().get('DataRedundancyType')
45+
46+
def set_DataRedundancyType(self, DataRedundancyType): # String
47+
self.add_query_param('DataRedundancyType', DataRedundancyType)
48+
def get_StorageType(self): # String
49+
return self.get_query_params().get('StorageType')
50+
51+
def set_StorageType(self, StorageType): # String
52+
self.add_query_param('StorageType', StorageType)
53+
def get_FileSystemName(self): # String
54+
return self.get_query_params().get('FileSystemName')
55+
56+
def set_FileSystemName(self, FileSystemName): # String
57+
self.add_query_param('FileSystemName', FileSystemName)
58+
def get_InputRegionId(self): # String
59+
return self.get_query_params().get('InputRegionId')
60+
61+
def set_InputRegionId(self, InputRegionId): # String
62+
self.add_query_param('InputRegionId', InputRegionId)
63+
def get_SpaceCapacity(self): # Long
64+
return self.get_query_params().get('SpaceCapacity')
65+
66+
def set_SpaceCapacity(self, SpaceCapacity): # Long
67+
self.add_query_param('SpaceCapacity', SpaceCapacity)
68+
def get_PartitionNumber(self): # Integer
69+
return self.get_query_params().get('PartitionNumber')
70+
71+
def set_PartitionNumber(self, PartitionNumber): # Integer
72+
self.add_query_param('PartitionNumber', PartitionNumber)
73+
def get_ProvisionedThroughputInMiBps(self): # Long
74+
return self.get_query_params().get('ProvisionedThroughputInMiBps')
75+
76+
def set_ProvisionedThroughputInMiBps(self, ProvisionedThroughputInMiBps): # Long
77+
self.add_query_param('ProvisionedThroughputInMiBps', ProvisionedThroughputInMiBps)
78+
def get_ZoneId(self): # String
79+
return self.get_query_params().get('ZoneId')
80+
81+
def set_ZoneId(self, ZoneId): # String
82+
self.add_query_param('ZoneId', ZoneId)
83+
def get_ProtocolType(self): # String
84+
return self.get_query_params().get('ProtocolType')
85+
86+
def set_ProtocolType(self, ProtocolType): # String
87+
self.add_query_param('ProtocolType', ProtocolType)
88+
def get_StorageSetName(self): # String
89+
return self.get_query_params().get('StorageSetName')
90+
91+
def set_StorageSetName(self, StorageSetName): # String
92+
self.add_query_param('StorageSetName', StorageSetName)

0 commit comments

Comments
 (0)