Skip to content

Commit

Permalink
snapshot updates (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddymko committed Jan 20, 2022
1 parent 3708b7b commit 93bb1f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 93bb1f2

Please sign in to comment.