upfs

package
v0.22.59 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package upfs include resources of ucloud upfs product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUPFSVolumeRequest

type CreateUPFSVolumeRequest struct {
	request.CommonBase

	// 计费模式,枚举值为: Year,按年付费; Month,按月付费
	ChargeType *string `required:"false"`

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

	// 文件系统协议,目前仅支持POSIX
	ProtocolType *string `required:"true"`

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

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

	// 文件系统大小,单位为GB,必须为100的整数倍,Size最小为500GB
	Size *int `required:"true"`

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

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

CreateUPFSVolumeRequest is request schema for CreateUPFSVolume action

type CreateUPFSVolumeResponse

type CreateUPFSVolumeResponse struct {
	response.CommonBase

	// UPFS文件系统ID
	VolumeId string

	// UPFS文件系统名称
	VolumeName string
}

CreateUPFSVolumeResponse is response schema for CreateUPFSVolume action

type DescribeUPFSVolumePriceRequest

type DescribeUPFSVolumePriceRequest struct {
	request.CommonBase

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

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

	// 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。
	Size *int `required:"true"`

	// UPFS文件系统id,第一次创建文件系统时不需要传这个参数
	VolumeId *string `required:"false"`
}

DescribeUPFSVolumePriceRequest is request schema for DescribeUPFSVolumePrice action

type DescribeUPFSVolumePriceResponse

type DescribeUPFSVolumePriceResponse struct {
	response.CommonBase

	// upfs 价格信息
	DataSet []UPFSPriceDataSet
}

DescribeUPFSVolumePriceResponse is response schema for DescribeUPFSVolumePrice action

type DescribeUPFSVolumeRequest

type DescribeUPFSVolumeRequest struct {
	request.CommonBase

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

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

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

DescribeUPFSVolumeRequest is request schema for DescribeUPFSVolume action

type DescribeUPFSVolumeResponse

type DescribeUPFSVolumeResponse struct {
	response.CommonBase

	// UPFS文件系统详细信息列表
	DataSet []UPFSVolumeInfo

	// UPFS文件系统总数
	TotalCount int
}

DescribeUPFSVolumeResponse is response schema for DescribeUPFSVolume action

type DescribeUPFSVolumeUpgradePriceRequest

type DescribeUPFSVolumeUpgradePriceRequest struct {
	request.CommonBase

	// 文件系统大小
	Size *string `required:"true"`

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

DescribeUPFSVolumeUpgradePriceRequest is request schema for DescribeUPFSVolumeUpgradePrice action

type DescribeUPFSVolumeUpgradePriceResponse

type DescribeUPFSVolumeUpgradePriceResponse struct {
	response.CommonBase

	// 原价格(单位:分)
	OriginalPrice float64

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

DescribeUPFSVolumeUpgradePriceResponse is response schema for DescribeUPFSVolumeUpgradePrice action

type ExtendUPFSVolumeRequest

type ExtendUPFSVolumeRequest struct {
	request.CommonBase

	// 文件系统大小,单位为GB,最小为6000GB,最大为10PB,必须为1000的整数倍
	Size *int `required:"true"`

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

ExtendUPFSVolumeRequest is request schema for ExtendUPFSVolume action

type ExtendUPFSVolumeResponse

type ExtendUPFSVolumeResponse struct {
	response.CommonBase
}

ExtendUPFSVolumeResponse is response schema for ExtendUPFSVolume action

type RemoveUPFSVolumeRequest

type RemoveUPFSVolumeRequest struct {
	request.CommonBase

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

RemoveUPFSVolumeRequest is request schema for RemoveUPFSVolume action

type RemoveUPFSVolumeResponse

type RemoveUPFSVolumeResponse struct {
	response.CommonBase
}

RemoveUPFSVolumeResponse is response schema for RemoveUPFSVolume action

type UPFSClient

type UPFSClient struct {
	*ucloud.Client
}

UPFSClient is the client of UPFS

func NewClient

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

NewClient will return a instance of UPFSClient

func (*UPFSClient) CreateUPFSVolume

func (c *UPFSClient) CreateUPFSVolume(req *CreateUPFSVolumeRequest) (*CreateUPFSVolumeResponse, error)

API: CreateUPFSVolume

创建UPFS文件系统

func (*UPFSClient) DescribeUPFSVolume

func (c *UPFSClient) DescribeUPFSVolume(req *DescribeUPFSVolumeRequest) (*DescribeUPFSVolumeResponse, error)

API: DescribeUPFSVolume

获取UPFS文件系统列表

func (*UPFSClient) DescribeUPFSVolumePrice

API: DescribeUPFSVolumePrice

获取UPFS文件系统价格

func (*UPFSClient) DescribeUPFSVolumeUpgradePrice

API: DescribeUPFSVolumeUpgradePrice

UPFS文件系统扩容价格

func (*UPFSClient) ExtendUPFSVolume

func (c *UPFSClient) ExtendUPFSVolume(req *ExtendUPFSVolumeRequest) (*ExtendUPFSVolumeResponse, error)

API: ExtendUPFSVolume

UPFS文件系统扩容

func (*UPFSClient) NewCreateUPFSVolumeRequest

func (c *UPFSClient) NewCreateUPFSVolumeRequest() *CreateUPFSVolumeRequest

NewCreateUPFSVolumeRequest will create request of CreateUPFSVolume action.

func (*UPFSClient) NewDescribeUPFSVolumePriceRequest

func (c *UPFSClient) NewDescribeUPFSVolumePriceRequest() *DescribeUPFSVolumePriceRequest

NewDescribeUPFSVolumePriceRequest will create request of DescribeUPFSVolumePrice action.

func (*UPFSClient) NewDescribeUPFSVolumeRequest

func (c *UPFSClient) NewDescribeUPFSVolumeRequest() *DescribeUPFSVolumeRequest

NewDescribeUPFSVolumeRequest will create request of DescribeUPFSVolume action.

func (*UPFSClient) NewDescribeUPFSVolumeUpgradePriceRequest

func (c *UPFSClient) NewDescribeUPFSVolumeUpgradePriceRequest() *DescribeUPFSVolumeUpgradePriceRequest

NewDescribeUPFSVolumeUpgradePriceRequest will create request of DescribeUPFSVolumeUpgradePrice action.

func (*UPFSClient) NewExtendUPFSVolumeRequest

func (c *UPFSClient) NewExtendUPFSVolumeRequest() *ExtendUPFSVolumeRequest

NewExtendUPFSVolumeRequest will create request of ExtendUPFSVolume action.

func (*UPFSClient) NewRemoveUPFSVolumeRequest

func (c *UPFSClient) NewRemoveUPFSVolumeRequest() *RemoveUPFSVolumeRequest

NewRemoveUPFSVolumeRequest will create request of RemoveUPFSVolume action.

func (*UPFSClient) NewUpdateUPFSVolumeInfoRequest

func (c *UPFSClient) NewUpdateUPFSVolumeInfoRequest() *UpdateUPFSVolumeInfoRequest

NewUpdateUPFSVolumeInfoRequest will create request of UpdateUPFSVolumeInfo action.

func (*UPFSClient) RemoveUPFSVolume

func (c *UPFSClient) RemoveUPFSVolume(req *RemoveUPFSVolumeRequest) (*RemoveUPFSVolumeResponse, error)

API: RemoveUPFSVolume

删除UPFS文件系统

func (*UPFSClient) UpdateUPFSVolumeInfo

API: UpdateUPFSVolumeInfo

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

type UPFSPriceDataSet

type UPFSPriceDataSet struct {

	// “upfs”
	ChargeName string

	// Year, Month
	ChargeType string

	// 原价格 (单位: 分)
	OriginalPrice float64

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

UPFSPriceDataSet - upfs 价格信息

type UPFSVolumeInfo

type UPFSVolumeInfo struct {

	// 计费类型
	ChargeType string

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

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

	// 是否过期
	IsExpired string

	// 文件系统挂载地址
	MountAddress string

	// 文件系统挂载状态
	MountStatus int

	// 文件系统协议类型
	ProtocolType string

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

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

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

	// 文件系统ID
	VolumeId string

	// 文件系统名称
	VolumeName string

	// 可用区名字
	Zone string
}

UPFSVolumeInfo - UPFS文件系统信息

type UpdateUPFSVolumeInfoRequest

type UpdateUPFSVolumeInfoRequest struct {
	request.CommonBase

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

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

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

UpdateUPFSVolumeInfoRequest is request schema for UpdateUPFSVolumeInfo action

type UpdateUPFSVolumeInfoResponse

type UpdateUPFSVolumeInfoResponse struct {
	response.CommonBase
}

UpdateUPFSVolumeInfoResponse is response schema for UpdateUPFSVolumeInfo action

Jump to

Keyboard shortcuts

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