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

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 购买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 CloneUDiskSnapshotRequest

type CloneUDiskSnapshotRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 实例名称
	Name *string `required:"true"`

	// 克隆父Snapshot的Id
	SourceId *string `required:"true"`

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

	// Disk注释
	Comment *string `required:"false"`

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

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

	// 是否开启数据方舟   默认:No
	UDataArkMode *string `required:"false"`

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

CloneUDiskSnapshotRequest is request schema for CloneUDiskSnapshot action

type CloneUDiskSnapshotResponse

type CloneUDiskSnapshotResponse struct {
	response.CommonBase

	// 创建UDisk Id
	UDiskId []string
}

CloneUDiskSnapshotResponse is response schema for CloneUDiskSnapshot action

type CreateUDiskSnapshotRequest

type CreateUDiskSnapshotRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 快照的UDisk的Id
	UDiskId *string `required:"true"`

	// 快照名称
	Name *string `required:"true"`

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

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

	// 快照描述
	Comment *string `required:"false"`
}

CreateUDiskSnapshotRequest is request schema for CreateUDiskSnapshot action

type CreateUDiskSnapshotResponse

type CreateUDiskSnapshotResponse struct {
	response.CommonBase

	// 快照Id
	SnapshotId []string
}

CreateUDiskSnapshotResponse is response schema for CreateUDiskSnapshot 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) CloneUDiskSnapshot

CloneUDiskSnapshot - 从快照创建UDisk克隆

func (*UDiskClient) CreateUDiskSnapshot

CreateUDiskSnapshot - 创建snapshot快照

func (*UDiskClient) NewCheckUDiskAllowanceRequest

func (c *UDiskClient) NewCheckUDiskAllowanceRequest() *CheckUDiskAllowanceRequest

NewCheckUDiskAllowanceRequest will create request of CheckUDiskAllowance action.

func (*UDiskClient) NewCloneUDiskSnapshotRequest

func (c *UDiskClient) NewCloneUDiskSnapshotRequest() *CloneUDiskSnapshotRequest

NewCloneUDiskSnapshotRequest will create request of CloneUDiskSnapshot action.

func (*UDiskClient) NewCreateUDiskSnapshotRequest

func (c *UDiskClient) NewCreateUDiskSnapshotRequest() *CreateUDiskSnapshotRequest

NewCreateUDiskSnapshotRequest will create request of CreateUDiskSnapshot action.

Jump to

Keyboard shortcuts

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