2018-01-23 13:30:39 +05:30
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
// SnapCreateReq represents a Snapshot Create Request
|
|
|
|
|
type SnapCreateReq struct {
|
|
|
|
|
VolName string `json:"volname"`
|
|
|
|
|
SnapName string `json:"snapname"`
|
|
|
|
|
TimeStamp bool `json:"timestamp,omitempty"`
|
2018-05-03 19:30:51 +05:30
|
|
|
Description string `json:"description,omitempty"`
|
2018-01-23 13:30:39 +05:30
|
|
|
Force bool `json:"force,omitempty"`
|
|
|
|
|
}
|
2018-01-23 13:32:02 +05:30
|
|
|
|
|
|
|
|
//SnapActivateReq represents a request to activate a snapshot
|
|
|
|
|
type SnapActivateReq struct {
|
|
|
|
|
Force bool `json:"force,omitempty"`
|
|
|
|
|
}
|
2018-06-14 17:34:35 +05:30
|
|
|
|
|
|
|
|
//SnapCloneReq represents a request to clone a snapshot
|
|
|
|
|
type SnapCloneReq struct {
|
|
|
|
|
CloneName string `json:"clonename"`
|
|
|
|
|
}
|