Documentation ¶
Index ¶
- type DeleteUDiskSnapshotRequest
- type DeleteUDiskSnapshotResponse
- type DescribeUDiskSnapshotRequest
- type DescribeUDiskSnapshotResponse
- type UDiskClient
- func (c *UDiskClient) DeleteUDiskSnapshot(req *DeleteUDiskSnapshotRequest) (*DeleteUDiskSnapshotResponse, error)
- func (c *UDiskClient) DescribeUDiskSnapshot(req *DescribeUDiskSnapshotRequest) (*DescribeUDiskSnapshotResponse, error)
- func (c *UDiskClient) NewDeleteUDiskSnapshotRequest() *DeleteUDiskSnapshotRequest
- func (c *UDiskClient) NewDescribeUDiskSnapshotRequest() *DescribeUDiskSnapshotRequest
- type UDiskSnapshotSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteUDiskSnapshotRequest ¶
type DeleteUDiskSnapshotRequest struct { request.CommonBase // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"true"` // 快照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 // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"false"` // 数据偏移量, 默认为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 {
// contains filtered or unexported fields
}
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) DeleteUDiskSnapshot ¶
func (c *UDiskClient) DeleteUDiskSnapshot(req *DeleteUDiskSnapshotRequest) (*DeleteUDiskSnapshotResponse, error)
DeleteUDiskSnapshot - 删除Snapshot
func (*UDiskClient) DescribeUDiskSnapshot ¶
func (c *UDiskClient) DescribeUDiskSnapshot(req *DescribeUDiskSnapshotRequest) (*DescribeUDiskSnapshotResponse, error)
DescribeUDiskSnapshot - 获取UDisk快照
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.