udisk

package
v0.0.0-...-c113622 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 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 CheckUDiskAllowanceRequest

type CheckUDiskAllowanceRequest struct {
	request.CommonBase

	// 购买UDisk大小,单位:GB,范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限。
	Size *int `required:"true"`

	// 资源申请个数,默认为一个
	Count *int `required:"false"`
}

CheckUDiskAllowanceRequest is request schema for CheckUDiskAllowance action

type CheckUDiskAllowanceResponse

type CheckUDiskAllowanceResponse struct {
	response.CommonBase

	// 资源核查部分成功情况下,成功个数
	Count int
}

CheckUDiskAllowanceResponse is response schema for CheckUDiskAllowance action

type DeleteUDiskSnapshotRequest

type DeleteUDiskSnapshotRequest struct {
	request.CommonBase

	// 快照Id
	SnapshotId *string `required:"true"`

	// UDisk Id,删除该盘所创建出来的所有快照
	UDiskId *string `required:"false"`
}

DeleteUDiskSnapshotRequest is request schema for DeleteUDiskSnapshot action

type DeleteUDiskSnapshotResponse

type DeleteUDiskSnapshotResponse struct {
	response.CommonBase
}

DeleteUDiskSnapshotResponse is response schema for DeleteUDiskSnapshot action

type DescribeUDiskSnapshotRequest

type DescribeUDiskSnapshotRequest struct {
	request.CommonBase

	// 数据偏移量, 默认为0
	Offset *int `required:"false"`

	// 返回数据长度, 默认为20
	Limit *int `required:"false"`

	// UDiskId,返回该盘所做快照.(必须同时传Zone)
	UDiskId *string `required:"false"`

	// 快照id,SnapshotId , UDiskId 同时传SnapshotId优先
	SnapshotId *string `required:"false"`
}

DescribeUDiskSnapshotRequest is request schema for DescribeUDiskSnapshot action

type DescribeUDiskSnapshotResponse

type DescribeUDiskSnapshotResponse struct {
	response.CommonBase

	// JSON 格式的Snapshot列表, 详细参见 UDiskSnapshotSet
	DataSet []UDiskSnapshotSet

	// 根据过滤条件得到的总数
	TotalCount int
}

DescribeUDiskSnapshotResponse is response schema for DescribeUDiskSnapshot action

type UDiskClient

type UDiskClient struct {
	*ucloud.Client
}

UDiskClient is the client of UDisk

func NewClient

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

NewClient will return a instance of UDiskClient

func (*UDiskClient) CheckUDiskAllowance

CheckUDiskAllowance - 检查UDisk资源余量

func (*UDiskClient) DeleteUDiskSnapshot

DeleteUDiskSnapshot - 删除Snapshot

func (*UDiskClient) DescribeUDiskSnapshot

DescribeUDiskSnapshot - 获取UDisk快照

func (*UDiskClient) NewCheckUDiskAllowanceRequest

func (c *UDiskClient) NewCheckUDiskAllowanceRequest() *CheckUDiskAllowanceRequest

NewCheckUDiskAllowanceRequest will create request of CheckUDiskAllowance action.

func (*UDiskClient) NewDeleteUDiskSnapshotRequest

func (c *UDiskClient) NewDeleteUDiskSnapshotRequest() *DeleteUDiskSnapshotRequest

NewDeleteUDiskSnapshotRequest will create request of DeleteUDiskSnapshot action.

func (*UDiskClient) NewDescribeUDiskSnapshotRequest

func (c *UDiskClient) NewDescribeUDiskSnapshotRequest() *DescribeUDiskSnapshotRequest

NewDescribeUDiskSnapshotRequest will create request of DescribeUDiskSnapshot action.

type UDiskSnapshotSet

type UDiskSnapshotSet struct {

	// 快照Id
	SnapshotId string

	// 快照名称
	Name string

	// 快照的源UDisk的Id
	UDiskId string

	// 快照的源UDisk的Name
	UDiskName string

	// 创建时间
	CreateTime int

	// 过期时间
	ExpiredTime int

	// 容量单位GB
	Size int

	// 快照描述
	Comment string

	// 快照状态,Normal:正常,Failed:失败,Creating:制作中
	Status string

	// 对应磁盘是否处于可用状态
	IsUDiskAvailable bool

	// 快照版本
	Version string

	// 对应磁盘制作快照时所挂载的主机
	UHostId string

	// 磁盘类型,0:数据盘,1:系统盘
	DiskType int
}

UDiskSnapshotSet - DescribeUDiskSnapshot

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