Skip to content

Commit

Permalink
Support Fileset for BmCPFS.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 28, 2024
1 parent 1080773 commit b72ecb4
Show file tree
Hide file tree
Showing 119 changed files with 1,030 additions and 147 deletions.
4 changes: 4 additions & 0 deletions aliyun-python-sdk-nas/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-10-28 Version: 3.14.3
- Support Fileset for BmCPFS.
- Support Fileset Quota for BmCPFS.

2022-07-18 Version: 3.14.2
- Support Elastic Desktop Service.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-nas/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy

This module works on Python versions:

2.6.5 and greater
3.7 and greater

**Documentation:**

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-nas/aliyunsdknas/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.14.2'
__version__ = '3.14.3'
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class AddClientToBlackListRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AddClientToBlackList','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AddClientToBlackList','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class AddTagsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AddTags','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'AddTags','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class ApplyAutoSnapshotPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'ApplyAutoSnapshotPolicy','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'ApplyAutoSnapshotPolicy','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class ApplyDataFlowAutoRefreshRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'ApplyDataFlowAutoRefresh','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'ApplyDataFlowAutoRefresh','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelAutoSnapshotPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelAutoSnapshotPolicy','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelAutoSnapshotPolicy','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelDataFlowAutoRefreshRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDataFlowAutoRefresh','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDataFlowAutoRefresh','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
from aliyunsdknas.endpoint import endpoint_data

class CancelDataFlowSubTaskRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDataFlowSubTask','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_ClientToken(self): # String
return self.get_query_params().get('ClientToken')

def set_ClientToken(self, ClientToken): # String
self.add_query_param('ClientToken', ClientToken)
def get_DataFlowTaskId(self): # String
return self.get_query_params().get('DataFlowTaskId')

def set_DataFlowTaskId(self, DataFlowTaskId): # String
self.add_query_param('DataFlowTaskId', DataFlowTaskId)
def get_DataFlowSubTaskId(self): # String
return self.get_query_params().get('DataFlowSubTaskId')

def set_DataFlowSubTaskId(self, DataFlowSubTaskId): # String
self.add_query_param('DataFlowSubTaskId', DataFlowSubTaskId)
def get_FileSystemId(self): # String
return self.get_query_params().get('FileSystemId')

def set_FileSystemId(self, FileSystemId): # String
self.add_query_param('FileSystemId', FileSystemId)
def get_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

def set_DryRun(self, DryRun): # Boolean
self.add_query_param('DryRun', DryRun)
def get_DataFlowId(self): # String
return self.get_query_params().get('DataFlowId')

def set_DataFlowId(self, DataFlowId): # String
self.add_query_param('DataFlowId', DataFlowId)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelDataFlowTaskRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDataFlowTask','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDataFlowTask','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelDirQuotaRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDirQuota','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelDirQuota','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,35 @@
from aliyunsdkcore.request import RpcRequest
from aliyunsdknas.endpoint import endpoint_data

class DescribeTagsRequest(RpcRequest):
class CancelFilesetQuotaRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'DescribeTags','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelFilesetQuota','nas')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_PageNumber(self): # Integer
return self.get_query_params().get('PageNumber')
def get_FsetId(self): # String
return self.get_query_params().get('FsetId')

def set_PageNumber(self, PageNumber): # Integer
self.add_query_param('PageNumber', PageNumber)
def get_PageSize(self): # Integer
return self.get_query_params().get('PageSize')
def set_FsetId(self, FsetId): # String
self.add_query_param('FsetId', FsetId)
def get_ClientToken(self): # String
return self.get_query_params().get('ClientToken')

def set_PageSize(self, PageSize): # Integer
self.add_query_param('PageSize', PageSize)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def set_ClientToken(self, ClientToken): # String
self.add_query_param('ClientToken', ClientToken)
def get_FileSystemId(self): # String
return self.get_query_params().get('FileSystemId')

def set_FileSystemId(self, FileSystemId): # String
self.add_query_param('FileSystemId', FileSystemId)
def get_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

def set_DryRun(self, DryRun): # Boolean
self.add_query_param('DryRun', DryRun)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelLifecycleRetrieveJobRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelLifecycleRetrieveJob','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelLifecycleRetrieveJob','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CancelRecycleBinJobRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelRecycleBinJob','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CancelRecycleBinJob','nas')
self.set_method('GET')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
from aliyunsdknas.endpoint import endpoint_data

class ChangeResourceGroupRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'ChangeResourceGroup','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_ResourceId(self): # String
return self.get_query_params().get('ResourceId')

def set_ResourceId(self, ResourceId): # String
self.add_query_param('ResourceId', ResourceId)
def get_ResourceType(self): # String
return self.get_query_params().get('ResourceType')

def set_ResourceType(self, ResourceType): # String
self.add_query_param('ResourceType', ResourceType)
def get_NewResourceGroupId(self): # String
return self.get_query_params().get('NewResourceGroupId')

def set_NewResourceGroupId(self, NewResourceGroupId): # String
self.add_query_param('NewResourceGroupId', NewResourceGroupId)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CreateAccessGroupRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CreateAccessGroup','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CreateAccessGroup','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
from aliyunsdknas.endpoint import endpoint_data

class CreateAccessPointRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CreateAccessPoint','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_VswId(self): # String
return self.get_query_params().get('VswId')

def set_VswId(self, VswId): # String
self.add_query_param('VswId', VswId)
def get_AccessPointName(self): # String
return self.get_query_params().get('AccessPointName')

def set_AccessPointName(self, AccessPointName): # String
self.add_query_param('AccessPointName', AccessPointName)
def get_PosixGroupId(self): # Integer
return self.get_query_params().get('PosixGroupId')

def set_PosixGroupId(self, PosixGroupId): # Integer
self.add_query_param('PosixGroupId', PosixGroupId)
def get_PosixSecondaryGroupIds(self): # String
return self.get_query_params().get('PosixSecondaryGroupIds')

def set_PosixSecondaryGroupIds(self, PosixSecondaryGroupIds): # String
self.add_query_param('PosixSecondaryGroupIds', PosixSecondaryGroupIds)
def get_FileSystemId(self): # String
return self.get_query_params().get('FileSystemId')

def set_FileSystemId(self, FileSystemId): # String
self.add_query_param('FileSystemId', FileSystemId)
def get_OwnerGroupId(self): # Integer
return self.get_query_params().get('OwnerGroupId')

def set_OwnerGroupId(self, OwnerGroupId): # Integer
self.add_query_param('OwnerGroupId', OwnerGroupId)
def get_EnabledRam(self): # Boolean
return self.get_query_params().get('EnabledRam')

def set_EnabledRam(self, EnabledRam): # Boolean
self.add_query_param('EnabledRam', EnabledRam)
def get_OwnerUserId(self): # Integer
return self.get_query_params().get('OwnerUserId')

def set_OwnerUserId(self, OwnerUserId): # Integer
self.add_query_param('OwnerUserId', OwnerUserId)
def get_Permission(self): # String
return self.get_query_params().get('Permission')

def set_Permission(self, Permission): # String
self.add_query_param('Permission', Permission)
def get_VpcId(self): # String
return self.get_query_params().get('VpcId')

def set_VpcId(self, VpcId): # String
self.add_query_param('VpcId', VpcId)
def get_RootDirectory(self): # String
return self.get_query_params().get('RootDirectory')

def set_RootDirectory(self, RootDirectory): # String
self.add_query_param('RootDirectory', RootDirectory)
def get_AccessGroup(self): # String
return self.get_query_params().get('AccessGroup')

def set_AccessGroup(self, AccessGroup): # String
self.add_query_param('AccessGroup', AccessGroup)
def get_PosixUserId(self): # Integer
return self.get_query_params().get('PosixUserId')

def set_PosixUserId(self, PosixUserId): # Integer
self.add_query_param('PosixUserId', PosixUserId)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CreateAccessRuleRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CreateAccessRule','NAS')
RpcRequest.__init__(self, 'NAS', '2017-06-26', 'CreateAccessRule','nas')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
Expand Down
Loading

0 comments on commit b72ecb4

Please sign in to comment.