ufs

package
v0.22.24 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 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 AddUFSVolumeMountPointRequest

type AddUFSVolumeMountPointRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`

	// 挂载点名称
	MountPointName *string `required:"true"`

	// Vpc ID
	VpcId *string `required:"true"`

	// Subnet ID
	SubnetId *string `required:"true"`
}

AddUFSVolumeMountPointRequest is request schema for AddUFSVolumeMountPoint action

type AddUFSVolumeMountPointResponse

type AddUFSVolumeMountPointResponse struct {
	response.CommonBase
}

AddUFSVolumeMountPointResponse is response schema for AddUFSVolumeMountPoint action

type CreateUFSVolumeRequest

type CreateUFSVolumeRequest struct {
	request.CommonBase

	// 文件系统大小,大小1024G ~ 25600G (1T ~ 25T),必须为1024的整数倍。
	Size *int `required:"true"`

	// 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型
	StorageType *string `required:"false"`

	// 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议
	ProtocolType *string `required:"false"`

	// 文件系统名称
	VolumeName *string `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// 文件系统所属业务组
	Tag *string `required:"false"`

	// 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); Trial,试用(需开启权限) 默认为Dynamic
	ChargeType *string `required:"false"`

	// 购买时长 默认: 1
	Quantity *int `required:"false"`

	// 使用的代金券id
	CouponId *string `required:"false"`
}

CreateUFSVolumeRequest is request schema for CreateUFSVolume action

type CreateUFSVolumeResponse

type CreateUFSVolumeResponse struct {
	response.CommonBase

	// 文件系统名称
	VolumeName string

	// 文件系统ID
	VolumeId string

	// 文件系统挂载点状态
	VolumeStatus string
}

CreateUFSVolumeResponse is response schema for CreateUFSVolume action

type DescribeUFSVPCSubnetRequest

type DescribeUFSVPCSubnetRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`
}

DescribeUFSVPCSubnetRequest is request schema for DescribeUFSVPCSubnet action

type DescribeUFSVPCSubnetResponse

type DescribeUFSVPCSubnetResponse struct {
	response.CommonBase

	// 用户的vpc信息
	DataSet []VPCInfo
}

DescribeUFSVPCSubnetResponse is response schema for DescribeUFSVPCSubnet action

type DescribeUFSVolume2Request

type DescribeUFSVolume2Request struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"false"`

	// 文件列表起始
	Offset *int `required:"false"`

	// 文件列表长度
	Limit *int `required:"false"`

	// 枚举值,是否拉取性能型文件系统列表,1表示只拉取容量型文件系统列表,默认为0
	OnlyBasic *int `required:"false"`
}

DescribeUFSVolume2Request is request schema for DescribeUFSVolume2 action

type DescribeUFSVolume2Response

type DescribeUFSVolume2Response struct {
	response.CommonBase

	// 文件系统总数
	TotalCount int

	// 文件系统详细信息列表
	DataSet []UFSVolumeInfo2
}

DescribeUFSVolume2Response is response schema for DescribeUFSVolume2 action

type DescribeUFSVolumeMountpointRequest

type DescribeUFSVolumeMountpointRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`
}

DescribeUFSVolumeMountpointRequest is request schema for DescribeUFSVolumeMountpoint action

type DescribeUFSVolumeMountpointResponse

type DescribeUFSVolumeMountpointResponse struct {
	response.CommonBase

	//
	DataSet []MountPointInfo

	// 目前的挂载点总数
	TotalMountPointNum int

	// 文件系统能创建的最大挂载点数目
	MaxMountPointNum int
}

DescribeUFSVolumeMountpointResponse is response schema for DescribeUFSVolumeMountpoint action

type DescribeUFSVolumePriceRequest

type DescribeUFSVolumePriceRequest struct {
	request.CommonBase

	// 文件系统大小,大小1024G ~ 25600G (1T ~ 25T),必须为1024的整数倍。
	Size *int `required:"true"`

	// 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品
	StorageType *string `required:"true"`

	// 购买UFS的时长, 默认为1
	Quantity *int `required:"false"`

	// Year, Month, Dynamic,Trial,默认: Dynamic
	ChargeType *string `required:"false"`
}

DescribeUFSVolumePriceRequest is request schema for DescribeUFSVolumePrice action

type DescribeUFSVolumePriceResponse

type DescribeUFSVolumePriceResponse struct {
	response.CommonBase

	// ufs 价格信息
	DataSet []UFSPriceDataSet
}

DescribeUFSVolumePriceResponse is response schema for DescribeUFSVolumePrice action

type DescribeUFSVolumeRequest

type DescribeUFSVolumeRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"false"`

	// 文件列表起始
	Offset *int `required:"false"`

	// 文件列表长度
	Limit *int `required:"false"`
}

DescribeUFSVolumeRequest is request schema for DescribeUFSVolume action

type DescribeUFSVolumeResponse

type DescribeUFSVolumeResponse struct {
	response.CommonBase

	// 文件系统总数
	TotalCount int

	// 文件系统详细信息列表
	DataSet []UFSVolumeInfo
}

DescribeUFSVolumeResponse is response schema for DescribeUFSVolume action

type DescribeUFSVolumeUpgradePriceRequest

type DescribeUFSVolumeUpgradePriceRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`

	// 文件系统大小,大小1024G ~ 25600G (1T ~ 25T),必须为1024的整数倍。
	Size *string `required:"true"`
}

DescribeUFSVolumeUpgradePriceRequest is request schema for DescribeUFSVolumeUpgradePrice action

type DescribeUFSVolumeUpgradePriceResponse

type DescribeUFSVolumeUpgradePriceResponse struct {
	response.CommonBase

	// 价格(单位:分)
	Price float64
}

DescribeUFSVolumeUpgradePriceResponse is response schema for DescribeUFSVolumeUpgradePrice action

type ExtendUFSVolumeRequest

type ExtendUFSVolumeRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`

	// 文件系统大小,大小1024G ~ 25600G (1T ~ 25T),必须为1024的整数倍。
	Size *string `required:"true"`
}

ExtendUFSVolumeRequest is request schema for ExtendUFSVolume action

type ExtendUFSVolumeResponse

type ExtendUFSVolumeResponse struct {
	response.CommonBase
}

ExtendUFSVolumeResponse is response schema for ExtendUFSVolume action

type MountPointInfo

type MountPointInfo struct {

	// 挂载点名称
	MountPointName string

	// Vpc ID
	VpcId string

	// Subnet ID
	SubnetId string

	// 挂载点IP
	MountPointIp string

	// 文件系统创建时间(unix时间戳)
	CreateTime int

	// Subnet ID + 网段的形式,方便前端展示
	SubnetDescription string
}

MountPointInfo - 挂载点信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type RemoveUFSVolumeMountPointRequest

type RemoveUFSVolumeMountPointRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`

	// Vpc ID
	VpcId *string `required:"true"`

	// Subnet ID
	SubnetId *string `required:"true"`
}

RemoveUFSVolumeMountPointRequest is request schema for RemoveUFSVolumeMountPoint action

type RemoveUFSVolumeMountPointResponse

type RemoveUFSVolumeMountPointResponse struct {
	response.CommonBase
}

RemoveUFSVolumeMountPointResponse is response schema for RemoveUFSVolumeMountPoint action

type RemoveUFSVolumeRequest

type RemoveUFSVolumeRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`
}

RemoveUFSVolumeRequest is request schema for RemoveUFSVolume action

type RemoveUFSVolumeResponse

type RemoveUFSVolumeResponse struct {
	response.CommonBase
}

RemoveUFSVolumeResponse is response schema for RemoveUFSVolume action

type SubnetFrontEnd

type SubnetFrontEnd struct {

	// 子网id
	SubnetId string

	// 子网id + 网段
	SubnetDescription string
}

SubnetFrontEnd - 子网展示信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UFSClient

type UFSClient struct {
	*ucloud.Client
}

UFSClient is the client of UFS

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UFSClient

NewClient will return a instance of UFSClient

func (*UFSClient) AddUFSVolumeMountPoint

AddUFSVolumeMountPoint - 添加文件系统挂载点

func (*UFSClient) CreateUFSVolume

func (c *UFSClient) CreateUFSVolume(req *CreateUFSVolumeRequest) (*CreateUFSVolumeResponse, error)

CreateUFSVolume - 创建文件系统

func (*UFSClient) DescribeUFSVPCSubnet

func (c *UFSClient) DescribeUFSVPCSubnet(req *DescribeUFSVPCSubnetRequest) (*DescribeUFSVPCSubnetResponse, error)

DescribeUFSVPCSubnet - 展示可供文件系统挂载的VPC和SUBNET

func (*UFSClient) DescribeUFSVolume

func (c *UFSClient) DescribeUFSVolume(req *DescribeUFSVolumeRequest) (*DescribeUFSVolumeResponse, error)

DescribeUFSVolume - 获取文件系统列表

func (*UFSClient) DescribeUFSVolume2

func (c *UFSClient) DescribeUFSVolume2(req *DescribeUFSVolume2Request) (*DescribeUFSVolume2Response, error)

DescribeUFSVolume2 - 获取文件系统列表

func (*UFSClient) DescribeUFSVolumeMountpoint

DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息

func (*UFSClient) DescribeUFSVolumePrice

DescribeUFSVolumePrice - 获取文件系统价格

func (*UFSClient) DescribeUFSVolumeUpgradePrice

DescribeUFSVolumeUpgradePrice - 文件系统扩容价格

func (*UFSClient) ExtendUFSVolume

func (c *UFSClient) ExtendUFSVolume(req *ExtendUFSVolumeRequest) (*ExtendUFSVolumeResponse, error)

ExtendUFSVolume - 文件系统扩容

func (*UFSClient) NewAddUFSVolumeMountPointRequest

func (c *UFSClient) NewAddUFSVolumeMountPointRequest() *AddUFSVolumeMountPointRequest

NewAddUFSVolumeMountPointRequest will create request of AddUFSVolumeMountPoint action.

func (*UFSClient) NewCreateUFSVolumeRequest

func (c *UFSClient) NewCreateUFSVolumeRequest() *CreateUFSVolumeRequest

NewCreateUFSVolumeRequest will create request of CreateUFSVolume action.

func (*UFSClient) NewDescribeUFSVPCSubnetRequest

func (c *UFSClient) NewDescribeUFSVPCSubnetRequest() *DescribeUFSVPCSubnetRequest

NewDescribeUFSVPCSubnetRequest will create request of DescribeUFSVPCSubnet action.

func (*UFSClient) NewDescribeUFSVolume2Request

func (c *UFSClient) NewDescribeUFSVolume2Request() *DescribeUFSVolume2Request

NewDescribeUFSVolume2Request will create request of DescribeUFSVolume2 action.

func (*UFSClient) NewDescribeUFSVolumeMountpointRequest

func (c *UFSClient) NewDescribeUFSVolumeMountpointRequest() *DescribeUFSVolumeMountpointRequest

NewDescribeUFSVolumeMountpointRequest will create request of DescribeUFSVolumeMountpoint action.

func (*UFSClient) NewDescribeUFSVolumePriceRequest

func (c *UFSClient) NewDescribeUFSVolumePriceRequest() *DescribeUFSVolumePriceRequest

NewDescribeUFSVolumePriceRequest will create request of DescribeUFSVolumePrice action.

func (*UFSClient) NewDescribeUFSVolumeRequest

func (c *UFSClient) NewDescribeUFSVolumeRequest() *DescribeUFSVolumeRequest

NewDescribeUFSVolumeRequest will create request of DescribeUFSVolume action.

func (*UFSClient) NewDescribeUFSVolumeUpgradePriceRequest

func (c *UFSClient) NewDescribeUFSVolumeUpgradePriceRequest() *DescribeUFSVolumeUpgradePriceRequest

NewDescribeUFSVolumeUpgradePriceRequest will create request of DescribeUFSVolumeUpgradePrice action.

func (*UFSClient) NewExtendUFSVolumeRequest

func (c *UFSClient) NewExtendUFSVolumeRequest() *ExtendUFSVolumeRequest

NewExtendUFSVolumeRequest will create request of ExtendUFSVolume action.

func (*UFSClient) NewRemoveUFSVolumeMountPointRequest

func (c *UFSClient) NewRemoveUFSVolumeMountPointRequest() *RemoveUFSVolumeMountPointRequest

NewRemoveUFSVolumeMountPointRequest will create request of RemoveUFSVolumeMountPoint action.

func (*UFSClient) NewRemoveUFSVolumeRequest

func (c *UFSClient) NewRemoveUFSVolumeRequest() *RemoveUFSVolumeRequest

NewRemoveUFSVolumeRequest will create request of RemoveUFSVolume action.

func (*UFSClient) NewUpdateUFSVolumeInfoRequest

func (c *UFSClient) NewUpdateUFSVolumeInfoRequest() *UpdateUFSVolumeInfoRequest

NewUpdateUFSVolumeInfoRequest will create request of UpdateUFSVolumeInfo action.

func (*UFSClient) RemoveUFSVolume

func (c *UFSClient) RemoveUFSVolume(req *RemoveUFSVolumeRequest) (*RemoveUFSVolumeResponse, error)

RemoveUFSVolume - 删除UFS文件系统

func (*UFSClient) RemoveUFSVolumeMountPoint

RemoveUFSVolumeMountPoint - 删除文件系统挂载点

func (*UFSClient) UpdateUFSVolumeInfo

func (c *UFSClient) UpdateUFSVolumeInfo(req *UpdateUFSVolumeInfoRequest) (*UpdateUFSVolumeInfoResponse, error)

UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注)

type UFSPriceDataSet

type UFSPriceDataSet struct {

	// Year, Month, Dynamic,Trial
	ChargeType string

	// 价格 (单位: 分)
	Price float64

	// “UFS”
	ChargeName string
}

UFSPriceDataSet - ufs 价格信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UFSVolumeInfo

type UFSVolumeInfo struct {

	// 文件系统名称
	VolumeName string

	// 文件系统ID
	VolumeId string

	// 文件系统是否已添加挂载点
	VolumeStatus string

	// 文件系统已添加挂载点时返回
	MountPoint string

	// 文件系统备注信息
	Remark string

	// 文件系统所属业务组
	Tag string

	// 文件系统创建时间(unix时间戳)
	CreateTime int

	// 文件系统过期时间(unix时间戳)
	ExpiredTime int

	// 文件系统大小,单位GB
	Size int

	// 是否过期
	IsExpired string
}

UFSVolumeInfo - 文件系统信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UFSVolumeInfo2

type UFSVolumeInfo2 struct {

	// 文件系统名称
	VolumeName string

	// 文件系统ID
	VolumeId string

	// 当前文件系统已创建的挂载点数目
	TotalMountPointNum int

	// 文件系统允许创建的最大挂载点数目
	MaxMountPointNum int

	// 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型
	StorageType string

	// 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议
	ProtocolType string

	// 文件系统备注信息
	Remark string

	// 文件系统所属业务组
	Tag string

	// 文件系统创建时间(unix时间戳)
	CreateTime int

	// 文件系统过期时间(unix时间戳)
	ExpiredTime int

	// 文件系统大小,单位GB
	Size int

	// 是否过期
	IsExpired string
}

UFSVolumeInfo2 - 文件系统信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UpdateUFSVolumeInfoRequest

type UpdateUFSVolumeInfoRequest struct {
	request.CommonBase

	// 文件系统ID
	VolumeId *string `required:"true"`

	// 文件系统名称(文件系统名称/备注至少传入其中一个)
	VolumeName *string `required:"false"`

	// 文件系统备注(文件系统名称/备注至少传入其中一个)
	Remark *string `required:"false"`
}

UpdateUFSVolumeInfoRequest is request schema for UpdateUFSVolumeInfo action

type UpdateUFSVolumeInfoResponse

type UpdateUFSVolumeInfoResponse struct {
	response.CommonBase
}

UpdateUFSVolumeInfoResponse is response schema for UpdateUFSVolumeInfo action

type VPCInfo

type VPCInfo struct {

	// Vpc ID
	VpcId string

	// subnet信息
	SubnetIds []SubnetFrontEnd

	// 是否创建subnet,如果为false,则提示用户创建subnet。如果为true,同时SubnetIds为空,则表明当前vpc下已经没有subnet可以挂载
	SubnetCreated bool
}

VPCInfo - vpc信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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