Browse Source

Supported for CPFS new feature of client evict.

sdk-team 6 years ago
parent
commit
f7469d840e
74 changed files with 1111 additions and 1235 deletions
  1. 3 0
      ChangeLog.txt
  2. 105 0
      services/nas/add_client_to_black_list.go
  3. 5 4
      services/nas/add_tags.go
  4. 2 2
      services/nas/apply_auto_snapshot_policy.go
  5. 2 2
      services/nas/cancel_auto_snapshot_policy.go
  6. 27 2
      services/nas/client.go
  7. 4 4
      services/nas/create_access_group.go
  8. 4 4
      services/nas/create_access_rule.go
  9. 4 4
      services/nas/create_auto_snapshot_policy.go
  10. 4 4
      services/nas/create_file_system.go
  11. 4 4
      services/nas/create_ldap_config.go
  12. 6 6
      services/nas/create_mount_target.go
  13. 4 4
      services/nas/create_snapshot.go
  14. 0 112
      services/nas/create_tiering_job.go
  15. 0 112
      services/nas/create_tiering_policy.go
  16. 2 2
      services/nas/delete_access_group.go
  17. 2 2
      services/nas/delete_access_rule.go
  18. 2 2
      services/nas/delete_auto_snapshot_policy.go
  19. 2 2
      services/nas/delete_file_system.go
  20. 2 2
      services/nas/delete_ldap_config.go
  21. 3 3
      services/nas/delete_mount_target.go
  22. 2 2
      services/nas/delete_snapshot.go
  23. 0 105
      services/nas/delete_tiering_job.go
  24. 0 104
      services/nas/delete_tiering_policy.go
  25. 9 21
      services/nas/describe_access_groups.go
  26. 9 21
      services/nas/describe_access_rules.go
  27. 8 24
      services/nas/describe_auto_snapshot_policies.go
  28. 105 0
      services/nas/describe_black_list_clients.go
  29. 9 57
      services/nas/describe_file_systems.go
  30. 4 10
      services/nas/describe_ldap_config.go
  31. 8 21
      services/nas/describe_mount_targets.go
  32. 8 18
      services/nas/describe_regions.go
  33. 12 29
      services/nas/describe_snapshots.go
  34. 11 24
      services/nas/describe_tags.go
  35. 0 125
      services/nas/describe_tiering_jobs.go
  36. 0 122
      services/nas/describe_tiering_policies.go
  37. 4 23
      services/nas/describe_zones.go
  38. 23 0
      services/nas/endpoint.go
  39. 3 3
      services/nas/modify_access_group.go
  40. 5 5
      services/nas/modify_access_rule.go
  41. 4 4
      services/nas/modify_auto_snapshot_policy.go
  42. 3 3
      services/nas/modify_file_system.go
  43. 4 4
      services/nas/modify_ldap_config.go
  44. 3 3
      services/nas/modify_mount_target.go
  45. 0 112
      services/nas/modify_tiering_job.go
  46. 0 111
      services/nas/modify_tiering_policy.go
  47. 105 0
      services/nas/remove_client_from_black_list.go
  48. 5 4
      services/nas/remove_tags.go
  49. 3 3
      services/nas/reset_file_system.go
  50. 25 0
      services/nas/struct_access_group.go
  51. 21 0
      services/nas/struct_access_groups.go
  52. 25 0
      services/nas/struct_access_rule.go
  53. 21 0
      services/nas/struct_access_rules.go
  54. 21 0
      services/nas/struct_auto_snapshot_policies.go
  55. 29 0
      services/nas/struct_auto_snapshot_policy.go
  56. 21 0
      services/nas/struct_capacity.go
  57. 34 0
      services/nas/struct_file_system.go
  58. 21 0
      services/nas/struct_file_system_ids.go
  59. 21 0
      services/nas/struct_file_systems.go
  60. 23 0
      services/nas/struct_ldap.go
  61. 27 0
      services/nas/struct_mount_target.go
  62. 21 0
      services/nas/struct_mount_targets_in_describe_file_systems.go
  63. 21 0
      services/nas/struct_mount_targets_in_describe_mount_targets.go
  64. 21 0
      services/nas/struct_package.go
  65. 21 0
      services/nas/struct_packages.go
  66. 21 0
      services/nas/struct_performance.go
  67. 23 0
      services/nas/struct_region.go
  68. 21 0
      services/nas/struct_regions.go
  69. 30 0
      services/nas/struct_snapshot.go
  70. 21 0
      services/nas/struct_snapshots.go
  71. 23 0
      services/nas/struct_tag.go
  72. 21 0
      services/nas/struct_tags.go
  73. 23 0
      services/nas/struct_zone.go
  74. 21 0
      services/nas/struct_zones.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-08-21 Version: 1.60.115
+- Supported for CPFS new feature of client evict.
+
 2019-08-21 Version: 1.60.114
 2019-08-21 Version: 1.60.114
 - Move StartExecution params to body.
 - Move StartExecution params to body.
 
 

+ 105 - 0
services/nas/add_client_to_black_list.go

@@ -0,0 +1,105 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AddClientToBlackList invokes the nas.AddClientToBlackList API synchronously
+// api document: https://help.aliyun.com/api/nas/addclienttoblacklist.html
+func (client *Client) AddClientToBlackList(request *AddClientToBlackListRequest) (response *AddClientToBlackListResponse, err error) {
+	response = CreateAddClientToBlackListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddClientToBlackListWithChan invokes the nas.AddClientToBlackList API asynchronously
+// api document: https://help.aliyun.com/api/nas/addclienttoblacklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddClientToBlackListWithChan(request *AddClientToBlackListRequest) (<-chan *AddClientToBlackListResponse, <-chan error) {
+	responseChan := make(chan *AddClientToBlackListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddClientToBlackList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddClientToBlackListWithCallback invokes the nas.AddClientToBlackList API asynchronously
+// api document: https://help.aliyun.com/api/nas/addclienttoblacklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddClientToBlackListWithCallback(request *AddClientToBlackListRequest, callback func(response *AddClientToBlackListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddClientToBlackListResponse
+		var err error
+		defer close(result)
+		response, err = client.AddClientToBlackList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddClientToBlackListRequest is the request struct for api AddClientToBlackList
+type AddClientToBlackListRequest struct {
+	*requests.RpcRequest
+	ClientToken  string `position:"Query" name:"ClientToken"`
+	ClientIP     string `position:"Query" name:"ClientIP"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
+}
+
+// AddClientToBlackListResponse is the response struct for api AddClientToBlackList
+type AddClientToBlackListResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateAddClientToBlackListRequest creates a request to invoke AddClientToBlackList API
+func CreateAddClientToBlackListRequest() (request *AddClientToBlackListRequest) {
+	request = &AddClientToBlackListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("NAS", "2017-06-26", "AddClientToBlackList", "nas", "openAPI")
+	return
+}
+
+// CreateAddClientToBlackListResponse creates a response to parse from AddClientToBlackList response
+func CreateAddClientToBlackListResponse() (response *AddClientToBlackListResponse) {
+	response = &AddClientToBlackListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 4
services/nas/add_tags.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,13 +76,14 @@ func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func
 // AddTagsRequest is the request struct for api AddTags
 // AddTagsRequest is the request struct for api AddTags
 type AddTagsRequest struct {
 type AddTagsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	Tag          *[]AddTagsTag `position:"Query" name:"Tag"  type:"Repeated"`
 	FileSystemId string        `position:"Query" name:"FileSystemId"`
 	FileSystemId string        `position:"Query" name:"FileSystemId"`
-	Tag          *[]AddTagsTag `position:"Query" name:"Tag" type:"Repeated"`
 }
 }
 
 
+// AddTagsTag is a repeated param struct in AddTagsRequest
 type AddTagsTag struct {
 type AddTagsTag struct {
-	Key   string `name:"Key"`
 	Value string `name:"Value"`
 	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 }
 
 
 // AddTagsResponse is the response struct for api AddTags
 // AddTagsResponse is the response struct for api AddTags

+ 2 - 2
services/nas/apply_auto_snapshot_policy.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 2 - 2
services/nas/cancel_auto_snapshot_policy.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 27 - 2
services/nas/client.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,9 +15,9 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
+	"reflect"
+
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
@@ -26,10 +28,25 @@ type Client struct {
 	sdk.Client
 	sdk.Client
 }
 }
 
 
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
 // NewClient creates a sdk client with environment variables
 // NewClient creates a sdk client with environment variables
 func NewClient() (client *Client, err error) {
 func NewClient() (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.Init()
 	err = client.Init()
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 		pc = provider.NewProviderChain(providers)
 		pc = provider.NewProviderChain(providers)
 	}
 	}
 	err = client.InitWithProviderChain(regionId, pc)
 	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithOptions(regionId, config, credential)
 	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
 	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }
 
 
@@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
 	return
 	return
 }
 }

+ 4 - 4
services/nas/create_access_group.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,9 @@ func (client *Client) CreateAccessGroupWithCallback(request *CreateAccessGroupRe
 // CreateAccessGroupRequest is the request struct for api CreateAccessGroup
 // CreateAccessGroupRequest is the request struct for api CreateAccessGroup
 type CreateAccessGroupRequest struct {
 type CreateAccessGroupRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AccessGroupName string `position:"Query" name:"AccessGroupName"`
-	AccessGroupType string `position:"Query" name:"AccessGroupType"`
 	Description     string `position:"Query" name:"Description"`
 	Description     string `position:"Query" name:"Description"`
+	AccessGroupType string `position:"Query" name:"AccessGroupType"`
+	AccessGroupName string `position:"Query" name:"AccessGroupName"`
 	FileSystemType  string `position:"Query" name:"FileSystemType"`
 	FileSystemType  string `position:"Query" name:"FileSystemType"`
 }
 }
 
 

+ 4 - 4
services/nas/create_access_rule.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,11 @@ func (client *Client) CreateAccessRuleWithCallback(request *CreateAccessRuleRequ
 // CreateAccessRuleRequest is the request struct for api CreateAccessRule
 // CreateAccessRuleRequest is the request struct for api CreateAccessRule
 type CreateAccessRuleRequest struct {
 type CreateAccessRuleRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
-	SourceCidrIp    string           `position:"Query" name:"SourceCidrIp"`
 	RWAccessType    string           `position:"Query" name:"RWAccessType"`
 	RWAccessType    string           `position:"Query" name:"RWAccessType"`
+	SourceCidrIp    string           `position:"Query" name:"SourceCidrIp"`
 	UserAccessType  string           `position:"Query" name:"UserAccessType"`
 	UserAccessType  string           `position:"Query" name:"UserAccessType"`
 	Priority        requests.Integer `position:"Query" name:"Priority"`
 	Priority        requests.Integer `position:"Query" name:"Priority"`
+	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 }
 }
 
 

+ 4 - 4
services/nas/create_auto_snapshot_policy.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,11 @@ func (client *Client) CreateAutoSnapshotPolicyWithCallback(request *CreateAutoSn
 // CreateAutoSnapshotPolicyRequest is the request struct for api CreateAutoSnapshotPolicy
 // CreateAutoSnapshotPolicyRequest is the request struct for api CreateAutoSnapshotPolicy
 type CreateAutoSnapshotPolicyRequest struct {
 type CreateAutoSnapshotPolicyRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	RepeatWeekdays         string           `position:"Query" name:"RepeatWeekdays"`
 	TimePoints             string           `position:"Query" name:"TimePoints"`
 	TimePoints             string           `position:"Query" name:"TimePoints"`
 	RetentionDays          requests.Integer `position:"Query" name:"RetentionDays"`
 	RetentionDays          requests.Integer `position:"Query" name:"RetentionDays"`
-	AutoSnapshotPolicyName string           `position:"Query" name:"AutoSnapshotPolicyName"`
+	RepeatWeekdays         string           `position:"Query" name:"RepeatWeekdays"`
 	FileSystemType         string           `position:"Query" name:"FileSystemType"`
 	FileSystemType         string           `position:"Query" name:"FileSystemType"`
+	AutoSnapshotPolicyName string           `position:"Query" name:"AutoSnapshotPolicyName"`
 }
 }
 
 
 // CreateAutoSnapshotPolicyResponse is the response struct for api CreateAutoSnapshotPolicy
 // CreateAutoSnapshotPolicyResponse is the response struct for api CreateAutoSnapshotPolicy

+ 4 - 4
services/nas/create_file_system.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,10 @@ func (client *Client) CreateFileSystemWithCallback(request *CreateFileSystemRequ
 // CreateFileSystemRequest is the request struct for api CreateFileSystem
 // CreateFileSystemRequest is the request struct for api CreateFileSystem
 type CreateFileSystemRequest struct {
 type CreateFileSystemRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	StorageType  string `position:"Query" name:"StorageType"`
 	ZoneId       string `position:"Query" name:"ZoneId"`
 	ZoneId       string `position:"Query" name:"ZoneId"`
-	ProtocolType string `position:"Query" name:"ProtocolType"`
 	Description  string `position:"Query" name:"Description"`
 	Description  string `position:"Query" name:"Description"`
+	ProtocolType string `position:"Query" name:"ProtocolType"`
+	StorageType  string `position:"Query" name:"StorageType"`
 }
 }
 
 
 // CreateFileSystemResponse is the response struct for api CreateFileSystem
 // CreateFileSystemResponse is the response struct for api CreateFileSystem

+ 4 - 4
services/nas/create_ldap_config.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,10 @@ func (client *Client) CreateLDAPConfigWithCallback(request *CreateLDAPConfigRequ
 // CreateLDAPConfigRequest is the request struct for api CreateLDAPConfig
 // CreateLDAPConfigRequest is the request struct for api CreateLDAPConfig
 type CreateLDAPConfigRequest struct {
 type CreateLDAPConfigRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId string `position:"Query" name:"FileSystemId"`
-	URI          string `position:"Query" name:"URI"`
 	BindDN       string `position:"Query" name:"BindDN"`
 	BindDN       string `position:"Query" name:"BindDN"`
 	SearchBase   string `position:"Query" name:"SearchBase"`
 	SearchBase   string `position:"Query" name:"SearchBase"`
+	URI          string `position:"Query" name:"URI"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // CreateLDAPConfigResponse is the response struct for api CreateLDAPConfig
 // CreateLDAPConfigResponse is the response struct for api CreateLDAPConfig

+ 6 - 6
services/nas/create_mount_target.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,11 @@ func (client *Client) CreateMountTargetWithCallback(request *CreateMountTargetRe
 // CreateMountTargetRequest is the request struct for api CreateMountTarget
 // CreateMountTargetRequest is the request struct for api CreateMountTarget
 type CreateMountTargetRequest struct {
 type CreateMountTargetRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId    string `position:"Query" name:"FileSystemId"`
-	AccessGroupName string `position:"Query" name:"AccessGroupName"`
-	NetworkType     string `position:"Query" name:"NetworkType"`
-	VpcId           string `position:"Query" name:"VpcId"`
 	VSwitchId       string `position:"Query" name:"VSwitchId"`
 	VSwitchId       string `position:"Query" name:"VSwitchId"`
+	VpcId           string `position:"Query" name:"VpcId"`
+	NetworkType     string `position:"Query" name:"NetworkType"`
+	AccessGroupName string `position:"Query" name:"AccessGroupName"`
+	FileSystemId    string `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // CreateMountTargetResponse is the response struct for api CreateMountTarget
 // CreateMountTargetResponse is the response struct for api CreateMountTarget

+ 4 - 4
services/nas/create_snapshot.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,10 @@ func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest,
 // CreateSnapshotRequest is the request struct for api CreateSnapshot
 // CreateSnapshotRequest is the request struct for api CreateSnapshot
 type CreateSnapshotRequest struct {
 type CreateSnapshotRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId  string           `position:"Query" name:"FileSystemId"`
-	SnapshotName  string           `position:"Query" name:"SnapshotName"`
 	Description   string           `position:"Query" name:"Description"`
 	Description   string           `position:"Query" name:"Description"`
+	SnapshotName  string           `position:"Query" name:"SnapshotName"`
 	RetentionDays requests.Integer `position:"Query" name:"RetentionDays"`
 	RetentionDays requests.Integer `position:"Query" name:"RetentionDays"`
+	FileSystemId  string           `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // CreateSnapshotResponse is the response struct for api CreateSnapshot
 // CreateSnapshotResponse is the response struct for api CreateSnapshot

+ 0 - 112
services/nas/create_tiering_job.go

@@ -1,112 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// CreateTieringJob invokes the nas.CreateTieringJob API synchronously
-// api document: https://help.aliyun.com/api/nas/createtieringjob.html
-func (client *Client) CreateTieringJob(request *CreateTieringJobRequest) (response *CreateTieringJobResponse, err error) {
-	response = CreateCreateTieringJobResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateTieringJobWithChan invokes the nas.CreateTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/createtieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTieringJobWithChan(request *CreateTieringJobRequest) (<-chan *CreateTieringJobResponse, <-chan error) {
-	responseChan := make(chan *CreateTieringJobResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateTieringJob(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateTieringJobWithCallback invokes the nas.CreateTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/createtieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTieringJobWithCallback(request *CreateTieringJobRequest, callback func(response *CreateTieringJobResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateTieringJobResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateTieringJob(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateTieringJobRequest is the request struct for api CreateTieringJob
-type CreateTieringJobRequest struct {
-	*requests.RpcRequest
-	Volume    string           `position:"Query" name:"Volume"`
-	Name      string           `position:"Query" name:"Name"`
-	Type      string           `position:"Query" name:"Type"`
-	Path      string           `position:"Query" name:"Path"`
-	Recursive requests.Boolean `position:"Query" name:"Recursive"`
-	Policy    string           `position:"Query" name:"Policy"`
-	Weekday   requests.Integer `position:"Query" name:"Weekday"`
-	Hour      requests.Integer `position:"Query" name:"Hour"`
-	Enabled   requests.Boolean `position:"Query" name:"Enabled"`
-}
-
-// CreateTieringJobResponse is the response struct for api CreateTieringJob
-type CreateTieringJobResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateCreateTieringJobRequest creates a request to invoke CreateTieringJob API
-func CreateCreateTieringJobRequest() (request *CreateTieringJobRequest) {
-	request = &CreateTieringJobRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "CreateTieringJob", "nas", "openAPI")
-	return
-}
-
-// CreateCreateTieringJobResponse creates a response to parse from CreateTieringJob response
-func CreateCreateTieringJobResponse() (response *CreateTieringJobResponse) {
-	response = &CreateTieringJobResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 112
services/nas/create_tiering_policy.go

@@ -1,112 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// CreateTieringPolicy invokes the nas.CreateTieringPolicy API synchronously
-// api document: https://help.aliyun.com/api/nas/createtieringpolicy.html
-func (client *Client) CreateTieringPolicy(request *CreateTieringPolicyRequest) (response *CreateTieringPolicyResponse, err error) {
-	response = CreateCreateTieringPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateTieringPolicyWithChan invokes the nas.CreateTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/createtieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTieringPolicyWithChan(request *CreateTieringPolicyRequest) (<-chan *CreateTieringPolicyResponse, <-chan error) {
-	responseChan := make(chan *CreateTieringPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateTieringPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateTieringPolicyWithCallback invokes the nas.CreateTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/createtieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTieringPolicyWithCallback(request *CreateTieringPolicyRequest, callback func(response *CreateTieringPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateTieringPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateTieringPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateTieringPolicyRequest is the request struct for api CreateTieringPolicy
-type CreateTieringPolicyRequest struct {
-	*requests.RpcRequest
-	Name        string           `position:"Query" name:"Name"`
-	Description string           `position:"Query" name:"Description"`
-	Mtime       requests.Integer `position:"Query" name:"Mtime"`
-	Atime       requests.Integer `position:"Query" name:"Atime"`
-	Ctime       requests.Integer `position:"Query" name:"Ctime"`
-	Size        requests.Integer `position:"Query" name:"Size"`
-	FileName    string           `position:"Query" name:"FileName"`
-	RecallTime  requests.Integer `position:"Query" name:"RecallTime"`
-	CheckLimit  requests.Boolean `position:"Query" name:"CheckLimit"`
-}
-
-// CreateTieringPolicyResponse is the response struct for api CreateTieringPolicy
-type CreateTieringPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateCreateTieringPolicyRequest creates a request to invoke CreateTieringPolicy API
-func CreateCreateTieringPolicyRequest() (request *CreateTieringPolicyRequest) {
-	request = &CreateTieringPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "CreateTieringPolicy", "nas", "openAPI")
-	return
-}
-
-// CreateCreateTieringPolicyResponse creates a response to parse from CreateTieringPolicy response
-func CreateCreateTieringPolicyResponse() (response *CreateTieringPolicyResponse) {
-	response = &CreateTieringPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 2
services/nas/delete_access_group.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 2 - 2
services/nas/delete_access_rule.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 2 - 2
services/nas/delete_auto_snapshot_policy.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 2 - 2
services/nas/delete_file_system.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 2 - 2
services/nas/delete_ldap_config.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 3 - 3
services/nas/delete_mount_target.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,8 +76,8 @@ func (client *Client) DeleteMountTargetWithCallback(request *DeleteMountTargetRe
 // DeleteMountTargetRequest is the request struct for api DeleteMountTarget
 // DeleteMountTargetRequest is the request struct for api DeleteMountTarget
 type DeleteMountTargetRequest struct {
 type DeleteMountTargetRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId      string `position:"Query" name:"FileSystemId"`
 	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
 	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
+	FileSystemId      string `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // DeleteMountTargetResponse is the response struct for api DeleteMountTarget
 // DeleteMountTargetResponse is the response struct for api DeleteMountTarget

+ 2 - 2
services/nas/delete_snapshot.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 0 - 105
services/nas/delete_tiering_job.go

@@ -1,105 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DeleteTieringJob invokes the nas.DeleteTieringJob API synchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringjob.html
-func (client *Client) DeleteTieringJob(request *DeleteTieringJobRequest) (response *DeleteTieringJobResponse, err error) {
-	response = CreateDeleteTieringJobResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeleteTieringJobWithChan invokes the nas.DeleteTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTieringJobWithChan(request *DeleteTieringJobRequest) (<-chan *DeleteTieringJobResponse, <-chan error) {
-	responseChan := make(chan *DeleteTieringJobResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeleteTieringJob(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeleteTieringJobWithCallback invokes the nas.DeleteTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTieringJobWithCallback(request *DeleteTieringJobRequest, callback func(response *DeleteTieringJobResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeleteTieringJobResponse
-		var err error
-		defer close(result)
-		response, err = client.DeleteTieringJob(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeleteTieringJobRequest is the request struct for api DeleteTieringJob
-type DeleteTieringJobRequest struct {
-	*requests.RpcRequest
-	Volume string `position:"Query" name:"Volume"`
-	Name   string `position:"Query" name:"Name"`
-}
-
-// DeleteTieringJobResponse is the response struct for api DeleteTieringJob
-type DeleteTieringJobResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateDeleteTieringJobRequest creates a request to invoke DeleteTieringJob API
-func CreateDeleteTieringJobRequest() (request *DeleteTieringJobRequest) {
-	request = &DeleteTieringJobRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "DeleteTieringJob", "nas", "openAPI")
-	return
-}
-
-// CreateDeleteTieringJobResponse creates a response to parse from DeleteTieringJob response
-func CreateDeleteTieringJobResponse() (response *DeleteTieringJobResponse) {
-	response = &DeleteTieringJobResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/nas/delete_tiering_policy.go

@@ -1,104 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DeleteTieringPolicy invokes the nas.DeleteTieringPolicy API synchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringpolicy.html
-func (client *Client) DeleteTieringPolicy(request *DeleteTieringPolicyRequest) (response *DeleteTieringPolicyResponse, err error) {
-	response = CreateDeleteTieringPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeleteTieringPolicyWithChan invokes the nas.DeleteTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTieringPolicyWithChan(request *DeleteTieringPolicyRequest) (<-chan *DeleteTieringPolicyResponse, <-chan error) {
-	responseChan := make(chan *DeleteTieringPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeleteTieringPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeleteTieringPolicyWithCallback invokes the nas.DeleteTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/deletetieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTieringPolicyWithCallback(request *DeleteTieringPolicyRequest, callback func(response *DeleteTieringPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeleteTieringPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.DeleteTieringPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeleteTieringPolicyRequest is the request struct for api DeleteTieringPolicy
-type DeleteTieringPolicyRequest struct {
-	*requests.RpcRequest
-	Name string `position:"Query" name:"Name"`
-}
-
-// DeleteTieringPolicyResponse is the response struct for api DeleteTieringPolicy
-type DeleteTieringPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateDeleteTieringPolicyRequest creates a request to invoke DeleteTieringPolicy API
-func CreateDeleteTieringPolicyRequest() (request *DeleteTieringPolicyRequest) {
-	request = &DeleteTieringPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "DeleteTieringPolicy", "nas", "openAPI")
-	return
-}
-
-// CreateDeleteTieringPolicyResponse creates a response to parse from DeleteTieringPolicy response
-func CreateDeleteTieringPolicyResponse() (response *DeleteTieringPolicyResponse) {
-	response = &DeleteTieringPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 9 - 21
services/nas/describe_access_groups.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,32 +76,20 @@ func (client *Client) DescribeAccessGroupsWithCallback(request *DescribeAccessGr
 // DescribeAccessGroupsRequest is the request struct for api DescribeAccessGroups
 // DescribeAccessGroupsRequest is the request struct for api DescribeAccessGroups
 type DescribeAccessGroupsRequest struct {
 type DescribeAccessGroupsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
 	PageSize        requests.Integer `position:"Query" name:"PageSize"`
 	PageSize        requests.Integer `position:"Query" name:"PageSize"`
-	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
+	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
+	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
 }
 }
 
 
 // DescribeAccessGroupsResponse is the response struct for api DescribeAccessGroups
 // DescribeAccessGroupsResponse is the response struct for api DescribeAccessGroups
 type DescribeAccessGroupsResponse struct {
 type DescribeAccessGroupsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId    string                            `json:"RequestId" xml:"RequestId"`
-	TotalCount   int                               `json:"TotalCount" xml:"TotalCount"`
-	PageSize     int                               `json:"PageSize" xml:"PageSize"`
-	PageNumber   int                               `json:"PageNumber" xml:"PageNumber"`
-	AccessGroups DescribeAccessGroupsAccessGroups0 `json:"AccessGroups" xml:"AccessGroups"`
-}
-
-type DescribeAccessGroupsAccessGroups0 struct {
-	AccessGroup []DescribeAccessGroupsAccessGroup1 `json:"AccessGroup" xml:"AccessGroup"`
-}
-
-type DescribeAccessGroupsAccessGroup1 struct {
-	AccessGroupName  string `json:"AccessGroupName" xml:"AccessGroupName"`
-	AccessGroupType  string `json:"AccessGroupType" xml:"AccessGroupType"`
-	RuleCount        int    `json:"RuleCount" xml:"RuleCount"`
-	MountTargetCount int    `json:"MountTargetCount" xml:"MountTargetCount"`
-	Description      string `json:"Description" xml:"Description"`
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	TotalCount   int          `json:"TotalCount" xml:"TotalCount"`
+	PageSize     int          `json:"PageSize" xml:"PageSize"`
+	PageNumber   int          `json:"PageNumber" xml:"PageNumber"`
+	AccessGroups AccessGroups `json:"AccessGroups" xml:"AccessGroups"`
 }
 }
 
 
 // CreateDescribeAccessGroupsRequest creates a request to invoke DescribeAccessGroups API
 // CreateDescribeAccessGroupsRequest creates a request to invoke DescribeAccessGroups API

+ 9 - 21
services/nas/describe_access_rules.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,33 +76,21 @@ func (client *Client) DescribeAccessRulesWithCallback(request *DescribeAccessRul
 // DescribeAccessRulesRequest is the request struct for api DescribeAccessRules
 // DescribeAccessRulesRequest is the request struct for api DescribeAccessRules
 type DescribeAccessRulesRequest struct {
 type DescribeAccessRulesRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	PageSize        requests.Integer `position:"Query" name:"PageSize"`
 	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
 	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
 	AccessRuleId    string           `position:"Query" name:"AccessRuleId"`
 	AccessRuleId    string           `position:"Query" name:"AccessRuleId"`
-	PageSize        requests.Integer `position:"Query" name:"PageSize"`
-	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
+	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
 }
 }
 
 
 // DescribeAccessRulesResponse is the response struct for api DescribeAccessRules
 // DescribeAccessRulesResponse is the response struct for api DescribeAccessRules
 type DescribeAccessRulesResponse struct {
 type DescribeAccessRulesResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId   string                          `json:"RequestId" xml:"RequestId"`
-	TotalCount  int                             `json:"TotalCount" xml:"TotalCount"`
-	PageSize    int                             `json:"PageSize" xml:"PageSize"`
-	PageNumber  int                             `json:"PageNumber" xml:"PageNumber"`
-	AccessRules DescribeAccessRulesAccessRules0 `json:"AccessRules" xml:"AccessRules"`
-}
-
-type DescribeAccessRulesAccessRules0 struct {
-	AccessRule []DescribeAccessRulesAccessRule1 `json:"AccessRule" xml:"AccessRule"`
-}
-
-type DescribeAccessRulesAccessRule1 struct {
-	SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"`
-	Priority     int    `json:"Priority" xml:"Priority"`
-	AccessRuleId string `json:"AccessRuleId" xml:"AccessRuleId"`
-	RWAccess     string `json:"RWAccess" xml:"RWAccess"`
-	UserAccess   string `json:"UserAccess" xml:"UserAccess"`
+	RequestId   string      `json:"RequestId" xml:"RequestId"`
+	TotalCount  int         `json:"TotalCount" xml:"TotalCount"`
+	PageSize    int         `json:"PageSize" xml:"PageSize"`
+	PageNumber  int         `json:"PageNumber" xml:"PageNumber"`
+	AccessRules AccessRules `json:"AccessRules" xml:"AccessRules"`
 }
 }
 
 
 // CreateDescribeAccessRulesRequest creates a request to invoke DescribeAccessRules API
 // CreateDescribeAccessRulesRequest creates a request to invoke DescribeAccessRules API

+ 8 - 24
services/nas/describe_auto_snapshot_policies.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -78,34 +78,18 @@ type DescribeAutoSnapshotPoliciesRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	AutoSnapshotPolicyId string           `position:"Query" name:"AutoSnapshotPolicyId"`
 	AutoSnapshotPolicyId string           `position:"Query" name:"AutoSnapshotPolicyId"`
 	PageSize             requests.Integer `position:"Query" name:"PageSize"`
 	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
 	FileSystemType       string           `position:"Query" name:"FileSystemType"`
 	FileSystemType       string           `position:"Query" name:"FileSystemType"`
+	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
 }
 }
 
 
 // DescribeAutoSnapshotPoliciesResponse is the response struct for api DescribeAutoSnapshotPolicies
 // DescribeAutoSnapshotPoliciesResponse is the response struct for api DescribeAutoSnapshotPolicies
 type DescribeAutoSnapshotPoliciesResponse struct {
 type DescribeAutoSnapshotPoliciesResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId            string                                            `json:"RequestId" xml:"RequestId"`
-	TotalCount           int                                               `json:"TotalCount" xml:"TotalCount"`
-	PageSize             int                                               `json:"PageSize" xml:"PageSize"`
-	PageNumber           int                                               `json:"PageNumber" xml:"PageNumber"`
-	AutoSnapshotPolicies DescribeAutoSnapshotPoliciesAutoSnapshotPolicies0 `json:"AutoSnapshotPolicies" xml:"AutoSnapshotPolicies"`
-}
-
-type DescribeAutoSnapshotPoliciesAutoSnapshotPolicies0 struct {
-	AutoSnapshotPolicy []DescribeAutoSnapshotPoliciesAutoSnapshotPolicy1 `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"`
-}
-
-type DescribeAutoSnapshotPoliciesAutoSnapshotPolicy1 struct {
-	AutoSnapshotPolicyId   string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"`
-	AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"`
-	CreateTime             string `json:"CreateTime" xml:"CreateTime"`
-	FileSystemNums         int    `json:"FileSystemNums" xml:"FileSystemNums"`
-	RegionId               string `json:"RegionId" xml:"RegionId"`
-	RepeatWeekdays         string `json:"RepeatWeekdays" xml:"RepeatWeekdays"`
-	RetentionDays          int    `json:"RetentionDays" xml:"RetentionDays"`
-	Status                 string `json:"Status" xml:"Status"`
-	TimePoints             string `json:"TimePoints" xml:"TimePoints"`
+	RequestId            string               `json:"RequestId" xml:"RequestId"`
+	TotalCount           int                  `json:"TotalCount" xml:"TotalCount"`
+	PageSize             int                  `json:"PageSize" xml:"PageSize"`
+	PageNumber           int                  `json:"PageNumber" xml:"PageNumber"`
+	AutoSnapshotPolicies AutoSnapshotPolicies `json:"AutoSnapshotPolicies" xml:"AutoSnapshotPolicies"`
 }
 }
 
 
 // CreateDescribeAutoSnapshotPoliciesRequest creates a request to invoke DescribeAutoSnapshotPolicies API
 // CreateDescribeAutoSnapshotPoliciesRequest creates a request to invoke DescribeAutoSnapshotPolicies API

+ 105 - 0
services/nas/describe_black_list_clients.go

@@ -0,0 +1,105 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeBlackListClients invokes the nas.DescribeBlackListClients API synchronously
+// api document: https://help.aliyun.com/api/nas/describeblacklistclients.html
+func (client *Client) DescribeBlackListClients(request *DescribeBlackListClientsRequest) (response *DescribeBlackListClientsResponse, err error) {
+	response = CreateDescribeBlackListClientsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeBlackListClientsWithChan invokes the nas.DescribeBlackListClients API asynchronously
+// api document: https://help.aliyun.com/api/nas/describeblacklistclients.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeBlackListClientsWithChan(request *DescribeBlackListClientsRequest) (<-chan *DescribeBlackListClientsResponse, <-chan error) {
+	responseChan := make(chan *DescribeBlackListClientsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeBlackListClients(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeBlackListClientsWithCallback invokes the nas.DescribeBlackListClients API asynchronously
+// api document: https://help.aliyun.com/api/nas/describeblacklistclients.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeBlackListClientsWithCallback(request *DescribeBlackListClientsRequest, callback func(response *DescribeBlackListClientsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeBlackListClientsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeBlackListClients(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeBlackListClientsRequest is the request struct for api DescribeBlackListClients
+type DescribeBlackListClientsRequest struct {
+	*requests.RpcRequest
+	ClientIP     string `position:"Query" name:"ClientIP"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
+}
+
+// DescribeBlackListClientsResponse is the response struct for api DescribeBlackListClients
+type DescribeBlackListClientsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Clients   string `json:"Clients" xml:"Clients"`
+}
+
+// CreateDescribeBlackListClientsRequest creates a request to invoke DescribeBlackListClients API
+func CreateDescribeBlackListClientsRequest() (request *DescribeBlackListClientsRequest) {
+	request = &DescribeBlackListClientsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("NAS", "2017-06-26", "DescribeBlackListClients", "nas", "openAPI")
+	return
+}
+
+// CreateDescribeBlackListClientsResponse creates a response to parse from DescribeBlackListClients response
+func CreateDescribeBlackListClientsResponse() (response *DescribeBlackListClientsResponse) {
+	response = &DescribeBlackListClientsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 9 - 57
services/nas/describe_file_systems.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,69 +76,21 @@ func (client *Client) DescribeFileSystemsWithCallback(request *DescribeFileSyste
 // DescribeFileSystemsRequest is the request struct for api DescribeFileSystems
 // DescribeFileSystemsRequest is the request struct for api DescribeFileSystems
 type DescribeFileSystemsRequest struct {
 type DescribeFileSystemsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId   string           `position:"Query" name:"FileSystemId"`
-	FileSystemType string           `position:"Query" name:"FileSystemType"`
 	VpcId          string           `position:"Query" name:"VpcId"`
 	VpcId          string           `position:"Query" name:"VpcId"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
+	FileSystemType string           `position:"Query" name:"FileSystemType"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
+	FileSystemId   string           `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // DescribeFileSystemsResponse is the response struct for api DescribeFileSystems
 // DescribeFileSystemsResponse is the response struct for api DescribeFileSystems
 type DescribeFileSystemsResponse struct {
 type DescribeFileSystemsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId   string                          `json:"RequestId" xml:"RequestId"`
-	TotalCount  int                             `json:"TotalCount" xml:"TotalCount"`
-	PageSize    int                             `json:"PageSize" xml:"PageSize"`
-	PageNumber  int                             `json:"PageNumber" xml:"PageNumber"`
-	FileSystems DescribeFileSystemsFileSystems0 `json:"FileSystems" xml:"FileSystems"`
-}
-
-type DescribeFileSystemsFileSystems0 struct {
-	FileSystem []DescribeFileSystemsFileSystem1 `json:"FileSystem" xml:"FileSystem"`
-}
-
-type DescribeFileSystemsFileSystem1 struct {
-	FileSystemId string                           `json:"FileSystemId" xml:"FileSystemId"`
-	Description  string                           `json:"Description" xml:"Description"`
-	CreateTime   string                           `json:"CreateTime" xml:"CreateTime"`
-	RegionId     string                           `json:"RegionId" xml:"RegionId"`
-	ProtocolType string                           `json:"ProtocolType" xml:"ProtocolType"`
-	StorageType  string                           `json:"StorageType" xml:"StorageType"`
-	MeteredSize  int64                            `json:"MeteredSize" xml:"MeteredSize"`
-	ZoneId       string                           `json:"ZoneId" xml:"ZoneId"`
-	Bandwidth    int64                            `json:"Bandwidth" xml:"Bandwidth"`
-	Capacity     int64                            `json:"Capacity" xml:"Capacity"`
-	Status       string                           `json:"Status" xml:"Status"`
-	MountTargets DescribeFileSystemsMountTargets2 `json:"MountTargets" xml:"MountTargets"`
-	Packages     DescribeFileSystemsPackages2     `json:"Packages" xml:"Packages"`
-	Ldap         DescribeFileSystemsLdap2         `json:"Ldap" xml:"Ldap"`
-}
-
-type DescribeFileSystemsMountTargets2 struct {
-	MountTarget []DescribeFileSystemsMountTarget3 `json:"MountTarget" xml:"MountTarget"`
-}
-
-type DescribeFileSystemsMountTarget3 struct {
-	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
-	NetworkType       string `json:"NetworkType" xml:"NetworkType"`
-	VpcId             string `json:"VpcId" xml:"VpcId"`
-	VswId             string `json:"VswId" xml:"VswId"`
-	AccessGroupName   string `json:"AccessGroupName" xml:"AccessGroupName"`
-	Status            string `json:"Status" xml:"Status"`
-}
-
-type DescribeFileSystemsPackages2 struct {
-	Package []DescribeFileSystemsPackage3 `json:"Package" xml:"Package"`
-}
-
-type DescribeFileSystemsPackage3 struct {
-	PackageId string `json:"PackageId" xml:"PackageId"`
-}
-
-type DescribeFileSystemsLdap2 struct {
-	BindDN     string `json:"BindDN" xml:"BindDN"`
-	URI        string `json:"URI" xml:"URI"`
-	SearchBase string `json:"SearchBase" xml:"SearchBase"`
+	RequestId   string      `json:"RequestId" xml:"RequestId"`
+	TotalCount  int         `json:"TotalCount" xml:"TotalCount"`
+	PageSize    int         `json:"PageSize" xml:"PageSize"`
+	PageNumber  int         `json:"PageNumber" xml:"PageNumber"`
+	FileSystems FileSystems `json:"FileSystems" xml:"FileSystems"`
 }
 }
 
 
 // CreateDescribeFileSystemsRequest creates a request to invoke DescribeFileSystems API
 // CreateDescribeFileSystemsRequest creates a request to invoke DescribeFileSystems API

+ 4 - 10
services/nas/describe_ldap_config.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -82,14 +82,8 @@ type DescribeLDAPConfigRequest struct {
 // DescribeLDAPConfigResponse is the response struct for api DescribeLDAPConfig
 // DescribeLDAPConfigResponse is the response struct for api DescribeLDAPConfig
 type DescribeLDAPConfigResponse struct {
 type DescribeLDAPConfigResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId string                  `json:"RequestId" xml:"RequestId"`
-	Ldap      DescribeLDAPConfigLdap0 `json:"Ldap" xml:"Ldap"`
-}
-
-type DescribeLDAPConfigLdap0 struct {
-	BindDN     string `json:"BindDN" xml:"BindDN"`
-	URI        string `json:"URI" xml:"URI"`
-	SearchBase string `json:"SearchBase" xml:"SearchBase"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Ldap      Ldap   `json:"Ldap" xml:"Ldap"`
 }
 }
 
 
 // CreateDescribeLDAPConfigRequest creates a request to invoke DescribeLDAPConfig API
 // CreateDescribeLDAPConfigRequest creates a request to invoke DescribeLDAPConfig API

+ 8 - 21
services/nas/describe_mount_targets.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,33 +76,20 @@ func (client *Client) DescribeMountTargetsWithCallback(request *DescribeMountTar
 // DescribeMountTargetsRequest is the request struct for api DescribeMountTargets
 // DescribeMountTargetsRequest is the request struct for api DescribeMountTargets
 type DescribeMountTargetsRequest struct {
 type DescribeMountTargetsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId      string           `position:"Query" name:"FileSystemId"`
 	MountTargetDomain string           `position:"Query" name:"MountTargetDomain"`
 	MountTargetDomain string           `position:"Query" name:"MountTargetDomain"`
 	PageSize          requests.Integer `position:"Query" name:"PageSize"`
 	PageSize          requests.Integer `position:"Query" name:"PageSize"`
 	PageNumber        requests.Integer `position:"Query" name:"PageNumber"`
 	PageNumber        requests.Integer `position:"Query" name:"PageNumber"`
+	FileSystemId      string           `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // DescribeMountTargetsResponse is the response struct for api DescribeMountTargets
 // DescribeMountTargetsResponse is the response struct for api DescribeMountTargets
 type DescribeMountTargetsResponse struct {
 type DescribeMountTargetsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId    string                            `json:"RequestId" xml:"RequestId"`
-	TotalCount   int                               `json:"TotalCount" xml:"TotalCount"`
-	PageSize     int                               `json:"PageSize" xml:"PageSize"`
-	PageNumber   int                               `json:"PageNumber" xml:"PageNumber"`
-	MountTargets DescribeMountTargetsMountTargets0 `json:"MountTargets" xml:"MountTargets"`
-}
-
-type DescribeMountTargetsMountTargets0 struct {
-	MountTarget []DescribeMountTargetsMountTarget1 `json:"MountTarget" xml:"MountTarget"`
-}
-
-type DescribeMountTargetsMountTarget1 struct {
-	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
-	NetworkType       string `json:"NetworkType" xml:"NetworkType"`
-	VpcId             string `json:"VpcId" xml:"VpcId"`
-	VswId             string `json:"VswId" xml:"VswId"`
-	AccessGroup       string `json:"AccessGroup" xml:"AccessGroup"`
-	Status            string `json:"Status" xml:"Status"`
+	RequestId    string                             `json:"RequestId" xml:"RequestId"`
+	TotalCount   int                                `json:"TotalCount" xml:"TotalCount"`
+	PageSize     int                                `json:"PageSize" xml:"PageSize"`
+	PageNumber   int                                `json:"PageNumber" xml:"PageNumber"`
+	MountTargets MountTargetsInDescribeMountTargets `json:"MountTargets" xml:"MountTargets"`
 }
 }
 
 
 // CreateDescribeMountTargetsRequest creates a request to invoke DescribeMountTargets API
 // CreateDescribeMountTargetsRequest creates a request to invoke DescribeMountTargets API

+ 8 - 18
services/nas/describe_regions.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,28 +77,18 @@ func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsReques
 type DescribeRegionsRequest struct {
 type DescribeRegionsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
-	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
 	FileSystemType string           `position:"Query" name:"FileSystemType"`
 	FileSystemType string           `position:"Query" name:"FileSystemType"`
+	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
 }
 }
 
 
 // DescribeRegionsResponse is the response struct for api DescribeRegions
 // DescribeRegionsResponse is the response struct for api DescribeRegions
 type DescribeRegionsResponse struct {
 type DescribeRegionsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId  string                  `json:"RequestId" xml:"RequestId"`
-	TotalCount int                     `json:"TotalCount" xml:"TotalCount"`
-	PageSize   int                     `json:"PageSize" xml:"PageSize"`
-	PageNumber int                     `json:"PageNumber" xml:"PageNumber"`
-	Regions    DescribeRegionsRegions0 `json:"Regions" xml:"Regions"`
-}
-
-type DescribeRegionsRegions0 struct {
-	Region []DescribeRegionsRegion1 `json:"Region" xml:"Region"`
-}
-
-type DescribeRegionsRegion1 struct {
-	RegionId       string `json:"RegionId" xml:"RegionId"`
-	LocalName      string `json:"LocalName" xml:"LocalName"`
-	RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"`
+	RequestId  string  `json:"RequestId" xml:"RequestId"`
+	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
+	PageSize   int     `json:"PageSize" xml:"PageSize"`
+	PageNumber int     `json:"PageNumber" xml:"PageNumber"`
+	Regions    Regions `json:"Regions" xml:"Regions"`
 }
 }
 
 
 // CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API
 // CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API

+ 12 - 29
services/nas/describe_snapshots.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,41 +76,24 @@ func (client *Client) DescribeSnapshotsWithCallback(request *DescribeSnapshotsRe
 // DescribeSnapshotsRequest is the request struct for api DescribeSnapshots
 // DescribeSnapshotsRequest is the request struct for api DescribeSnapshots
 type DescribeSnapshotsRequest struct {
 type DescribeSnapshotsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemType string           `position:"Query" name:"FileSystemType"`
-	FileSystemId   string           `position:"Query" name:"FileSystemId"`
-	SnapshotIds    string           `position:"Query" name:"SnapshotIds"`
-	SnapshotName   string           `position:"Query" name:"SnapshotName"`
 	SnapshotType   string           `position:"Query" name:"SnapshotType"`
 	SnapshotType   string           `position:"Query" name:"SnapshotType"`
-	Status         string           `position:"Query" name:"Status"`
+	SnapshotIds    string           `position:"Query" name:"SnapshotIds"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
+	SnapshotName   string           `position:"Query" name:"SnapshotName"`
+	FileSystemType string           `position:"Query" name:"FileSystemType"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
+	FileSystemId   string           `position:"Query" name:"FileSystemId"`
+	Status         string           `position:"Query" name:"Status"`
 }
 }
 
 
 // DescribeSnapshotsResponse is the response struct for api DescribeSnapshots
 // DescribeSnapshotsResponse is the response struct for api DescribeSnapshots
 type DescribeSnapshotsResponse struct {
 type DescribeSnapshotsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId  string                      `json:"RequestId" xml:"RequestId"`
-	TotalCount int                         `json:"TotalCount" xml:"TotalCount"`
-	PageSize   int                         `json:"PageSize" xml:"PageSize"`
-	PageNumber int                         `json:"PageNumber" xml:"PageNumber"`
-	Snapshots  DescribeSnapshotsSnapshots0 `json:"Snapshots" xml:"Snapshots"`
-}
-
-type DescribeSnapshotsSnapshots0 struct {
-	Snapshot []DescribeSnapshotsSnapshot1 `json:"Snapshot" xml:"Snapshot"`
-}
-
-type DescribeSnapshotsSnapshot1 struct {
-	CreateTime           string `json:"CreateTime" xml:"CreateTime"`
-	Description          string `json:"Description" xml:"Description"`
-	Progress             string `json:"Progress" xml:"Progress"`
-	RemainTime           int    `json:"RemainTime" xml:"RemainTime"`
-	RetentionDays        int    `json:"RetentionDays" xml:"RetentionDays"`
-	SnapshotId           string `json:"SnapshotId" xml:"SnapshotId"`
-	SnapshotName         string `json:"SnapshotName" xml:"SnapshotName"`
-	SourceFileSystemId   string `json:"SourceFileSystemId" xml:"SourceFileSystemId"`
-	SourceFileSystemSize int64  `json:"SourceFileSystemSize" xml:"SourceFileSystemSize"`
-	Status               string `json:"Status" xml:"Status"`
+	RequestId  string    `json:"RequestId" xml:"RequestId"`
+	TotalCount int       `json:"TotalCount" xml:"TotalCount"`
+	PageSize   int       `json:"PageSize" xml:"PageSize"`
+	PageNumber int       `json:"PageNumber" xml:"PageNumber"`
+	Snapshots  Snapshots `json:"Snapshots" xml:"Snapshots"`
 }
 }
 
 
 // CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API
 // CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API

+ 11 - 24
services/nas/describe_tags.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,39 +76,26 @@ func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, cal
 // DescribeTagsRequest is the request struct for api DescribeTags
 // DescribeTagsRequest is the request struct for api DescribeTags
 type DescribeTagsRequest struct {
 type DescribeTagsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId string             `position:"Query" name:"FileSystemId"`
 	PageSize     requests.Integer   `position:"Query" name:"PageSize"`
 	PageSize     requests.Integer   `position:"Query" name:"PageSize"`
+	Tag          *[]DescribeTagsTag `position:"Query" name:"Tag"  type:"Repeated"`
 	PageNumber   requests.Integer   `position:"Query" name:"PageNumber"`
 	PageNumber   requests.Integer   `position:"Query" name:"PageNumber"`
-	Tag          *[]DescribeTagsTag `position:"Query" name:"Tag" type:"Repeated"`
+	FileSystemId string             `position:"Query" name:"FileSystemId"`
 }
 }
 
 
+// DescribeTagsTag is a repeated param struct in DescribeTagsRequest
 type DescribeTagsTag struct {
 type DescribeTagsTag struct {
-	Key   string `name:"Key"`
 	Value string `name:"Value"`
 	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 }
 
 
 // DescribeTagsResponse is the response struct for api DescribeTags
 // DescribeTagsResponse is the response struct for api DescribeTags
 type DescribeTagsResponse struct {
 type DescribeTagsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId  string            `json:"RequestId" xml:"RequestId"`
-	TotalCount int               `json:"TotalCount" xml:"TotalCount"`
-	PageSize   int               `json:"PageSize" xml:"PageSize"`
-	PageNumber int               `json:"PageNumber" xml:"PageNumber"`
-	Tags       DescribeTagsTags0 `json:"Tags" xml:"Tags"`
-}
-
-type DescribeTagsTags0 struct {
-	Tag []DescribeTagsTag1 `json:"Tag" xml:"Tag"`
-}
-
-type DescribeTagsTag1 struct {
-	Key           string                     `json:"Key" xml:"Key"`
-	Value         string                     `json:"Value" xml:"Value"`
-	FileSystemIds DescribeTagsFileSystemIds2 `json:"FileSystemIds" xml:"FileSystemIds"`
-}
-
-type DescribeTagsFileSystemIds2 struct {
-	FileSystemId []string `json:"FileSystemId" xml:"FileSystemId"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
+	PageSize   int    `json:"PageSize" xml:"PageSize"`
+	PageNumber int    `json:"PageNumber" xml:"PageNumber"`
+	Tags       Tags   `json:"Tags" xml:"Tags"`
 }
 }
 
 
 // CreateDescribeTagsRequest creates a request to invoke DescribeTags API
 // CreateDescribeTagsRequest creates a request to invoke DescribeTags API

+ 0 - 125
services/nas/describe_tiering_jobs.go

@@ -1,125 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeTieringJobs invokes the nas.DescribeTieringJobs API synchronously
-// api document: https://help.aliyun.com/api/nas/describetieringjobs.html
-func (client *Client) DescribeTieringJobs(request *DescribeTieringJobsRequest) (response *DescribeTieringJobsResponse, err error) {
-	response = CreateDescribeTieringJobsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeTieringJobsWithChan invokes the nas.DescribeTieringJobs API asynchronously
-// api document: https://help.aliyun.com/api/nas/describetieringjobs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTieringJobsWithChan(request *DescribeTieringJobsRequest) (<-chan *DescribeTieringJobsResponse, <-chan error) {
-	responseChan := make(chan *DescribeTieringJobsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeTieringJobs(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeTieringJobsWithCallback invokes the nas.DescribeTieringJobs API asynchronously
-// api document: https://help.aliyun.com/api/nas/describetieringjobs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTieringJobsWithCallback(request *DescribeTieringJobsRequest, callback func(response *DescribeTieringJobsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeTieringJobsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeTieringJobs(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeTieringJobsRequest is the request struct for api DescribeTieringJobs
-type DescribeTieringJobsRequest struct {
-	*requests.RpcRequest
-	Volume string `position:"Query" name:"Volume"`
-}
-
-// DescribeTieringJobsResponse is the response struct for api DescribeTieringJobs
-type DescribeTieringJobsResponse struct {
-	*responses.BaseResponse
-	RequestId   string                          `json:"RequestId" xml:"RequestId"`
-	TotalCount  int                             `json:"TotalCount" xml:"TotalCount"`
-	PageSize    int                             `json:"PageSize" xml:"PageSize"`
-	PageNumber  int                             `json:"PageNumber" xml:"PageNumber"`
-	TieringJobs DescribeTieringJobsTieringJobs0 `json:"TieringJobs" xml:"TieringJobs"`
-}
-
-type DescribeTieringJobsTieringJobs0 struct {
-	TieringJob []DescribeTieringJobsTieringJob1 `json:"TieringJob" xml:"TieringJob"`
-}
-
-type DescribeTieringJobsTieringJob1 struct {
-	Name           string `json:"Name" xml:"Name"`
-	Volume         string `json:"Volume" xml:"Volume"`
-	Path           string `json:"Path" xml:"Path"`
-	Recursive      bool   `json:"Recursive" xml:"Recursive"`
-	Type           string `json:"Type" xml:"Type"`
-	Policy         string `json:"Policy" xml:"Policy"`
-	Weekday        int    `json:"Weekday" xml:"Weekday"`
-	Hour           int    `json:"Hour" xml:"Hour"`
-	Enabled        bool   `json:"Enabled" xml:"Enabled"`
-	Status         string `json:"Status" xml:"Status"`
-	LastUpdateTime int64  `json:"LastUpdateTime" xml:"LastUpdateTime"`
-}
-
-// CreateDescribeTieringJobsRequest creates a request to invoke DescribeTieringJobs API
-func CreateDescribeTieringJobsRequest() (request *DescribeTieringJobsRequest) {
-	request = &DescribeTieringJobsRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "DescribeTieringJobs", "nas", "openAPI")
-	return
-}
-
-// CreateDescribeTieringJobsResponse creates a response to parse from DescribeTieringJobs response
-func CreateDescribeTieringJobsResponse() (response *DescribeTieringJobsResponse) {
-	response = &DescribeTieringJobsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 122
services/nas/describe_tiering_policies.go

@@ -1,122 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeTieringPolicies invokes the nas.DescribeTieringPolicies API synchronously
-// api document: https://help.aliyun.com/api/nas/describetieringpolicies.html
-func (client *Client) DescribeTieringPolicies(request *DescribeTieringPoliciesRequest) (response *DescribeTieringPoliciesResponse, err error) {
-	response = CreateDescribeTieringPoliciesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeTieringPoliciesWithChan invokes the nas.DescribeTieringPolicies API asynchronously
-// api document: https://help.aliyun.com/api/nas/describetieringpolicies.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTieringPoliciesWithChan(request *DescribeTieringPoliciesRequest) (<-chan *DescribeTieringPoliciesResponse, <-chan error) {
-	responseChan := make(chan *DescribeTieringPoliciesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeTieringPolicies(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeTieringPoliciesWithCallback invokes the nas.DescribeTieringPolicies API asynchronously
-// api document: https://help.aliyun.com/api/nas/describetieringpolicies.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTieringPoliciesWithCallback(request *DescribeTieringPoliciesRequest, callback func(response *DescribeTieringPoliciesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeTieringPoliciesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeTieringPolicies(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeTieringPoliciesRequest is the request struct for api DescribeTieringPolicies
-type DescribeTieringPoliciesRequest struct {
-	*requests.RpcRequest
-}
-
-// DescribeTieringPoliciesResponse is the response struct for api DescribeTieringPolicies
-type DescribeTieringPoliciesResponse struct {
-	*responses.BaseResponse
-	RequestId       string                                  `json:"RequestId" xml:"RequestId"`
-	TotalCount      int                                     `json:"TotalCount" xml:"TotalCount"`
-	PageSize        int                                     `json:"PageSize" xml:"PageSize"`
-	PageNumber      int                                     `json:"PageNumber" xml:"PageNumber"`
-	TieringPolicies DescribeTieringPoliciesTieringPolicies0 `json:"TieringPolicies" xml:"TieringPolicies"`
-}
-
-type DescribeTieringPoliciesTieringPolicies0 struct {
-	TieringPolicy []DescribeTieringPoliciesTieringPolicy1 `json:"TieringPolicy" xml:"TieringPolicy"`
-}
-
-type DescribeTieringPoliciesTieringPolicy1 struct {
-	Name        string `json:"Name" xml:"Name"`
-	Description string `json:"Description" xml:"Description"`
-	RefCount    int    `json:"RefCount" xml:"RefCount"`
-	Mtime       int64  `json:"Mtime" xml:"Mtime"`
-	Atime       int64  `json:"Atime" xml:"Atime"`
-	Ctime       int64  `json:"Ctime" xml:"Ctime"`
-	Size        int64  `json:"Size" xml:"Size"`
-	FileName    string `json:"FileName" xml:"FileName"`
-	RecallTime  int64  `json:"RecallTime" xml:"RecallTime"`
-}
-
-// CreateDescribeTieringPoliciesRequest creates a request to invoke DescribeTieringPolicies API
-func CreateDescribeTieringPoliciesRequest() (request *DescribeTieringPoliciesRequest) {
-	request = &DescribeTieringPoliciesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "DescribeTieringPolicies", "nas", "openAPI")
-	return
-}
-
-// CreateDescribeTieringPoliciesResponse creates a response to parse from DescribeTieringPolicies response
-func CreateDescribeTieringPoliciesResponse() (response *DescribeTieringPoliciesResponse) {
-	response = &DescribeTieringPoliciesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 4 - 23
services/nas/describe_zones.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,32 +76,13 @@ func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, c
 // DescribeZonesRequest is the request struct for api DescribeZones
 // DescribeZonesRequest is the request struct for api DescribeZones
 type DescribeZonesRequest struct {
 type DescribeZonesRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	RegionId string `position:"Query" name:"RegionId"`
 }
 }
 
 
 // DescribeZonesResponse is the response struct for api DescribeZones
 // DescribeZonesResponse is the response struct for api DescribeZones
 type DescribeZonesResponse struct {
 type DescribeZonesResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	RequestId string              `json:"RequestId" xml:"RequestId"`
-	Zones     DescribeZonesZones0 `json:"Zones" xml:"Zones"`
-}
-
-type DescribeZonesZones0 struct {
-	Zone []DescribeZonesZone1 `json:"Zone" xml:"Zone"`
-}
-
-type DescribeZonesZone1 struct {
-	ZoneId      string                    `json:"ZoneId" xml:"ZoneId"`
-	Capacity    DescribeZonesCapacity2    `json:"Capacity" xml:"Capacity"`
-	Performance DescribeZonesPerformance2 `json:"Performance" xml:"Performance"`
-}
-
-type DescribeZonesCapacity2 struct {
-	Protocol []string `json:"Protocol" xml:"Protocol"`
-}
-
-type DescribeZonesPerformance2 struct {
-	Protocol []string `json:"Protocol" xml:"Protocol"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Zones     Zones  `json:"Zones" xml:"Zones"`
 }
 }
 
 
 // CreateDescribeZonesRequest creates a request to invoke DescribeZones API
 // CreateDescribeZonesRequest creates a request to invoke DescribeZones API

+ 23 - 0
services/nas/endpoint.go

@@ -0,0 +1,23 @@
+package nas
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{
+			"me-east-1":  "nas.ap-northeast-1.aliyuncs.com",
+			"cn-chengdu": "nas.aliyuncs.com",
+		}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 3 - 3
services/nas/modify_access_group.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,8 +76,8 @@ func (client *Client) ModifyAccessGroupWithCallback(request *ModifyAccessGroupRe
 // ModifyAccessGroupRequest is the request struct for api ModifyAccessGroup
 // ModifyAccessGroupRequest is the request struct for api ModifyAccessGroup
 type ModifyAccessGroupRequest struct {
 type ModifyAccessGroupRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AccessGroupName string `position:"Query" name:"AccessGroupName"`
 	Description     string `position:"Query" name:"Description"`
 	Description     string `position:"Query" name:"Description"`
+	AccessGroupName string `position:"Query" name:"AccessGroupName"`
 	FileSystemType  string `position:"Query" name:"FileSystemType"`
 	FileSystemType  string `position:"Query" name:"FileSystemType"`
 }
 }
 
 

+ 5 - 5
services/nas/modify_access_rule.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,12 @@ func (client *Client) ModifyAccessRuleWithCallback(request *ModifyAccessRuleRequ
 // ModifyAccessRuleRequest is the request struct for api ModifyAccessRule
 // ModifyAccessRuleRequest is the request struct for api ModifyAccessRule
 type ModifyAccessRuleRequest struct {
 type ModifyAccessRuleRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
-	AccessRuleId    string           `position:"Query" name:"AccessRuleId"`
-	SourceCidrIp    string           `position:"Query" name:"SourceCidrIp"`
 	RWAccessType    string           `position:"Query" name:"RWAccessType"`
 	RWAccessType    string           `position:"Query" name:"RWAccessType"`
+	SourceCidrIp    string           `position:"Query" name:"SourceCidrIp"`
 	UserAccessType  string           `position:"Query" name:"UserAccessType"`
 	UserAccessType  string           `position:"Query" name:"UserAccessType"`
 	Priority        requests.Integer `position:"Query" name:"Priority"`
 	Priority        requests.Integer `position:"Query" name:"Priority"`
+	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
+	AccessRuleId    string           `position:"Query" name:"AccessRuleId"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 	FileSystemType  string           `position:"Query" name:"FileSystemType"`
 }
 }
 
 

+ 4 - 4
services/nas/modify_auto_snapshot_policy.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,10 +77,10 @@ func (client *Client) ModifyAutoSnapshotPolicyWithCallback(request *ModifyAutoSn
 type ModifyAutoSnapshotPolicyRequest struct {
 type ModifyAutoSnapshotPolicyRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	AutoSnapshotPolicyId   string           `position:"Query" name:"AutoSnapshotPolicyId"`
 	AutoSnapshotPolicyId   string           `position:"Query" name:"AutoSnapshotPolicyId"`
-	AutoSnapshotPolicyName string           `position:"Query" name:"AutoSnapshotPolicyName"`
-	RepeatWeekdays         string           `position:"Query" name:"RepeatWeekdays"`
 	RetentionDays          requests.Integer `position:"Query" name:"RetentionDays"`
 	RetentionDays          requests.Integer `position:"Query" name:"RetentionDays"`
 	TimePoints             string           `position:"Query" name:"TimePoints"`
 	TimePoints             string           `position:"Query" name:"TimePoints"`
+	RepeatWeekdays         string           `position:"Query" name:"RepeatWeekdays"`
+	AutoSnapshotPolicyName string           `position:"Query" name:"AutoSnapshotPolicyName"`
 }
 }
 
 
 // ModifyAutoSnapshotPolicyResponse is the response struct for api ModifyAutoSnapshotPolicy
 // ModifyAutoSnapshotPolicyResponse is the response struct for api ModifyAutoSnapshotPolicy

+ 3 - 3
services/nas/modify_file_system.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,8 +76,8 @@ func (client *Client) ModifyFileSystemWithCallback(request *ModifyFileSystemRequ
 // ModifyFileSystemRequest is the request struct for api ModifyFileSystem
 // ModifyFileSystemRequest is the request struct for api ModifyFileSystem
 type ModifyFileSystemRequest struct {
 type ModifyFileSystemRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId string `position:"Query" name:"FileSystemId"`
 	Description  string `position:"Query" name:"Description"`
 	Description  string `position:"Query" name:"Description"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // ModifyFileSystemResponse is the response struct for api ModifyFileSystem
 // ModifyFileSystemResponse is the response struct for api ModifyFileSystem

+ 4 - 4
services/nas/modify_ldap_config.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,10 @@ func (client *Client) ModifyLDAPConfigWithCallback(request *ModifyLDAPConfigRequ
 // ModifyLDAPConfigRequest is the request struct for api ModifyLDAPConfig
 // ModifyLDAPConfigRequest is the request struct for api ModifyLDAPConfig
 type ModifyLDAPConfigRequest struct {
 type ModifyLDAPConfigRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId string `position:"Query" name:"FileSystemId"`
-	URI          string `position:"Query" name:"URI"`
 	BindDN       string `position:"Query" name:"BindDN"`
 	BindDN       string `position:"Query" name:"BindDN"`
 	SearchBase   string `position:"Query" name:"SearchBase"`
 	SearchBase   string `position:"Query" name:"SearchBase"`
+	URI          string `position:"Query" name:"URI"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
 }
 }
 
 
 // ModifyLDAPConfigResponse is the response struct for api ModifyLDAPConfig
 // ModifyLDAPConfigResponse is the response struct for api ModifyLDAPConfig

+ 3 - 3
services/nas/modify_mount_target.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,9 @@ func (client *Client) ModifyMountTargetWithCallback(request *ModifyMountTargetRe
 // ModifyMountTargetRequest is the request struct for api ModifyMountTarget
 // ModifyMountTargetRequest is the request struct for api ModifyMountTarget
 type ModifyMountTargetRequest struct {
 type ModifyMountTargetRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	FileSystemId      string `position:"Query" name:"FileSystemId"`
 	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
 	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
 	AccessGroupName   string `position:"Query" name:"AccessGroupName"`
 	AccessGroupName   string `position:"Query" name:"AccessGroupName"`
+	FileSystemId      string `position:"Query" name:"FileSystemId"`
 	Status            string `position:"Query" name:"Status"`
 	Status            string `position:"Query" name:"Status"`
 }
 }
 
 

+ 0 - 112
services/nas/modify_tiering_job.go

@@ -1,112 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// ModifyTieringJob invokes the nas.ModifyTieringJob API synchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringjob.html
-func (client *Client) ModifyTieringJob(request *ModifyTieringJobRequest) (response *ModifyTieringJobResponse, err error) {
-	response = CreateModifyTieringJobResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyTieringJobWithChan invokes the nas.ModifyTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyTieringJobWithChan(request *ModifyTieringJobRequest) (<-chan *ModifyTieringJobResponse, <-chan error) {
-	responseChan := make(chan *ModifyTieringJobResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyTieringJob(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyTieringJobWithCallback invokes the nas.ModifyTieringJob API asynchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringjob.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyTieringJobWithCallback(request *ModifyTieringJobRequest, callback func(response *ModifyTieringJobResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyTieringJobResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyTieringJob(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyTieringJobRequest is the request struct for api ModifyTieringJob
-type ModifyTieringJobRequest struct {
-	*requests.RpcRequest
-	Volume    string           `position:"Query" name:"Volume"`
-	Name      string           `position:"Query" name:"Name"`
-	Type      string           `position:"Query" name:"Type"`
-	Path      string           `position:"Query" name:"Path"`
-	Recursive requests.Boolean `position:"Query" name:"Recursive"`
-	Policy    string           `position:"Query" name:"Policy"`
-	Weekday   requests.Integer `position:"Query" name:"Weekday"`
-	Hour      requests.Integer `position:"Query" name:"Hour"`
-	Enabled   requests.Boolean `position:"Query" name:"Enabled"`
-}
-
-// ModifyTieringJobResponse is the response struct for api ModifyTieringJob
-type ModifyTieringJobResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateModifyTieringJobRequest creates a request to invoke ModifyTieringJob API
-func CreateModifyTieringJobRequest() (request *ModifyTieringJobRequest) {
-	request = &ModifyTieringJobRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "ModifyTieringJob", "nas", "openAPI")
-	return
-}
-
-// CreateModifyTieringJobResponse creates a response to parse from ModifyTieringJob response
-func CreateModifyTieringJobResponse() (response *ModifyTieringJobResponse) {
-	response = &ModifyTieringJobResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 111
services/nas/modify_tiering_policy.go

@@ -1,111 +0,0 @@
-//Licensed 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.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-package nas
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// ModifyTieringPolicy invokes the nas.ModifyTieringPolicy API synchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringpolicy.html
-func (client *Client) ModifyTieringPolicy(request *ModifyTieringPolicyRequest) (response *ModifyTieringPolicyResponse, err error) {
-	response = CreateModifyTieringPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyTieringPolicyWithChan invokes the nas.ModifyTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyTieringPolicyWithChan(request *ModifyTieringPolicyRequest) (<-chan *ModifyTieringPolicyResponse, <-chan error) {
-	responseChan := make(chan *ModifyTieringPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyTieringPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyTieringPolicyWithCallback invokes the nas.ModifyTieringPolicy API asynchronously
-// api document: https://help.aliyun.com/api/nas/modifytieringpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyTieringPolicyWithCallback(request *ModifyTieringPolicyRequest, callback func(response *ModifyTieringPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyTieringPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyTieringPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyTieringPolicyRequest is the request struct for api ModifyTieringPolicy
-type ModifyTieringPolicyRequest struct {
-	*requests.RpcRequest
-	Name        string           `position:"Query" name:"Name"`
-	Description string           `position:"Query" name:"Description"`
-	Mtime       requests.Integer `position:"Query" name:"Mtime"`
-	Atime       requests.Integer `position:"Query" name:"Atime"`
-	Ctime       requests.Integer `position:"Query" name:"Ctime"`
-	Size        requests.Integer `position:"Query" name:"Size"`
-	FileName    string           `position:"Query" name:"FileName"`
-	RecallTime  requests.Integer `position:"Query" name:"RecallTime"`
-}
-
-// ModifyTieringPolicyResponse is the response struct for api ModifyTieringPolicy
-type ModifyTieringPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-}
-
-// CreateModifyTieringPolicyRequest creates a request to invoke ModifyTieringPolicy API
-func CreateModifyTieringPolicyRequest() (request *ModifyTieringPolicyRequest) {
-	request = &ModifyTieringPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("NAS", "2017-06-26", "ModifyTieringPolicy", "nas", "openAPI")
-	return
-}
-
-// CreateModifyTieringPolicyResponse creates a response to parse from ModifyTieringPolicy response
-func CreateModifyTieringPolicyResponse() (response *ModifyTieringPolicyResponse) {
-	response = &ModifyTieringPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 105 - 0
services/nas/remove_client_from_black_list.go

@@ -0,0 +1,105 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// RemoveClientFromBlackList invokes the nas.RemoveClientFromBlackList API synchronously
+// api document: https://help.aliyun.com/api/nas/removeclientfromblacklist.html
+func (client *Client) RemoveClientFromBlackList(request *RemoveClientFromBlackListRequest) (response *RemoveClientFromBlackListResponse, err error) {
+	response = CreateRemoveClientFromBlackListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RemoveClientFromBlackListWithChan invokes the nas.RemoveClientFromBlackList API asynchronously
+// api document: https://help.aliyun.com/api/nas/removeclientfromblacklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RemoveClientFromBlackListWithChan(request *RemoveClientFromBlackListRequest) (<-chan *RemoveClientFromBlackListResponse, <-chan error) {
+	responseChan := make(chan *RemoveClientFromBlackListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RemoveClientFromBlackList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RemoveClientFromBlackListWithCallback invokes the nas.RemoveClientFromBlackList API asynchronously
+// api document: https://help.aliyun.com/api/nas/removeclientfromblacklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RemoveClientFromBlackListWithCallback(request *RemoveClientFromBlackListRequest, callback func(response *RemoveClientFromBlackListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RemoveClientFromBlackListResponse
+		var err error
+		defer close(result)
+		response, err = client.RemoveClientFromBlackList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RemoveClientFromBlackListRequest is the request struct for api RemoveClientFromBlackList
+type RemoveClientFromBlackListRequest struct {
+	*requests.RpcRequest
+	ClientToken  string `position:"Query" name:"ClientToken"`
+	ClientIP     string `position:"Query" name:"ClientIP"`
+	FileSystemId string `position:"Query" name:"FileSystemId"`
+}
+
+// RemoveClientFromBlackListResponse is the response struct for api RemoveClientFromBlackList
+type RemoveClientFromBlackListResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRemoveClientFromBlackListRequest creates a request to invoke RemoveClientFromBlackList API
+func CreateRemoveClientFromBlackListRequest() (request *RemoveClientFromBlackListRequest) {
+	request = &RemoveClientFromBlackListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("NAS", "2017-06-26", "RemoveClientFromBlackList", "nas", "openAPI")
+	return
+}
+
+// CreateRemoveClientFromBlackListResponse creates a response to parse from RemoveClientFromBlackList response
+func CreateRemoveClientFromBlackListResponse() (response *RemoveClientFromBlackListResponse) {
+	response = &RemoveClientFromBlackListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 4
services/nas/remove_tags.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,13 +76,14 @@ func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callbac
 // RemoveTagsRequest is the request struct for api RemoveTags
 // RemoveTagsRequest is the request struct for api RemoveTags
 type RemoveTagsRequest struct {
 type RemoveTagsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	Tag          *[]RemoveTagsTag `position:"Query" name:"Tag"  type:"Repeated"`
 	FileSystemId string           `position:"Query" name:"FileSystemId"`
 	FileSystemId string           `position:"Query" name:"FileSystemId"`
-	Tag          *[]RemoveTagsTag `position:"Query" name:"Tag" type:"Repeated"`
 }
 }
 
 
+// RemoveTagsTag is a repeated param struct in RemoveTagsRequest
 type RemoveTagsTag struct {
 type RemoveTagsTag struct {
-	Key   string `name:"Key"`
 	Value string `name:"Value"`
 	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 }
 
 
 // RemoveTagsResponse is the response struct for api RemoveTags
 // RemoveTagsResponse is the response struct for api RemoveTags

+ 3 - 3
services/nas/reset_file_system.go

@@ -1,3 +1,5 @@
+package nas
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-package nas
-
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,8 +76,8 @@ func (client *Client) ResetFileSystemWithCallback(request *ResetFileSystemReques
 // ResetFileSystemRequest is the request struct for api ResetFileSystem
 // ResetFileSystemRequest is the request struct for api ResetFileSystem
 type ResetFileSystemRequest struct {
 type ResetFileSystemRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	SnapshotId   string `position:"Query" name:"snapshotId"`
 	FileSystemId string `position:"Query" name:"FileSystemId"`
 	FileSystemId string `position:"Query" name:"FileSystemId"`
-	SnapshotId   string `position:"Query" name:"SnapshotId"`
 }
 }
 
 
 // ResetFileSystemResponse is the response struct for api ResetFileSystem
 // ResetFileSystemResponse is the response struct for api ResetFileSystem

+ 25 - 0
services/nas/struct_access_group.go

@@ -0,0 +1,25 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AccessGroup is a nested struct in nas response
+type AccessGroup struct {
+	AccessGroupName  string `json:"AccessGroupName" xml:"AccessGroupName"`
+	AccessGroupType  string `json:"AccessGroupType" xml:"AccessGroupType"`
+	RuleCount        int    `json:"RuleCount" xml:"RuleCount"`
+	MountTargetCount int    `json:"MountTargetCount" xml:"MountTargetCount"`
+	Description      string `json:"Description" xml:"Description"`
+}

+ 21 - 0
services/nas/struct_access_groups.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AccessGroups is a nested struct in nas response
+type AccessGroups struct {
+	AccessGroup []AccessGroup `json:"AccessGroup" xml:"AccessGroup"`
+}

+ 25 - 0
services/nas/struct_access_rule.go

@@ -0,0 +1,25 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AccessRule is a nested struct in nas response
+type AccessRule struct {
+	SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"`
+	Priority     int    `json:"Priority" xml:"Priority"`
+	AccessRuleId string `json:"AccessRuleId" xml:"AccessRuleId"`
+	RWAccess     string `json:"RWAccess" xml:"RWAccess"`
+	UserAccess   string `json:"UserAccess" xml:"UserAccess"`
+}

+ 21 - 0
services/nas/struct_access_rules.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AccessRules is a nested struct in nas response
+type AccessRules struct {
+	AccessRule []AccessRule `json:"AccessRule" xml:"AccessRule"`
+}

+ 21 - 0
services/nas/struct_auto_snapshot_policies.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AutoSnapshotPolicies is a nested struct in nas response
+type AutoSnapshotPolicies struct {
+	AutoSnapshotPolicy []AutoSnapshotPolicy `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"`
+}

+ 29 - 0
services/nas/struct_auto_snapshot_policy.go

@@ -0,0 +1,29 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AutoSnapshotPolicy is a nested struct in nas response
+type AutoSnapshotPolicy struct {
+	AutoSnapshotPolicyId   string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"`
+	AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"`
+	CreateTime             string `json:"CreateTime" xml:"CreateTime"`
+	FileSystemNums         int    `json:"FileSystemNums" xml:"FileSystemNums"`
+	RegionId               string `json:"RegionId" xml:"RegionId"`
+	RepeatWeekdays         string `json:"RepeatWeekdays" xml:"RepeatWeekdays"`
+	RetentionDays          int    `json:"RetentionDays" xml:"RetentionDays"`
+	Status                 string `json:"Status" xml:"Status"`
+	TimePoints             string `json:"TimePoints" xml:"TimePoints"`
+}

+ 21 - 0
services/nas/struct_capacity.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Capacity is a nested struct in nas response
+type Capacity struct {
+	Protocol []string `json:"Protocol" xml:"Protocol"`
+}

+ 34 - 0
services/nas/struct_file_system.go

@@ -0,0 +1,34 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// FileSystem is a nested struct in nas response
+type FileSystem struct {
+	FileSystemId string                            `json:"FileSystemId" xml:"FileSystemId"`
+	Description  string                            `json:"Description" xml:"Description"`
+	CreateTime   string                            `json:"CreateTime" xml:"CreateTime"`
+	RegionId     string                            `json:"RegionId" xml:"RegionId"`
+	ProtocolType string                            `json:"ProtocolType" xml:"ProtocolType"`
+	StorageType  string                            `json:"StorageType" xml:"StorageType"`
+	MeteredSize  int64                             `json:"MeteredSize" xml:"MeteredSize"`
+	ZoneId       string                            `json:"ZoneId" xml:"ZoneId"`
+	Bandwidth    int64                             `json:"Bandwidth" xml:"Bandwidth"`
+	Capacity     int64                             `json:"Capacity" xml:"Capacity"`
+	Status       string                            `json:"Status" xml:"Status"`
+	Ldap         Ldap                              `json:"Ldap" xml:"Ldap"`
+	MountTargets MountTargetsInDescribeFileSystems `json:"MountTargets" xml:"MountTargets"`
+	Packages     Packages                          `json:"Packages" xml:"Packages"`
+}

+ 21 - 0
services/nas/struct_file_system_ids.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// FileSystemIds is a nested struct in nas response
+type FileSystemIds struct {
+	FileSystemId []string `json:"FileSystemId" xml:"FileSystemId"`
+}

+ 21 - 0
services/nas/struct_file_systems.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// FileSystems is a nested struct in nas response
+type FileSystems struct {
+	FileSystem []FileSystem `json:"FileSystem" xml:"FileSystem"`
+}

+ 23 - 0
services/nas/struct_ldap.go

@@ -0,0 +1,23 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Ldap is a nested struct in nas response
+type Ldap struct {
+	SearchBase string `json:"SearchBase" xml:"SearchBase"`
+	BindDN     string `json:"BindDN" xml:"BindDN"`
+	URI        string `json:"URI" xml:"URI"`
+}

+ 27 - 0
services/nas/struct_mount_target.go

@@ -0,0 +1,27 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MountTarget is a nested struct in nas response
+type MountTarget struct {
+	VswId             string `json:"VswId" xml:"VswId"`
+	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
+	AccessGroup       string `json:"AccessGroup" xml:"AccessGroup"`
+	AccessGroupName   string `json:"AccessGroupName" xml:"AccessGroupName"`
+	NetworkType       string `json:"NetworkType" xml:"NetworkType"`
+	VpcId             string `json:"VpcId" xml:"VpcId"`
+	Status            string `json:"Status" xml:"Status"`
+}

+ 21 - 0
services/nas/struct_mount_targets_in_describe_file_systems.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MountTargetsInDescribeFileSystems is a nested struct in nas response
+type MountTargetsInDescribeFileSystems struct {
+	MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"`
+}

+ 21 - 0
services/nas/struct_mount_targets_in_describe_mount_targets.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MountTargetsInDescribeMountTargets is a nested struct in nas response
+type MountTargetsInDescribeMountTargets struct {
+	MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"`
+}

+ 21 - 0
services/nas/struct_package.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Package is a nested struct in nas response
+type Package struct {
+	PackageId string `json:"PackageId" xml:"PackageId"`
+}

+ 21 - 0
services/nas/struct_packages.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Packages is a nested struct in nas response
+type Packages struct {
+	Package []Package `json:"Package" xml:"Package"`
+}

+ 21 - 0
services/nas/struct_performance.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Performance is a nested struct in nas response
+type Performance struct {
+	Protocol []string `json:"Protocol" xml:"Protocol"`
+}

+ 23 - 0
services/nas/struct_region.go

@@ -0,0 +1,23 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Region is a nested struct in nas response
+type Region struct {
+	RegionId       string `json:"RegionId" xml:"RegionId"`
+	LocalName      string `json:"LocalName" xml:"LocalName"`
+	RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"`
+}

+ 21 - 0
services/nas/struct_regions.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Regions is a nested struct in nas response
+type Regions struct {
+	Region []Region `json:"Region" xml:"Region"`
+}

+ 30 - 0
services/nas/struct_snapshot.go

@@ -0,0 +1,30 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Snapshot is a nested struct in nas response
+type Snapshot struct {
+	CreateTime           string `json:"CreateTime" xml:"CreateTime"`
+	Description          string `json:"Description" xml:"Description"`
+	Progress             string `json:"Progress" xml:"Progress"`
+	RemainTime           int    `json:"RemainTime" xml:"RemainTime"`
+	RetentionDays        int    `json:"RetentionDays" xml:"RetentionDays"`
+	SnapshotId           string `json:"SnapshotId" xml:"SnapshotId"`
+	SnapshotName         string `json:"SnapshotName" xml:"SnapshotName"`
+	SourceFileSystemId   string `json:"SourceFileSystemId" xml:"SourceFileSystemId"`
+	SourceFileSystemSize int64  `json:"SourceFileSystemSize" xml:"SourceFileSystemSize"`
+	Status               string `json:"Status" xml:"Status"`
+}

+ 21 - 0
services/nas/struct_snapshots.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Snapshots is a nested struct in nas response
+type Snapshots struct {
+	Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"`
+}

+ 23 - 0
services/nas/struct_tag.go

@@ -0,0 +1,23 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Tag is a nested struct in nas response
+type Tag struct {
+	Key           string        `json:"Key" xml:"Key"`
+	Value         string        `json:"Value" xml:"Value"`
+	FileSystemIds FileSystemIds `json:"FileSystemIds" xml:"FileSystemIds"`
+}

+ 21 - 0
services/nas/struct_tags.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Tags is a nested struct in nas response
+type Tags struct {
+	Tag []Tag `json:"Tag" xml:"Tag"`
+}

+ 23 - 0
services/nas/struct_zone.go

@@ -0,0 +1,23 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Zone is a nested struct in nas response
+type Zone struct {
+	ZoneId      string      `json:"ZoneId" xml:"ZoneId"`
+	Capacity    Capacity    `json:"Capacity" xml:"Capacity"`
+	Performance Performance `json:"Performance" xml:"Performance"`
+}

+ 21 - 0
services/nas/struct_zones.go

@@ -0,0 +1,21 @@
+package nas
+
+//Licensed 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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Zones is a nested struct in nas response
+type Zones struct {
+	Zone []Zone `json:"Zone" xml:"Zone"`
+}