v20190719

package
v3.0.127+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-07-19"

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableProtoStatus

type AvailableProtoStatus struct {

	// 售卖状态。可选值有 sale_out 售罄、saling可售、no_saling不可销售
	SaleStatus *string `json:"SaleStatus,omitempty" name:"SaleStatus"`

	// 协议类型。可选值有 NFS、CIFS
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
}

type AvailableRegion

type AvailableRegion struct {

	// 区域名称,如“ap-beijing”
	Region *string `json:"Region,omitempty" name:"Region"`

	// 区域名称,如“bj”
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 区域可用情况,当区域内至少有一个可用区处于可售状态时,取值为AVAILABLE,否则为UNAVAILABLE
	RegionStatus *string `json:"RegionStatus,omitempty" name:"RegionStatus"`

	// 可用区数组
	Zones []*AvailableZone `json:"Zones,omitempty" name:"Zones" list`

	// 区域中文名称,如“广州”
	RegionCnName *string `json:"RegionCnName,omitempty" name:"RegionCnName"`
}

type AvailableType

type AvailableType struct {

	// 协议与售卖详情
	Protocols []*AvailableProtoStatus `json:"Protocols,omitempty" name:"Protocols" list`

	// 存储类型。可选值有 SD 标准型存储、HP性能型存储
	Type *string `json:"Type,omitempty" name:"Type"`
}

type AvailableZone

type AvailableZone struct {

	// 可用区名称
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 可用区ID
	ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"`

	// 可用区中文名称
	ZoneCnName *string `json:"ZoneCnName,omitempty" name:"ZoneCnName"`

	// Type数组
	Types []*AvailableType `json:"Types,omitempty" name:"Types" list`

	// 可用区中英文名称
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateCfsFileSystem

func (c *Client) CreateCfsFileSystem(request *CreateCfsFileSystemRequest) (response *CreateCfsFileSystemResponse, err error)

用于添加新文件系统

func (*Client) CreateCfsPGroup

func (c *Client) CreateCfsPGroup(request *CreateCfsPGroupRequest) (response *CreateCfsPGroupResponse, err error)

本接口(CreateCfsPGroup)用于创建权限组

func (*Client) CreateCfsRule

func (c *Client) CreateCfsRule(request *CreateCfsRuleRequest) (response *CreateCfsRuleResponse, err error)

本接口(CreateCfsRule)用于创建权限组规则。

func (*Client) DeleteCfsFileSystem

func (c *Client) DeleteCfsFileSystem(request *DeleteCfsFileSystemRequest) (response *DeleteCfsFileSystemResponse, err error)

用于删除文件系统

func (*Client) DeleteCfsPGroup

func (c *Client) DeleteCfsPGroup(request *DeleteCfsPGroupRequest) (response *DeleteCfsPGroupResponse, err error)

本接口(DeleteCfsPGroup)用于删除权限组。

func (*Client) DeleteCfsRule

func (c *Client) DeleteCfsRule(request *DeleteCfsRuleRequest) (response *DeleteCfsRuleResponse, err error)

本接口(DeleteCfsRule)用于删除权限组规则。

func (*Client) DeleteMountTarget

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

本接口(DeleteMountTarget)用于删除挂载点

func (*Client) DescribeAvailableZoneInfo

func (c *Client) DescribeAvailableZoneInfo(request *DescribeAvailableZoneInfoRequest) (response *DescribeAvailableZoneInfoResponse, err error)

本接口(DescribeAvailableZoneInfo)用于查询区域的可用情况。

func (*Client) DescribeCfsFileSystems

func (c *Client) DescribeCfsFileSystems(request *DescribeCfsFileSystemsRequest) (response *DescribeCfsFileSystemsResponse, err error)

本接口(DescribeCfsFileSystems)用于查询文件系统

func (*Client) DescribeCfsPGroups

func (c *Client) DescribeCfsPGroups(request *DescribeCfsPGroupsRequest) (response *DescribeCfsPGroupsResponse, err error)

本接口(DescribeCfsPGroups)用于查询权限组列表。

func (*Client) DescribeCfsRules

func (c *Client) DescribeCfsRules(request *DescribeCfsRulesRequest) (response *DescribeCfsRulesResponse, err error)

本接口(DescribeCfsRules)用于查询权限组规则列表。

func (*Client) DescribeCfsServiceStatus

func (c *Client) DescribeCfsServiceStatus(request *DescribeCfsServiceStatusRequest) (response *DescribeCfsServiceStatusResponse, err error)

本接口(DescribeCfsServiceStatus)用于查询用户使用CFS的服务状态。

func (*Client) DescribeMountTargets

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

本接口(DescribeMountTargets)用于查询文件系统挂载点信息

func (*Client) SignUpCfsService

func (c *Client) SignUpCfsService(request *SignUpCfsServiceRequest) (response *SignUpCfsServiceResponse, err error)

本接口(SignUpCfsService)用于开通CFS服务。

func (*Client) UpdateCfsFileSystemName

func (c *Client) UpdateCfsFileSystemName(request *UpdateCfsFileSystemNameRequest) (response *UpdateCfsFileSystemNameResponse, err error)

本接口(UpdateCfsFileSystemName)用于更新文件系统名

func (*Client) UpdateCfsFileSystemPGroup

func (c *Client) UpdateCfsFileSystemPGroup(request *UpdateCfsFileSystemPGroupRequest) (response *UpdateCfsFileSystemPGroupResponse, err error)

本接口(UpdateCfsFileSystemPGroup)用于更新文件系统所使用的权限组

func (*Client) UpdateCfsFileSystemSizeLimit

func (c *Client) UpdateCfsFileSystemSizeLimit(request *UpdateCfsFileSystemSizeLimitRequest) (response *UpdateCfsFileSystemSizeLimitResponse, err error)

本接口(UpdateCfsFileSystemSizeLimit)用于更新文件系统存储容量限制。

func (*Client) UpdateCfsPGroup

func (c *Client) UpdateCfsPGroup(request *UpdateCfsPGroupRequest) (response *UpdateCfsPGroupResponse, err error)

本接口(UpdateCfsPGroup)更新权限组信息。

func (*Client) UpdateCfsRule

func (c *Client) UpdateCfsRule(request *UpdateCfsRuleRequest) (response *UpdateCfsRuleResponse, err error)

本接口(UpdateCfsRule)用于更新权限规则。

type CreateCfsFileSystemRequest

type CreateCfsFileSystemRequest struct {
	*tchttp.BaseRequest

	// 可用区名称,例如ap-beijing-1,请参考 [概览](https://cloud.tencent.com/document/product/582/13225) 文档中的地域与可用区列表
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 网络类型,值为 VPC,BASIC;其中 VPC 为私有网络,BASIC 为基础网络
	NetInterface *string `json:"NetInterface,omitempty" name:"NetInterface"`

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 文件系统协议类型, 值为 NFS、CIFS; 若留空则默认为 NFS协议
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// 文件系统存储类型,值为 SD ;其中 SD 为标准型存储, HP为性能存储。
	StorageType *string `json:"StorageType,omitempty" name:"StorageType"`

	// 私有网络(VPC) ID,若网络类型选择的是VPC,该字段为必填。
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// 子网 ID,若网络类型选择的是VPC,该字段为必填。
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`

	// 指定IP地址,仅VPC网络支持;若不填写、将在该子网下随机分配 IP
	MountIP *string `json:"MountIP,omitempty" name:"MountIP"`

	// 用户自定义文件系统名称
	FsName *string `json:"FsName,omitempty" name:"FsName"`

	// 文件系统标签
	ResourceTags []*TagInfo `json:"ResourceTags,omitempty" name:"ResourceTags" list`
}

func NewCreateCfsFileSystemRequest

func NewCreateCfsFileSystemRequest() (request *CreateCfsFileSystemRequest)

func (*CreateCfsFileSystemRequest) FromJsonString

func (r *CreateCfsFileSystemRequest) FromJsonString(s string) error

func (*CreateCfsFileSystemRequest) ToJsonString

func (r *CreateCfsFileSystemRequest) ToJsonString() string

type CreateCfsFileSystemResponse

type CreateCfsFileSystemResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 文件系统创建时间
		CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`

		// 用户自定义文件系统名称
		CreationToken *string `json:"CreationToken,omitempty" name:"CreationToken"`

		// 文件系统 ID
		FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

		// 文件系统状态
		LifeCycleState *string `json:"LifeCycleState,omitempty" name:"LifeCycleState"`

		// 文件系统已使用容量大小
		SizeByte *uint64 `json:"SizeByte,omitempty" name:"SizeByte"`

		// 可用区 ID
		ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`

		// 用户自定义文件系统名称
		FsName *string `json:"FsName,omitempty" name:"FsName"`

		// 文件系统是否加密
		Encrypted *bool `json:"Encrypted,omitempty" name:"Encrypted"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCfsFileSystemResponse

func NewCreateCfsFileSystemResponse() (response *CreateCfsFileSystemResponse)

func (*CreateCfsFileSystemResponse) FromJsonString

func (r *CreateCfsFileSystemResponse) FromJsonString(s string) error

func (*CreateCfsFileSystemResponse) ToJsonString

func (r *CreateCfsFileSystemResponse) ToJsonString() string

type CreateCfsPGroupRequest

type CreateCfsPGroupRequest struct {
	*tchttp.BaseRequest

	// 权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线
	Name *string `json:"Name,omitempty" name:"Name"`

	// 权限组描述信息,1-255个字符
	DescInfo *string `json:"DescInfo,omitempty" name:"DescInfo"`
}

func NewCreateCfsPGroupRequest

func NewCreateCfsPGroupRequest() (request *CreateCfsPGroupRequest)

func (*CreateCfsPGroupRequest) FromJsonString

func (r *CreateCfsPGroupRequest) FromJsonString(s string) error

func (*CreateCfsPGroupRequest) ToJsonString

func (r *CreateCfsPGroupRequest) ToJsonString() string

type CreateCfsPGroupResponse

type CreateCfsPGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 权限组名字
		Name *string `json:"Name,omitempty" name:"Name"`

		// 权限组描述信息
		DescInfo *string `json:"DescInfo,omitempty" name:"DescInfo"`

		// 已经与该权限组绑定的文件系统个数
		BindCfsNum *int64 `json:"BindCfsNum,omitempty" name:"BindCfsNum"`

		// 权限组创建时间
		CDate *string `json:"CDate,omitempty" name:"CDate"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCfsPGroupResponse

func NewCreateCfsPGroupResponse() (response *CreateCfsPGroupResponse)

func (*CreateCfsPGroupResponse) FromJsonString

func (r *CreateCfsPGroupResponse) FromJsonString(s string) error

func (*CreateCfsPGroupResponse) ToJsonString

func (r *CreateCfsPGroupResponse) ToJsonString() string

type CreateCfsRuleRequest

type CreateCfsRuleRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 可以填写单个 IP 或者单个网段,例如 10.1.10.11 或者 10.10.1.0/24。默认来访地址为*表示允许所有。同时需要注意,此处需填写 CVM 的内网 IP。
	AuthClientIp *string `json:"AuthClientIp,omitempty" name:"AuthClientIp"`

	// 规则优先级,参数范围1-100。 其中 1 为最高,100为最低
	Priority *int64 `json:"Priority,omitempty" name:"Priority"`

	// 读写权限, 值为 RO、RW;其中 RO 为只读,RW 为读写,不填默认为只读
	RWPermission *string `json:"RWPermission,omitempty" name:"RWPermission"`

	// 用户权限,值为 all_squash、no_all_squash、root_squash、no_root_squash。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。不填默认为root_squash。
	UserPermission *string `json:"UserPermission,omitempty" name:"UserPermission"`
}

func NewCreateCfsRuleRequest

func NewCreateCfsRuleRequest() (request *CreateCfsRuleRequest)

func (*CreateCfsRuleRequest) FromJsonString

func (r *CreateCfsRuleRequest) FromJsonString(s string) error

func (*CreateCfsRuleRequest) ToJsonString

func (r *CreateCfsRuleRequest) ToJsonString() string

type CreateCfsRuleResponse

type CreateCfsRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 规则 ID
		RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 客户端 IP
		AuthClientIp *string `json:"AuthClientIp,omitempty" name:"AuthClientIp"`

		// 读写权限
		RWPermission *string `json:"RWPermission,omitempty" name:"RWPermission"`

		// 用户权限
		UserPermission *string `json:"UserPermission,omitempty" name:"UserPermission"`

		// 优先级
		Priority *int64 `json:"Priority,omitempty" name:"Priority"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCfsRuleResponse

func NewCreateCfsRuleResponse() (response *CreateCfsRuleResponse)

func (*CreateCfsRuleResponse) FromJsonString

func (r *CreateCfsRuleResponse) FromJsonString(s string) error

func (*CreateCfsRuleResponse) ToJsonString

func (r *CreateCfsRuleResponse) ToJsonString() string

type DeleteCfsFileSystemRequest

type DeleteCfsFileSystemRequest struct {
	*tchttp.BaseRequest

	// 文件系统 ID。说明,进行删除文件系统操作前需要先调用 DeleteMountTarget 接口删除该文件系统的挂载点,否则会删除失败。
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}

func NewDeleteCfsFileSystemRequest

func NewDeleteCfsFileSystemRequest() (request *DeleteCfsFileSystemRequest)

func (*DeleteCfsFileSystemRequest) FromJsonString

func (r *DeleteCfsFileSystemRequest) FromJsonString(s string) error

func (*DeleteCfsFileSystemRequest) ToJsonString

func (r *DeleteCfsFileSystemRequest) ToJsonString() string

type DeleteCfsFileSystemResponse

type DeleteCfsFileSystemResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteCfsFileSystemResponse

func NewDeleteCfsFileSystemResponse() (response *DeleteCfsFileSystemResponse)

func (*DeleteCfsFileSystemResponse) FromJsonString

func (r *DeleteCfsFileSystemResponse) FromJsonString(s string) error

func (*DeleteCfsFileSystemResponse) ToJsonString

func (r *DeleteCfsFileSystemResponse) ToJsonString() string

type DeleteCfsPGroupRequest

type DeleteCfsPGroupRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`
}

func NewDeleteCfsPGroupRequest

func NewDeleteCfsPGroupRequest() (request *DeleteCfsPGroupRequest)

func (*DeleteCfsPGroupRequest) FromJsonString

func (r *DeleteCfsPGroupRequest) FromJsonString(s string) error

func (*DeleteCfsPGroupRequest) ToJsonString

func (r *DeleteCfsPGroupRequest) ToJsonString() string

type DeleteCfsPGroupResponse

type DeleteCfsPGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 用户 ID
		AppId *int64 `json:"AppId,omitempty" name:"AppId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteCfsPGroupResponse

func NewDeleteCfsPGroupResponse() (response *DeleteCfsPGroupResponse)

func (*DeleteCfsPGroupResponse) FromJsonString

func (r *DeleteCfsPGroupResponse) FromJsonString(s string) error

func (*DeleteCfsPGroupResponse) ToJsonString

func (r *DeleteCfsPGroupResponse) ToJsonString() string

type DeleteCfsRuleRequest

type DeleteCfsRuleRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 规则 ID
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
}

func NewDeleteCfsRuleRequest

func NewDeleteCfsRuleRequest() (request *DeleteCfsRuleRequest)

func (*DeleteCfsRuleRequest) FromJsonString

func (r *DeleteCfsRuleRequest) FromJsonString(s string) error

func (*DeleteCfsRuleRequest) ToJsonString

func (r *DeleteCfsRuleRequest) ToJsonString() string

type DeleteCfsRuleResponse

type DeleteCfsRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 规则 ID
		RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteCfsRuleResponse

func NewDeleteCfsRuleResponse() (response *DeleteCfsRuleResponse)

func (*DeleteCfsRuleResponse) FromJsonString

func (r *DeleteCfsRuleResponse) FromJsonString(s string) error

func (*DeleteCfsRuleResponse) ToJsonString

func (r *DeleteCfsRuleResponse) ToJsonString() string

type DeleteMountTargetRequest

type DeleteMountTargetRequest struct {
	*tchttp.BaseRequest

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

	// 挂载点 ID
	MountTargetId *string `json:"MountTargetId,omitempty" name:"MountTargetId"`
}

func NewDeleteMountTargetRequest

func NewDeleteMountTargetRequest() (request *DeleteMountTargetRequest)

func (*DeleteMountTargetRequest) FromJsonString

func (r *DeleteMountTargetRequest) FromJsonString(s string) error

func (*DeleteMountTargetRequest) ToJsonString

func (r *DeleteMountTargetRequest) ToJsonString() string

type DeleteMountTargetResponse

type DeleteMountTargetResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteMountTargetResponse

func NewDeleteMountTargetResponse() (response *DeleteMountTargetResponse)

func (*DeleteMountTargetResponse) FromJsonString

func (r *DeleteMountTargetResponse) FromJsonString(s string) error

func (*DeleteMountTargetResponse) ToJsonString

func (r *DeleteMountTargetResponse) ToJsonString() string

type DescribeAvailableZoneInfoRequest

type DescribeAvailableZoneInfoRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeAvailableZoneInfoRequest

func NewDescribeAvailableZoneInfoRequest() (request *DescribeAvailableZoneInfoRequest)

func (*DescribeAvailableZoneInfoRequest) FromJsonString

func (r *DescribeAvailableZoneInfoRequest) FromJsonString(s string) error

func (*DescribeAvailableZoneInfoRequest) ToJsonString

func (r *DescribeAvailableZoneInfoRequest) ToJsonString() string

type DescribeAvailableZoneInfoResponse

type DescribeAvailableZoneInfoResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 各可用区的资源售卖情况以及支持的存储类型、存储协议等信息
		RegionZones []*AvailableRegion `json:"RegionZones,omitempty" name:"RegionZones" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAvailableZoneInfoResponse

func NewDescribeAvailableZoneInfoResponse() (response *DescribeAvailableZoneInfoResponse)

func (*DescribeAvailableZoneInfoResponse) FromJsonString

func (r *DescribeAvailableZoneInfoResponse) FromJsonString(s string) error

func (*DescribeAvailableZoneInfoResponse) ToJsonString

func (r *DescribeAvailableZoneInfoResponse) ToJsonString() string

type DescribeCfsFileSystemsRequest

type DescribeCfsFileSystemsRequest struct {
	*tchttp.BaseRequest

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

	// 私有网络(VPC) ID
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// 子网 ID
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
}

func NewDescribeCfsFileSystemsRequest

func NewDescribeCfsFileSystemsRequest() (request *DescribeCfsFileSystemsRequest)

func (*DescribeCfsFileSystemsRequest) FromJsonString

func (r *DescribeCfsFileSystemsRequest) FromJsonString(s string) error

func (*DescribeCfsFileSystemsRequest) ToJsonString

func (r *DescribeCfsFileSystemsRequest) ToJsonString() string

type DescribeCfsFileSystemsResponse

type DescribeCfsFileSystemsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 文件系统信息
		FileSystems []*FileSystemInfo `json:"FileSystems,omitempty" name:"FileSystems" list`

		// 文件系统总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeCfsFileSystemsResponse

func NewDescribeCfsFileSystemsResponse() (response *DescribeCfsFileSystemsResponse)

func (*DescribeCfsFileSystemsResponse) FromJsonString

func (r *DescribeCfsFileSystemsResponse) FromJsonString(s string) error

func (*DescribeCfsFileSystemsResponse) ToJsonString

func (r *DescribeCfsFileSystemsResponse) ToJsonString() string

type DescribeCfsPGroupsRequest

type DescribeCfsPGroupsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeCfsPGroupsRequest

func NewDescribeCfsPGroupsRequest() (request *DescribeCfsPGroupsRequest)

func (*DescribeCfsPGroupsRequest) FromJsonString

func (r *DescribeCfsPGroupsRequest) FromJsonString(s string) error

func (*DescribeCfsPGroupsRequest) ToJsonString

func (r *DescribeCfsPGroupsRequest) ToJsonString() string

type DescribeCfsPGroupsResponse

type DescribeCfsPGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组信息列表
		PGroupList []*PGroupInfo `json:"PGroupList,omitempty" name:"PGroupList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeCfsPGroupsResponse

func NewDescribeCfsPGroupsResponse() (response *DescribeCfsPGroupsResponse)

func (*DescribeCfsPGroupsResponse) FromJsonString

func (r *DescribeCfsPGroupsResponse) FromJsonString(s string) error

func (*DescribeCfsPGroupsResponse) ToJsonString

func (r *DescribeCfsPGroupsResponse) ToJsonString() string

type DescribeCfsRulesRequest

type DescribeCfsRulesRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`
}

func NewDescribeCfsRulesRequest

func NewDescribeCfsRulesRequest() (request *DescribeCfsRulesRequest)

func (*DescribeCfsRulesRequest) FromJsonString

func (r *DescribeCfsRulesRequest) FromJsonString(s string) error

func (*DescribeCfsRulesRequest) ToJsonString

func (r *DescribeCfsRulesRequest) ToJsonString() string

type DescribeCfsRulesResponse

type DescribeCfsRulesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组规则列表
		RuleList []*PGroupRuleInfo `json:"RuleList,omitempty" name:"RuleList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeCfsRulesResponse

func NewDescribeCfsRulesResponse() (response *DescribeCfsRulesResponse)

func (*DescribeCfsRulesResponse) FromJsonString

func (r *DescribeCfsRulesResponse) FromJsonString(s string) error

func (*DescribeCfsRulesResponse) ToJsonString

func (r *DescribeCfsRulesResponse) ToJsonString() string

type DescribeCfsServiceStatusRequest

type DescribeCfsServiceStatusRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeCfsServiceStatusRequest

func NewDescribeCfsServiceStatusRequest() (request *DescribeCfsServiceStatusRequest)

func (*DescribeCfsServiceStatusRequest) FromJsonString

func (r *DescribeCfsServiceStatusRequest) FromJsonString(s string) error

func (*DescribeCfsServiceStatusRequest) ToJsonString

func (r *DescribeCfsServiceStatusRequest) ToJsonString() string

type DescribeCfsServiceStatusResponse

type DescribeCfsServiceStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 该用户当前 CFS 服务的状态,none 为未开通,creating 为开通中,created 为已开通
		CfsServiceStatus *string `json:"CfsServiceStatus,omitempty" name:"CfsServiceStatus"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeCfsServiceStatusResponse

func NewDescribeCfsServiceStatusResponse() (response *DescribeCfsServiceStatusResponse)

func (*DescribeCfsServiceStatusResponse) FromJsonString

func (r *DescribeCfsServiceStatusResponse) FromJsonString(s string) error

func (*DescribeCfsServiceStatusResponse) ToJsonString

func (r *DescribeCfsServiceStatusResponse) ToJsonString() string

type DescribeMountTargetsRequest

type DescribeMountTargetsRequest struct {
	*tchttp.BaseRequest

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}

func NewDescribeMountTargetsRequest

func NewDescribeMountTargetsRequest() (request *DescribeMountTargetsRequest)

func (*DescribeMountTargetsRequest) FromJsonString

func (r *DescribeMountTargetsRequest) FromJsonString(s string) error

func (*DescribeMountTargetsRequest) ToJsonString

func (r *DescribeMountTargetsRequest) ToJsonString() string

type DescribeMountTargetsResponse

type DescribeMountTargetsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 挂载点详情
		MountTargets []*MountInfo `json:"MountTargets,omitempty" name:"MountTargets" list`

		// 挂载点数量
		NumberOfMountTargets *int64 `json:"NumberOfMountTargets,omitempty" name:"NumberOfMountTargets"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeMountTargetsResponse

func NewDescribeMountTargetsResponse() (response *DescribeMountTargetsResponse)

func (*DescribeMountTargetsResponse) FromJsonString

func (r *DescribeMountTargetsResponse) FromJsonString(s string) error

func (*DescribeMountTargetsResponse) ToJsonString

func (r *DescribeMountTargetsResponse) ToJsonString() string

type FileSystemInfo

type FileSystemInfo struct {

	// 创建时间
	CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`

	// 用户自定义名称
	CreationToken *string `json:"CreationToken,omitempty" name:"CreationToken"`

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

	// 文件系统状态
	LifeCycleState *string `json:"LifeCycleState,omitempty" name:"LifeCycleState"`

	// 文件系统已使用容量
	SizeByte *uint64 `json:"SizeByte,omitempty" name:"SizeByte"`

	// 文件系统最大空间限制
	SizeLimit *uint64 `json:"SizeLimit,omitempty" name:"SizeLimit"`

	// 区域 ID
	ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`

	// 区域名称
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 文件系统协议类型
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// 文件系统存储类型
	StorageType *string `json:"StorageType,omitempty" name:"StorageType"`

	// 文件系统绑定的预付费存储包(暂未支持)
	StorageResourcePkg *string `json:"StorageResourcePkg,omitempty" name:"StorageResourcePkg"`

	// 文件系统绑定的预付费带宽包(暂未支持)
	BandwidthResourcePkg *string `json:"BandwidthResourcePkg,omitempty" name:"BandwidthResourcePkg"`

	// 文件系统绑定权限组信息
	PGroup *PGroup `json:"PGroup,omitempty" name:"PGroup"`

	// 用户自定义名称
	FsName *string `json:"FsName,omitempty" name:"FsName"`

	// 文件系统是否加密
	Encrypted *bool `json:"Encrypted,omitempty" name:"Encrypted"`

	// 加密所使用的密钥,可以为密钥的 ID 或者 ARN
	KmsKeyId *string `json:"KmsKeyId,omitempty" name:"KmsKeyId"`
}

type MountInfo

type MountInfo struct {

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

	// 挂载点 ID
	MountTargetId *string `json:"MountTargetId,omitempty" name:"MountTargetId"`

	// 挂载点 IP
	IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"`

	// 挂载根目录
	FSID *string `json:"FSID,omitempty" name:"FSID"`

	// 挂载点状态
	LifeCycleState *string `json:"LifeCycleState,omitempty" name:"LifeCycleState"`

	// 网络类型
	NetworkInterface *string `json:"NetworkInterface,omitempty" name:"NetworkInterface"`

	// 私有网络 ID
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// 私有网络名称
	VpcName *string `json:"VpcName,omitempty" name:"VpcName"`

	// 子网 Id
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`

	// 子网名称
	SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"`
}

type PGroup

type PGroup struct {

	// 权限组ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 权限组名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

type PGroupInfo

type PGroupInfo struct {

	// 权限组ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 权限组名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 描述信息
	DescInfo *string `json:"DescInfo,omitempty" name:"DescInfo"`

	// 创建时间
	CDate *string `json:"CDate,omitempty" name:"CDate"`

	// 关联文件系统个数
	BindCfsNum *int64 `json:"BindCfsNum,omitempty" name:"BindCfsNum"`
}

type PGroupRuleInfo

type PGroupRuleInfo struct {

	// 规则ID
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

	// 允许访问的客户端IP
	AuthClientIp *string `json:"AuthClientIp,omitempty" name:"AuthClientIp"`

	// 读写权限, ro为只读,rw为读写
	RWPermission *string `json:"RWPermission,omitempty" name:"RWPermission"`

	// 用户权限。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。
	UserPermission *string `json:"UserPermission,omitempty" name:"UserPermission"`

	// 规则优先级,1-100。 其中 1 为最高,100为最低
	Priority *int64 `json:"Priority,omitempty" name:"Priority"`
}

type SignUpCfsServiceRequest

type SignUpCfsServiceRequest struct {
	*tchttp.BaseRequest
}

func NewSignUpCfsServiceRequest

func NewSignUpCfsServiceRequest() (request *SignUpCfsServiceRequest)

func (*SignUpCfsServiceRequest) FromJsonString

func (r *SignUpCfsServiceRequest) FromJsonString(s string) error

func (*SignUpCfsServiceRequest) ToJsonString

func (r *SignUpCfsServiceRequest) ToJsonString() string

type SignUpCfsServiceResponse

type SignUpCfsServiceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 该用户当前 CFS 服务的状态,none 是未开通,creating 是开通中,created 是已开通
		CfsServiceStatus *string `json:"CfsServiceStatus,omitempty" name:"CfsServiceStatus"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSignUpCfsServiceResponse

func NewSignUpCfsServiceResponse() (response *SignUpCfsServiceResponse)

func (*SignUpCfsServiceResponse) FromJsonString

func (r *SignUpCfsServiceResponse) FromJsonString(s string) error

func (*SignUpCfsServiceResponse) ToJsonString

func (r *SignUpCfsServiceResponse) ToJsonString() string

type TagInfo

type TagInfo struct {

	// 标签键
	TagKey *string `json:"TagKey,omitempty" name:"TagKey"`

	// 标签值
	TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
}

type UpdateCfsFileSystemNameRequest

type UpdateCfsFileSystemNameRequest struct {
	*tchttp.BaseRequest

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

	// 用户自定义文件系统名称
	FsName *string `json:"FsName,omitempty" name:"FsName"`
}

func NewUpdateCfsFileSystemNameRequest

func NewUpdateCfsFileSystemNameRequest() (request *UpdateCfsFileSystemNameRequest)

func (*UpdateCfsFileSystemNameRequest) FromJsonString

func (r *UpdateCfsFileSystemNameRequest) FromJsonString(s string) error

func (*UpdateCfsFileSystemNameRequest) ToJsonString

func (r *UpdateCfsFileSystemNameRequest) ToJsonString() string

type UpdateCfsFileSystemNameResponse

type UpdateCfsFileSystemNameResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户自定义文件系统名称
		CreationToken *string `json:"CreationToken,omitempty" name:"CreationToken"`

		// 文件系统ID
		FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

		// 用户自定义文件系统名称
		FsName *string `json:"FsName,omitempty" name:"FsName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateCfsFileSystemNameResponse

func NewUpdateCfsFileSystemNameResponse() (response *UpdateCfsFileSystemNameResponse)

func (*UpdateCfsFileSystemNameResponse) FromJsonString

func (r *UpdateCfsFileSystemNameResponse) FromJsonString(s string) error

func (*UpdateCfsFileSystemNameResponse) ToJsonString

func (r *UpdateCfsFileSystemNameResponse) ToJsonString() string

type UpdateCfsFileSystemPGroupRequest

type UpdateCfsFileSystemPGroupRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 文件系统 ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}

func NewUpdateCfsFileSystemPGroupRequest

func NewUpdateCfsFileSystemPGroupRequest() (request *UpdateCfsFileSystemPGroupRequest)

func (*UpdateCfsFileSystemPGroupRequest) FromJsonString

func (r *UpdateCfsFileSystemPGroupRequest) FromJsonString(s string) error

func (*UpdateCfsFileSystemPGroupRequest) ToJsonString

func (r *UpdateCfsFileSystemPGroupRequest) ToJsonString() string

type UpdateCfsFileSystemPGroupResponse

type UpdateCfsFileSystemPGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 文件系统 ID
		FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateCfsFileSystemPGroupResponse

func NewUpdateCfsFileSystemPGroupResponse() (response *UpdateCfsFileSystemPGroupResponse)

func (*UpdateCfsFileSystemPGroupResponse) FromJsonString

func (r *UpdateCfsFileSystemPGroupResponse) FromJsonString(s string) error

func (*UpdateCfsFileSystemPGroupResponse) ToJsonString

func (r *UpdateCfsFileSystemPGroupResponse) ToJsonString() string

type UpdateCfsFileSystemSizeLimitRequest

type UpdateCfsFileSystemSizeLimitRequest struct {
	*tchttp.BaseRequest

	// 文件系统容量限制大小,输入范围0-1073741824, 单位为GB;其中输入值为0时,表示不限制文件系统容量。
	FsLimit *uint64 `json:"FsLimit,omitempty" name:"FsLimit"`

	// 文件系统ID
	FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}

func NewUpdateCfsFileSystemSizeLimitRequest

func NewUpdateCfsFileSystemSizeLimitRequest() (request *UpdateCfsFileSystemSizeLimitRequest)

func (*UpdateCfsFileSystemSizeLimitRequest) FromJsonString

func (r *UpdateCfsFileSystemSizeLimitRequest) FromJsonString(s string) error

func (*UpdateCfsFileSystemSizeLimitRequest) ToJsonString

func (r *UpdateCfsFileSystemSizeLimitRequest) ToJsonString() string

type UpdateCfsFileSystemSizeLimitResponse

type UpdateCfsFileSystemSizeLimitResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateCfsFileSystemSizeLimitResponse

func NewUpdateCfsFileSystemSizeLimitResponse() (response *UpdateCfsFileSystemSizeLimitResponse)

func (*UpdateCfsFileSystemSizeLimitResponse) FromJsonString

func (r *UpdateCfsFileSystemSizeLimitResponse) FromJsonString(s string) error

func (*UpdateCfsFileSystemSizeLimitResponse) ToJsonString

func (r *UpdateCfsFileSystemSizeLimitResponse) ToJsonString() string

type UpdateCfsPGroupRequest

type UpdateCfsPGroupRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线
	Name *string `json:"Name,omitempty" name:"Name"`

	// 权限组描述信息,1-255个字符
	DescInfo *string `json:"DescInfo,omitempty" name:"DescInfo"`
}

func NewUpdateCfsPGroupRequest

func NewUpdateCfsPGroupRequest() (request *UpdateCfsPGroupRequest)

func (*UpdateCfsPGroupRequest) FromJsonString

func (r *UpdateCfsPGroupRequest) FromJsonString(s string) error

func (*UpdateCfsPGroupRequest) ToJsonString

func (r *UpdateCfsPGroupRequest) ToJsonString() string

type UpdateCfsPGroupResponse

type UpdateCfsPGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 权限组名称
		Name *string `json:"Name,omitempty" name:"Name"`

		// 描述信息
		DescInfo *string `json:"DescInfo,omitempty" name:"DescInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateCfsPGroupResponse

func NewUpdateCfsPGroupResponse() (response *UpdateCfsPGroupResponse)

func (*UpdateCfsPGroupResponse) FromJsonString

func (r *UpdateCfsPGroupResponse) FromJsonString(s string) error

func (*UpdateCfsPGroupResponse) ToJsonString

func (r *UpdateCfsPGroupResponse) ToJsonString() string

type UpdateCfsRuleRequest

type UpdateCfsRuleRequest struct {
	*tchttp.BaseRequest

	// 权限组 ID
	PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

	// 规则 ID
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

	// 可以填写单个 IP 或者单个网段,例如 10.1.10.11 或者 10.10.1.0/24。默认来访地址为*表示允许所有。同时需要注意,此处需填写 CVM 的内网 IP。
	AuthClientIp *string `json:"AuthClientIp,omitempty" name:"AuthClientIp"`

	// 读写权限, 值为RO、RW;其中 RO 为只读,RW 为读写,不填默认为只读
	RWPermission *string `json:"RWPermission,omitempty" name:"RWPermission"`

	// 用户权限,值为all_squash、no_all_squash、root_squash、no_root_squash。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。不填默认为root_squash。
	UserPermission *string `json:"UserPermission,omitempty" name:"UserPermission"`

	// 规则优先级,参数范围1-100。 其中 1 为最高,100为最低
	Priority *int64 `json:"Priority,omitempty" name:"Priority"`
}

func NewUpdateCfsRuleRequest

func NewUpdateCfsRuleRequest() (request *UpdateCfsRuleRequest)

func (*UpdateCfsRuleRequest) FromJsonString

func (r *UpdateCfsRuleRequest) FromJsonString(s string) error

func (*UpdateCfsRuleRequest) ToJsonString

func (r *UpdateCfsRuleRequest) ToJsonString() string

type UpdateCfsRuleResponse

type UpdateCfsRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 权限组 ID
		PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"`

		// 规则 ID
		RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

		// 允许访问的客户端 IP 或者 IP 段
		AuthClientIp *string `json:"AuthClientIp,omitempty" name:"AuthClientIp"`

		// 读写权限
		RWPermission *string `json:"RWPermission,omitempty" name:"RWPermission"`

		// 用户权限
		UserPermission *string `json:"UserPermission,omitempty" name:"UserPermission"`

		// 优先级
		Priority *int64 `json:"Priority,omitempty" name:"Priority"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateCfsRuleResponse

func NewUpdateCfsRuleResponse() (response *UpdateCfsRuleResponse)

func (*UpdateCfsRuleResponse) FromJsonString

func (r *UpdateCfsRuleResponse) FromJsonString(s string) error

func (*UpdateCfsRuleResponse) ToJsonString

func (r *UpdateCfsRuleResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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