nas

package
v0.0.0-...-4a3a38f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessGroup

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"`
}

AccessGroup is a nested struct in nas response

type AccessGroups

type AccessGroups struct {
	AccessGroup []AccessGroup `json:"AccessGroup" xml:"AccessGroup"`
}

AccessGroups is a nested struct in nas response

type AccessRule

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"`
}

AccessRule is a nested struct in nas response

type AccessRules

type AccessRules struct {
	AccessRule []AccessRule `json:"AccessRule" xml:"AccessRule"`
}

AccessRules is a nested struct in nas response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) CreateAccessGroup

func (client *Client) CreateAccessGroup(request *CreateAccessGroupRequest) (response *CreateAccessGroupResponse, err error)

CreateAccessGroup invokes the nas.CreateAccessGroup API synchronously api document: https://help.aliyun.com/api/nas/createaccessgroup.html

func (*Client) CreateAccessGroupWithCallback

func (client *Client) CreateAccessGroupWithCallback(request *CreateAccessGroupRequest, callback func(response *CreateAccessGroupResponse, err error)) <-chan int

CreateAccessGroupWithCallback invokes the nas.CreateAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/createaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAccessGroupWithChan

func (client *Client) CreateAccessGroupWithChan(request *CreateAccessGroupRequest) (<-chan *CreateAccessGroupResponse, <-chan error)

CreateAccessGroupWithChan invokes the nas.CreateAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/createaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAccessRule

func (client *Client) CreateAccessRule(request *CreateAccessRuleRequest) (response *CreateAccessRuleResponse, err error)

CreateAccessRule invokes the nas.CreateAccessRule API synchronously api document: https://help.aliyun.com/api/nas/createaccessrule.html

func (*Client) CreateAccessRuleWithCallback

func (client *Client) CreateAccessRuleWithCallback(request *CreateAccessRuleRequest, callback func(response *CreateAccessRuleResponse, err error)) <-chan int

CreateAccessRuleWithCallback invokes the nas.CreateAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/createaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAccessRuleWithChan

func (client *Client) CreateAccessRuleWithChan(request *CreateAccessRuleRequest) (<-chan *CreateAccessRuleResponse, <-chan error)

CreateAccessRuleWithChan invokes the nas.CreateAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/createaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateFileSystem

func (client *Client) CreateFileSystem(request *CreateFileSystemRequest) (response *CreateFileSystemResponse, err error)

CreateFileSystem invokes the nas.CreateFileSystem API synchronously api document: https://help.aliyun.com/api/nas/createfilesystem.html

func (*Client) CreateFileSystemWithCallback

func (client *Client) CreateFileSystemWithCallback(request *CreateFileSystemRequest, callback func(response *CreateFileSystemResponse, err error)) <-chan int

CreateFileSystemWithCallback invokes the nas.CreateFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/createfilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateFileSystemWithChan

func (client *Client) CreateFileSystemWithChan(request *CreateFileSystemRequest) (<-chan *CreateFileSystemResponse, <-chan error)

CreateFileSystemWithChan invokes the nas.CreateFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/createfilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateMountTarget

func (client *Client) CreateMountTarget(request *CreateMountTargetRequest) (response *CreateMountTargetResponse, err error)

CreateMountTarget invokes the nas.CreateMountTarget API synchronously api document: https://help.aliyun.com/api/nas/createmounttarget.html

func (*Client) CreateMountTargetWithCallback

func (client *Client) CreateMountTargetWithCallback(request *CreateMountTargetRequest, callback func(response *CreateMountTargetResponse, err error)) <-chan int

CreateMountTargetWithCallback invokes the nas.CreateMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/createmounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateMountTargetWithChan

func (client *Client) CreateMountTargetWithChan(request *CreateMountTargetRequest) (<-chan *CreateMountTargetResponse, <-chan error)

CreateMountTargetWithChan invokes the nas.CreateMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/createmounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteAccessGroup

func (client *Client) DeleteAccessGroup(request *DeleteAccessGroupRequest) (response *DeleteAccessGroupResponse, err error)

DeleteAccessGroup invokes the nas.DeleteAccessGroup API synchronously api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html

func (*Client) DeleteAccessGroupWithCallback

func (client *Client) DeleteAccessGroupWithCallback(request *DeleteAccessGroupRequest, callback func(response *DeleteAccessGroupResponse, err error)) <-chan int

DeleteAccessGroupWithCallback invokes the nas.DeleteAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteAccessGroupWithChan

func (client *Client) DeleteAccessGroupWithChan(request *DeleteAccessGroupRequest) (<-chan *DeleteAccessGroupResponse, <-chan error)

DeleteAccessGroupWithChan invokes the nas.DeleteAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteAccessRule

func (client *Client) DeleteAccessRule(request *DeleteAccessRuleRequest) (response *DeleteAccessRuleResponse, err error)

DeleteAccessRule invokes the nas.DeleteAccessRule API synchronously api document: https://help.aliyun.com/api/nas/deleteaccessrule.html

func (*Client) DeleteAccessRuleWithCallback

func (client *Client) DeleteAccessRuleWithCallback(request *DeleteAccessRuleRequest, callback func(response *DeleteAccessRuleResponse, err error)) <-chan int

DeleteAccessRuleWithCallback invokes the nas.DeleteAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/deleteaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteAccessRuleWithChan

func (client *Client) DeleteAccessRuleWithChan(request *DeleteAccessRuleRequest) (<-chan *DeleteAccessRuleResponse, <-chan error)

DeleteAccessRuleWithChan invokes the nas.DeleteAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/deleteaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteFileSystem

func (client *Client) DeleteFileSystem(request *DeleteFileSystemRequest) (response *DeleteFileSystemResponse, err error)

DeleteFileSystem invokes the nas.DeleteFileSystem API synchronously api document: https://help.aliyun.com/api/nas/deletefilesystem.html

func (*Client) DeleteFileSystemWithCallback

func (client *Client) DeleteFileSystemWithCallback(request *DeleteFileSystemRequest, callback func(response *DeleteFileSystemResponse, err error)) <-chan int

DeleteFileSystemWithCallback invokes the nas.DeleteFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/deletefilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteFileSystemWithChan

func (client *Client) DeleteFileSystemWithChan(request *DeleteFileSystemRequest) (<-chan *DeleteFileSystemResponse, <-chan error)

DeleteFileSystemWithChan invokes the nas.DeleteFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/deletefilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteMountTarget

func (client *Client) DeleteMountTarget(request *DeleteMountTargetRequest) (response *DeleteMountTargetResponse, err error)

DeleteMountTarget invokes the nas.DeleteMountTarget API synchronously api document: https://help.aliyun.com/api/nas/deletemounttarget.html

func (*Client) DeleteMountTargetWithCallback

func (client *Client) DeleteMountTargetWithCallback(request *DeleteMountTargetRequest, callback func(response *DeleteMountTargetResponse, err error)) <-chan int

DeleteMountTargetWithCallback invokes the nas.DeleteMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/deletemounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteMountTargetWithChan

func (client *Client) DeleteMountTargetWithChan(request *DeleteMountTargetRequest) (<-chan *DeleteMountTargetResponse, <-chan error)

DeleteMountTargetWithChan invokes the nas.DeleteMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/deletemounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeAccessGroups

func (client *Client) DescribeAccessGroups(request *DescribeAccessGroupsRequest) (response *DescribeAccessGroupsResponse, err error)

DescribeAccessGroups invokes the nas.DescribeAccessGroups API synchronously api document: https://help.aliyun.com/api/nas/describeaccessgroups.html

func (*Client) DescribeAccessGroupsWithCallback

func (client *Client) DescribeAccessGroupsWithCallback(request *DescribeAccessGroupsRequest, callback func(response *DescribeAccessGroupsResponse, err error)) <-chan int

DescribeAccessGroupsWithCallback invokes the nas.DescribeAccessGroups API asynchronously api document: https://help.aliyun.com/api/nas/describeaccessgroups.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeAccessGroupsWithChan

func (client *Client) DescribeAccessGroupsWithChan(request *DescribeAccessGroupsRequest) (<-chan *DescribeAccessGroupsResponse, <-chan error)

DescribeAccessGroupsWithChan invokes the nas.DescribeAccessGroups API asynchronously api document: https://help.aliyun.com/api/nas/describeaccessgroups.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeAccessRules

func (client *Client) DescribeAccessRules(request *DescribeAccessRulesRequest) (response *DescribeAccessRulesResponse, err error)

DescribeAccessRules invokes the nas.DescribeAccessRules API synchronously api document: https://help.aliyun.com/api/nas/describeaccessrules.html

func (*Client) DescribeAccessRulesWithCallback

func (client *Client) DescribeAccessRulesWithCallback(request *DescribeAccessRulesRequest, callback func(response *DescribeAccessRulesResponse, err error)) <-chan int

DescribeAccessRulesWithCallback invokes the nas.DescribeAccessRules API asynchronously api document: https://help.aliyun.com/api/nas/describeaccessrules.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeAccessRulesWithChan

func (client *Client) DescribeAccessRulesWithChan(request *DescribeAccessRulesRequest) (<-chan *DescribeAccessRulesResponse, <-chan error)

DescribeAccessRulesWithChan invokes the nas.DescribeAccessRules API asynchronously api document: https://help.aliyun.com/api/nas/describeaccessrules.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeFileSystems

func (client *Client) DescribeFileSystems(request *DescribeFileSystemsRequest) (response *DescribeFileSystemsResponse, err error)

DescribeFileSystems invokes the nas.DescribeFileSystems API synchronously api document: https://help.aliyun.com/api/nas/describefilesystems.html

func (*Client) DescribeFileSystemsWithCallback

func (client *Client) DescribeFileSystemsWithCallback(request *DescribeFileSystemsRequest, callback func(response *DescribeFileSystemsResponse, err error)) <-chan int

DescribeFileSystemsWithCallback invokes the nas.DescribeFileSystems API asynchronously api document: https://help.aliyun.com/api/nas/describefilesystems.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeFileSystemsWithChan

func (client *Client) DescribeFileSystemsWithChan(request *DescribeFileSystemsRequest) (<-chan *DescribeFileSystemsResponse, <-chan error)

DescribeFileSystemsWithChan invokes the nas.DescribeFileSystems API asynchronously api document: https://help.aliyun.com/api/nas/describefilesystems.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeMountTargets

func (client *Client) DescribeMountTargets(request *DescribeMountTargetsRequest) (response *DescribeMountTargetsResponse, err error)

DescribeMountTargets invokes the nas.DescribeMountTargets API synchronously api document: https://help.aliyun.com/api/nas/describemounttargets.html

func (*Client) DescribeMountTargetsWithCallback

func (client *Client) DescribeMountTargetsWithCallback(request *DescribeMountTargetsRequest, callback func(response *DescribeMountTargetsResponse, err error)) <-chan int

DescribeMountTargetsWithCallback invokes the nas.DescribeMountTargets API asynchronously api document: https://help.aliyun.com/api/nas/describemounttargets.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeMountTargetsWithChan

func (client *Client) DescribeMountTargetsWithChan(request *DescribeMountTargetsRequest) (<-chan *DescribeMountTargetsResponse, <-chan error)

DescribeMountTargetsWithChan invokes the nas.DescribeMountTargets API asynchronously api document: https://help.aliyun.com/api/nas/describemounttargets.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegions

func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)

DescribeRegions invokes the nas.DescribeRegions API synchronously api document: https://help.aliyun.com/api/nas/describeregions.html

func (*Client) DescribeRegionsWithCallback

func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int

DescribeRegionsWithCallback invokes the nas.DescribeRegions API asynchronously api document: https://help.aliyun.com/api/nas/describeregions.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegionsWithChan

func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error)

DescribeRegionsWithChan invokes the nas.DescribeRegions API asynchronously api document: https://help.aliyun.com/api/nas/describeregions.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyAccessGroup

func (client *Client) ModifyAccessGroup(request *ModifyAccessGroupRequest) (response *ModifyAccessGroupResponse, err error)

ModifyAccessGroup invokes the nas.ModifyAccessGroup API synchronously api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html

func (*Client) ModifyAccessGroupWithCallback

func (client *Client) ModifyAccessGroupWithCallback(request *ModifyAccessGroupRequest, callback func(response *ModifyAccessGroupResponse, err error)) <-chan int

ModifyAccessGroupWithCallback invokes the nas.ModifyAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyAccessGroupWithChan

func (client *Client) ModifyAccessGroupWithChan(request *ModifyAccessGroupRequest) (<-chan *ModifyAccessGroupResponse, <-chan error)

ModifyAccessGroupWithChan invokes the nas.ModifyAccessGroup API asynchronously api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyAccessRule

func (client *Client) ModifyAccessRule(request *ModifyAccessRuleRequest) (response *ModifyAccessRuleResponse, err error)

ModifyAccessRule invokes the nas.ModifyAccessRule API synchronously api document: https://help.aliyun.com/api/nas/modifyaccessrule.html

func (*Client) ModifyAccessRuleWithCallback

func (client *Client) ModifyAccessRuleWithCallback(request *ModifyAccessRuleRequest, callback func(response *ModifyAccessRuleResponse, err error)) <-chan int

ModifyAccessRuleWithCallback invokes the nas.ModifyAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/modifyaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyAccessRuleWithChan

func (client *Client) ModifyAccessRuleWithChan(request *ModifyAccessRuleRequest) (<-chan *ModifyAccessRuleResponse, <-chan error)

ModifyAccessRuleWithChan invokes the nas.ModifyAccessRule API asynchronously api document: https://help.aliyun.com/api/nas/modifyaccessrule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyFileSystem

func (client *Client) ModifyFileSystem(request *ModifyFileSystemRequest) (response *ModifyFileSystemResponse, err error)

ModifyFileSystem invokes the nas.ModifyFileSystem API synchronously api document: https://help.aliyun.com/api/nas/modifyfilesystem.html

func (*Client) ModifyFileSystemWithCallback

func (client *Client) ModifyFileSystemWithCallback(request *ModifyFileSystemRequest, callback func(response *ModifyFileSystemResponse, err error)) <-chan int

ModifyFileSystemWithCallback invokes the nas.ModifyFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/modifyfilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyFileSystemWithChan

func (client *Client) ModifyFileSystemWithChan(request *ModifyFileSystemRequest) (<-chan *ModifyFileSystemResponse, <-chan error)

ModifyFileSystemWithChan invokes the nas.ModifyFileSystem API asynchronously api document: https://help.aliyun.com/api/nas/modifyfilesystem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyMountTarget

func (client *Client) ModifyMountTarget(request *ModifyMountTargetRequest) (response *ModifyMountTargetResponse, err error)

ModifyMountTarget invokes the nas.ModifyMountTarget API synchronously api document: https://help.aliyun.com/api/nas/modifymounttarget.html

func (*Client) ModifyMountTargetWithCallback

func (client *Client) ModifyMountTargetWithCallback(request *ModifyMountTargetRequest, callback func(response *ModifyMountTargetResponse, err error)) <-chan int

ModifyMountTargetWithCallback invokes the nas.ModifyMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/modifymounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyMountTargetWithChan

func (client *Client) ModifyMountTargetWithChan(request *ModifyMountTargetRequest) (<-chan *ModifyMountTargetResponse, <-chan error)

ModifyMountTargetWithChan invokes the nas.ModifyMountTarget API asynchronously api document: https://help.aliyun.com/api/nas/modifymounttarget.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CreateAccessGroupRequest

type CreateAccessGroupRequest struct {
	*requests.RpcRequest
	AccessGroupName string `position:"Query" name:"AccessGroupName"`
	AccessGroupType string `position:"Query" name:"AccessGroupType"`
	Description     string `position:"Query" name:"Description"`
}

CreateAccessGroupRequest is the request struct for api CreateAccessGroup

func CreateCreateAccessGroupRequest

func CreateCreateAccessGroupRequest() (request *CreateAccessGroupRequest)

CreateCreateAccessGroupRequest creates a request to invoke CreateAccessGroup API

type CreateAccessGroupResponse

type CreateAccessGroupResponse struct {
	*responses.BaseResponse
	RequestId       string `json:"RequestId" xml:"RequestId"`
	AccessGroupName string `json:"AccessGroupName" xml:"AccessGroupName"`
}

CreateAccessGroupResponse is the response struct for api CreateAccessGroup

func CreateCreateAccessGroupResponse

func CreateCreateAccessGroupResponse() (response *CreateAccessGroupResponse)

CreateCreateAccessGroupResponse creates a response to parse from CreateAccessGroup response

type CreateAccessRuleRequest

type CreateAccessRuleRequest struct {
	*requests.RpcRequest
	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
	SourceCidrIp    string           `position:"Query" name:"SourceCidrIp"`
	RWAccessType    string           `position:"Query" name:"RWAccessType"`
	UserAccessType  string           `position:"Query" name:"UserAccessType"`
	Priority        requests.Integer `position:"Query" name:"Priority"`
}

CreateAccessRuleRequest is the request struct for api CreateAccessRule

func CreateCreateAccessRuleRequest

func CreateCreateAccessRuleRequest() (request *CreateAccessRuleRequest)

CreateCreateAccessRuleRequest creates a request to invoke CreateAccessRule API

type CreateAccessRuleResponse

type CreateAccessRuleResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	AccessRuleId string `json:"AccessRuleId" xml:"AccessRuleId"`
}

CreateAccessRuleResponse is the response struct for api CreateAccessRule

func CreateCreateAccessRuleResponse

func CreateCreateAccessRuleResponse() (response *CreateAccessRuleResponse)

CreateCreateAccessRuleResponse creates a response to parse from CreateAccessRule response

type CreateFileSystemRequest

type CreateFileSystemRequest struct {
	*requests.RpcRequest
	StorageType  string `position:"Query" name:"StorageType"`
	ProtocolType string `position:"Query" name:"ProtocolType"`
	Description  string `position:"Query" name:"Description"`
}

CreateFileSystemRequest is the request struct for api CreateFileSystem

func CreateCreateFileSystemRequest

func CreateCreateFileSystemRequest() (request *CreateFileSystemRequest)

CreateCreateFileSystemRequest creates a request to invoke CreateFileSystem API

type CreateFileSystemResponse

type CreateFileSystemResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	FileSystemId string `json:"FileSystemId" xml:"FileSystemId"`
}

CreateFileSystemResponse is the response struct for api CreateFileSystem

func CreateCreateFileSystemResponse

func CreateCreateFileSystemResponse() (response *CreateFileSystemResponse)

CreateCreateFileSystemResponse creates a response to parse from CreateFileSystem response

type CreateMountTargetRequest

type CreateMountTargetRequest struct {
	*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"`
}

CreateMountTargetRequest is the request struct for api CreateMountTarget

func CreateCreateMountTargetRequest

func CreateCreateMountTargetRequest() (request *CreateMountTargetRequest)

CreateCreateMountTargetRequest creates a request to invoke CreateMountTarget API

type CreateMountTargetResponse

type CreateMountTargetResponse struct {
	*responses.BaseResponse
	RequestId         string `json:"RequestId" xml:"RequestId"`
	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
}

CreateMountTargetResponse is the response struct for api CreateMountTarget

func CreateCreateMountTargetResponse

func CreateCreateMountTargetResponse() (response *CreateMountTargetResponse)

CreateCreateMountTargetResponse creates a response to parse from CreateMountTarget response

type DeleteAccessGroupRequest

type DeleteAccessGroupRequest struct {
	*requests.RpcRequest
	AccessGroupName string `position:"Query" name:"AccessGroupName"`
}

DeleteAccessGroupRequest is the request struct for api DeleteAccessGroup

func CreateDeleteAccessGroupRequest

func CreateDeleteAccessGroupRequest() (request *DeleteAccessGroupRequest)

CreateDeleteAccessGroupRequest creates a request to invoke DeleteAccessGroup API

type DeleteAccessGroupResponse

type DeleteAccessGroupResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteAccessGroupResponse is the response struct for api DeleteAccessGroup

func CreateDeleteAccessGroupResponse

func CreateDeleteAccessGroupResponse() (response *DeleteAccessGroupResponse)

CreateDeleteAccessGroupResponse creates a response to parse from DeleteAccessGroup response

type DeleteAccessRuleRequest

type DeleteAccessRuleRequest struct {
	*requests.RpcRequest
	AccessGroupName string `position:"Query" name:"AccessGroupName"`
	AccessRuleId    string `position:"Query" name:"AccessRuleId"`
}

DeleteAccessRuleRequest is the request struct for api DeleteAccessRule

func CreateDeleteAccessRuleRequest

func CreateDeleteAccessRuleRequest() (request *DeleteAccessRuleRequest)

CreateDeleteAccessRuleRequest creates a request to invoke DeleteAccessRule API

type DeleteAccessRuleResponse

type DeleteAccessRuleResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteAccessRuleResponse is the response struct for api DeleteAccessRule

func CreateDeleteAccessRuleResponse

func CreateDeleteAccessRuleResponse() (response *DeleteAccessRuleResponse)

CreateDeleteAccessRuleResponse creates a response to parse from DeleteAccessRule response

type DeleteFileSystemRequest

type DeleteFileSystemRequest struct {
	*requests.RpcRequest
	FileSystemId string `position:"Query" name:"FileSystemId"`
}

DeleteFileSystemRequest is the request struct for api DeleteFileSystem

func CreateDeleteFileSystemRequest

func CreateDeleteFileSystemRequest() (request *DeleteFileSystemRequest)

CreateDeleteFileSystemRequest creates a request to invoke DeleteFileSystem API

type DeleteFileSystemResponse

type DeleteFileSystemResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteFileSystemResponse is the response struct for api DeleteFileSystem

func CreateDeleteFileSystemResponse

func CreateDeleteFileSystemResponse() (response *DeleteFileSystemResponse)

CreateDeleteFileSystemResponse creates a response to parse from DeleteFileSystem response

type DeleteMountTargetRequest

type DeleteMountTargetRequest struct {
	*requests.RpcRequest
	FileSystemId      string `position:"Query" name:"FileSystemId"`
	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
}

DeleteMountTargetRequest is the request struct for api DeleteMountTarget

func CreateDeleteMountTargetRequest

func CreateDeleteMountTargetRequest() (request *DeleteMountTargetRequest)

CreateDeleteMountTargetRequest creates a request to invoke DeleteMountTarget API

type DeleteMountTargetResponse

type DeleteMountTargetResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteMountTargetResponse is the response struct for api DeleteMountTarget

func CreateDeleteMountTargetResponse

func CreateDeleteMountTargetResponse() (response *DeleteMountTargetResponse)

CreateDeleteMountTargetResponse creates a response to parse from DeleteMountTarget response

type DescribeAccessGroupsRequest

type DescribeAccessGroupsRequest struct {
	*requests.RpcRequest
	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
}

DescribeAccessGroupsRequest is the request struct for api DescribeAccessGroups

func CreateDescribeAccessGroupsRequest

func CreateDescribeAccessGroupsRequest() (request *DescribeAccessGroupsRequest)

CreateDescribeAccessGroupsRequest creates a request to invoke DescribeAccessGroups API

type DescribeAccessGroupsResponse

type DescribeAccessGroupsResponse 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"`
	AccessGroups AccessGroups `json:"AccessGroups" xml:"AccessGroups"`
}

DescribeAccessGroupsResponse is the response struct for api DescribeAccessGroups

func CreateDescribeAccessGroupsResponse

func CreateDescribeAccessGroupsResponse() (response *DescribeAccessGroupsResponse)

CreateDescribeAccessGroupsResponse creates a response to parse from DescribeAccessGroups response

type DescribeAccessRulesRequest

type DescribeAccessRulesRequest struct {
	*requests.RpcRequest
	AccessGroupName string           `position:"Query" name:"AccessGroupName"`
	AccessRuleId    string           `position:"Query" name:"AccessRuleId"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
}

DescribeAccessRulesRequest is the request struct for api DescribeAccessRules

func CreateDescribeAccessRulesRequest

func CreateDescribeAccessRulesRequest() (request *DescribeAccessRulesRequest)

CreateDescribeAccessRulesRequest creates a request to invoke DescribeAccessRules API

type DescribeAccessRulesResponse

type DescribeAccessRulesResponse 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"`
	AccessRules AccessRules `json:"AccessRules" xml:"AccessRules"`
}

DescribeAccessRulesResponse is the response struct for api DescribeAccessRules

func CreateDescribeAccessRulesResponse

func CreateDescribeAccessRulesResponse() (response *DescribeAccessRulesResponse)

CreateDescribeAccessRulesResponse creates a response to parse from DescribeAccessRules response

type DescribeFileSystemsRequest

type DescribeFileSystemsRequest struct {
	*requests.RpcRequest
	FileSystemId string           `position:"Query" name:"FileSystemId"`
	PageSize     requests.Integer `position:"Query" name:"PageSize"`
	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
}

DescribeFileSystemsRequest is the request struct for api DescribeFileSystems

func CreateDescribeFileSystemsRequest

func CreateDescribeFileSystemsRequest() (request *DescribeFileSystemsRequest)

CreateDescribeFileSystemsRequest creates a request to invoke DescribeFileSystems API

type DescribeFileSystemsResponse

type DescribeFileSystemsResponse 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"`
	FileSystems FileSystems `json:"FileSystems" xml:"FileSystems"`
}

DescribeFileSystemsResponse is the response struct for api DescribeFileSystems

func CreateDescribeFileSystemsResponse

func CreateDescribeFileSystemsResponse() (response *DescribeFileSystemsResponse)

CreateDescribeFileSystemsResponse creates a response to parse from DescribeFileSystems response

type DescribeMountTargetsRequest

type DescribeMountTargetsRequest struct {
	*requests.RpcRequest
	FileSystemId      string           `position:"Query" name:"FileSystemId"`
	MountTargetDomain string           `position:"Query" name:"MountTargetDomain"`
	PageSize          requests.Integer `position:"Query" name:"PageSize"`
	PageNumber        requests.Integer `position:"Query" name:"PageNumber"`
}

DescribeMountTargetsRequest is the request struct for api DescribeMountTargets

func CreateDescribeMountTargetsRequest

func CreateDescribeMountTargetsRequest() (request *DescribeMountTargetsRequest)

CreateDescribeMountTargetsRequest creates a request to invoke DescribeMountTargets API

type DescribeMountTargetsResponse

type DescribeMountTargetsResponse 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"`
	MountTargets MountTargetsInDescribeMountTargets `json:"MountTargets" xml:"MountTargets"`
}

DescribeMountTargetsResponse is the response struct for api DescribeMountTargets

func CreateDescribeMountTargetsResponse

func CreateDescribeMountTargetsResponse() (response *DescribeMountTargetsResponse)

CreateDescribeMountTargetsResponse creates a response to parse from DescribeMountTargets response

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	*requests.RpcRequest
	PageSize   requests.Integer `position:"Query" name:"PageSize"`
	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
}

DescribeRegionsRequest is the request struct for api DescribeRegions

func CreateDescribeRegionsRequest

func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest)

CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API

type DescribeRegionsResponse

type DescribeRegionsResponse 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"`
	Regions    Regions `json:"Regions" xml:"Regions"`
}

DescribeRegionsResponse is the response struct for api DescribeRegions

func CreateDescribeRegionsResponse

func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse)

CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response

type FileSystem

type FileSystem struct {
	FileSystemId string                            `json:"FileSystemId" xml:"FileSystemId"`
	Destription  string                            `json:"Destription" xml:"Destription"`
	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  int                               `json:"MeteredSize" xml:"MeteredSize"`
	MountTargets MountTargetsInDescribeFileSystems `json:"MountTargets" xml:"MountTargets"`
	Packages     Packages                          `json:"Packages" xml:"Packages"`
}

FileSystem is a nested struct in nas response

type FileSystems

type FileSystems struct {
	FileSystem []FileSystem `json:"FileSystem" xml:"FileSystem"`
}

FileSystems is a nested struct in nas response

type ModifyAccessGroupRequest

type ModifyAccessGroupRequest struct {
	*requests.RpcRequest
	AccessGroupName string `position:"Query" name:"AccessGroupName"`
	Description     string `position:"Query" name:"Description"`
}

ModifyAccessGroupRequest is the request struct for api ModifyAccessGroup

func CreateModifyAccessGroupRequest

func CreateModifyAccessGroupRequest() (request *ModifyAccessGroupRequest)

CreateModifyAccessGroupRequest creates a request to invoke ModifyAccessGroup API

type ModifyAccessGroupResponse

type ModifyAccessGroupResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyAccessGroupResponse is the response struct for api ModifyAccessGroup

func CreateModifyAccessGroupResponse

func CreateModifyAccessGroupResponse() (response *ModifyAccessGroupResponse)

CreateModifyAccessGroupResponse creates a response to parse from ModifyAccessGroup response

type ModifyAccessRuleRequest

type ModifyAccessRuleRequest struct {
	*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"`
	UserAccessType  string           `position:"Query" name:"UserAccessType"`
	Priority        requests.Integer `position:"Query" name:"Priority"`
}

ModifyAccessRuleRequest is the request struct for api ModifyAccessRule

func CreateModifyAccessRuleRequest

func CreateModifyAccessRuleRequest() (request *ModifyAccessRuleRequest)

CreateModifyAccessRuleRequest creates a request to invoke ModifyAccessRule API

type ModifyAccessRuleResponse

type ModifyAccessRuleResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyAccessRuleResponse is the response struct for api ModifyAccessRule

func CreateModifyAccessRuleResponse

func CreateModifyAccessRuleResponse() (response *ModifyAccessRuleResponse)

CreateModifyAccessRuleResponse creates a response to parse from ModifyAccessRule response

type ModifyFileSystemRequest

type ModifyFileSystemRequest struct {
	*requests.RpcRequest
	FileSystemId string `position:"Query" name:"FileSystemId"`
	Description  string `position:"Query" name:"Description"`
}

ModifyFileSystemRequest is the request struct for api ModifyFileSystem

func CreateModifyFileSystemRequest

func CreateModifyFileSystemRequest() (request *ModifyFileSystemRequest)

CreateModifyFileSystemRequest creates a request to invoke ModifyFileSystem API

type ModifyFileSystemResponse

type ModifyFileSystemResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyFileSystemResponse is the response struct for api ModifyFileSystem

func CreateModifyFileSystemResponse

func CreateModifyFileSystemResponse() (response *ModifyFileSystemResponse)

CreateModifyFileSystemResponse creates a response to parse from ModifyFileSystem response

type ModifyMountTargetRequest

type ModifyMountTargetRequest struct {
	*requests.RpcRequest
	FileSystemId      string `position:"Query" name:"FileSystemId"`
	MountTargetDomain string `position:"Query" name:"MountTargetDomain"`
	AccessGroupName   string `position:"Query" name:"AccessGroupName"`
	Status            string `position:"Query" name:"Status"`
}

ModifyMountTargetRequest is the request struct for api ModifyMountTarget

func CreateModifyMountTargetRequest

func CreateModifyMountTargetRequest() (request *ModifyMountTargetRequest)

CreateModifyMountTargetRequest creates a request to invoke ModifyMountTarget API

type ModifyMountTargetResponse

type ModifyMountTargetResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyMountTargetResponse is the response struct for api ModifyMountTarget

func CreateModifyMountTargetResponse

func CreateModifyMountTargetResponse() (response *ModifyMountTargetResponse)

CreateModifyMountTargetResponse creates a response to parse from ModifyMountTarget response

type MountTarget

type MountTarget struct {
	VpcId             string `json:"VpcId" xml:"VpcId"`
	VswId             string `json:"VswId" xml:"VswId"`
	AccessGroup       string `json:"AccessGroup" xml:"AccessGroup"`
	NetworkType       string `json:"NetworkType" xml:"NetworkType"`
	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
	Status            string `json:"Status" xml:"Status"`
}

MountTarget is a nested struct in nas response

type MountTargetsInDescribeFileSystems

type MountTargetsInDescribeFileSystems struct {
	MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"`
}

MountTargetsInDescribeFileSystems is a nested struct in nas response

type MountTargetsInDescribeMountTargets

type MountTargetsInDescribeMountTargets struct {
	MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"`
}

MountTargetsInDescribeMountTargets is a nested struct in nas response

type Package

type Package struct {
	PackageId string `json:"PackageId" xml:"PackageId"`
}

Package is a nested struct in nas response

type Packages

type Packages struct {
	Package []Package `json:"Package" xml:"Package"`
}

Packages is a nested struct in nas response

type Region

type Region struct {
	RegionId  string `json:"RegionId" xml:"RegionId"`
	LocalName string `json:"LocalName" xml:"LocalName"`
}

Region is a nested struct in nas response

type Regions

type Regions struct {
	Region []Region `json:"Region" xml:"Region"`
}

Regions is a nested struct in nas response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL