diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index fd756f3747..929ef9997d 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -19,8 +19,8 @@ }, { "ImportPath": "github.com/digitalocean/godo", - "Comment": "v0.4.0-1-ga7066ec", - "Rev": "a7066ece1ff635d9fc12d123cd8a22aaf7b0062e" + "Comment": "v0.5.0", + "Rev": "5478aae80694de1d2d0e02c386bbedd201266234" }, { "ImportPath": "github.com/docker/docker/api", diff --git a/Godeps/_workspace/src/github.com/digitalocean/godo/droplets.go b/Godeps/_workspace/src/github.com/digitalocean/godo/droplets.go index 3e29078e4c..5b73cdc734 100644 --- a/Godeps/_workspace/src/github.com/digitalocean/godo/droplets.go +++ b/Godeps/_workspace/src/github.com/digitalocean/godo/droplets.go @@ -57,11 +57,15 @@ type dropletsRoot struct { // DropletCreateRequest represents a request to create a droplet. type DropletCreateRequest struct { - Name string `json:"name"` - Region string `json:"region"` - Size string `json:"size"` - Image string `json:"image"` - SSHKeys []interface{} `json:"ssh_keys"` + Name string `json:"name"` + Region string `json:"region"` + Size string `json:"size"` + Image string `json:"image"` + SSHKeys []interface{} `json:"ssh_keys"` + Backups bool `json:"backups"` + IPv6 bool `json:"ipv6"` + PrivateNetworking bool `json:"private_networking"` + UserData string `json:"user_data"` } func (d DropletCreateRequest) String() string { diff --git a/Godeps/_workspace/src/github.com/digitalocean/godo/godo_test.go b/Godeps/_workspace/src/github.com/digitalocean/godo/godo_test.go index 3cae791ea3..8b71451924 100644 --- a/Godeps/_workspace/src/github.com/digitalocean/godo/godo_test.go +++ b/Godeps/_workspace/src/github.com/digitalocean/godo/godo_test.go @@ -78,7 +78,10 @@ func TestNewRequest(t *testing.T) { c := NewClient(nil) inURL, outURL := "/foo", defaultBaseURL+"foo" - inBody, outBody := &DropletCreateRequest{Name: "l"}, `{"name":"l","region":"","size":"","image":"","ssh_keys":null}`+"\n" + inBody, outBody := &DropletCreateRequest{Name: "l"}, + `{"name":"l","region":"","size":"","image":"",`+ + `"ssh_keys":null,"backups":false,"ipv6":false,`+ + `"private_networking":false,"user_data":""}`+"\n" req, _ := c.NewRequest("GET", inURL, inBody) // test relative URL was expanded diff --git a/Godeps/_workspace/src/github.com/digitalocean/godo/links.go b/Godeps/_workspace/src/github.com/digitalocean/godo/links.go index fb220b8d67..64db34cb70 100644 --- a/Godeps/_workspace/src/github.com/digitalocean/godo/links.go +++ b/Godeps/_workspace/src/github.com/digitalocean/godo/links.go @@ -51,7 +51,7 @@ func (p *Pages) current() (int, error) { // IsLastPage returns true if the current page is the last func (l *Links) IsLastPage() bool { - if l == nil { + if l.Pages == nil { return true } return l.Pages.isLast() diff --git a/Godeps/_workspace/src/github.com/digitalocean/godo/regions.go b/Godeps/_workspace/src/github.com/digitalocean/godo/regions.go index 6be3ba16d0..63977fc6d0 100644 --- a/Godeps/_workspace/src/github.com/digitalocean/godo/regions.go +++ b/Godeps/_workspace/src/github.com/digitalocean/godo/regions.go @@ -19,6 +19,7 @@ type Region struct { Name string `json:"name,omitempty"` Sizes []string `json:"sizes,omitempty"` Available bool `json:"available,omitempty` + Features []string `json:"features,omitempty` } type regionsRoot struct {