Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot : new features #202

Merged
merged 1 commit into from Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions listOptions.go
Expand Up @@ -13,4 +13,8 @@ type ListOptions struct {
Label string `url:"label,omitempty"`
Tag string `url:"tag,omitempty"`
Region string `url:"region,omitempty"`

// Query params that can be used on the list snapshots call
// https://www.vultr.com/api/#operation/list-snapshots
Description string `url:"description,omitempty"`
}
3 changes: 2 additions & 1 deletion snapshot.go
Expand Up @@ -43,7 +43,8 @@ type SnapshotReq struct {

// SnapshotURLReq struct is used to create snapshots from a URL.
type SnapshotURLReq struct {
URL string `json:"url"`
URL string `json:"url"`
Description string `json:"description,omitempty"`
}

type snapshotsBase struct {
Expand Down