diff --git a/go.mod b/go.mod index 6708a892c..1e684074b 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.25.0 require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc - github.com/digitalocean/godo v1.172.0 + github.com/digitalocean/godo v1.173.0 github.com/go-logr/logr v1.4.3 github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 2c839674b..3a392b8c1 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/digitalocean/godo v1.172.0 h1:7AYPfmCUlScyoQJF+3rVw17HR3V1+ogf2qmf2SND/DI= -github.com/digitalocean/godo v1.172.0/go.mod h1:xQsWpVCCbkDrWisHA72hPzPlnC+4W5w/McZY5ij9uvU= +github.com/digitalocean/godo v1.173.0 h1:tgzevGhlz9VFjk2y3NmeItUT4vIVVCRFETlG/1GlEQI= +github.com/digitalocean/godo v1.173.0/go.mod h1:xQsWpVCCbkDrWisHA72hPzPlnC+4W5w/McZY5ij9uvU= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bFY/oTyCes= diff --git a/vendor/github.com/digitalocean/godo/CHANGELOG.md b/vendor/github.com/digitalocean/godo/CHANGELOG.md index eb64c895b..503029664 100644 --- a/vendor/github.com/digitalocean/godo/CHANGELOG.md +++ b/vendor/github.com/digitalocean/godo/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [1.173.0] - 2026-01-22 + +- #942 - @anup-deka - Fix data type +- #941 - @v-amanjain-afk - removed deprecated region from nfs api + ## [1.172.0] - 2026-01-13 - #932 - @fumblehool - APPS-12654: Add CancelJobInvocation API diff --git a/vendor/github.com/digitalocean/godo/godo.go b/vendor/github.com/digitalocean/godo/godo.go index 9f69b8a11..8be2b35e3 100644 --- a/vendor/github.com/digitalocean/godo/godo.go +++ b/vendor/github.com/digitalocean/godo/godo.go @@ -21,7 +21,7 @@ import ( ) const ( - libraryVersion = "1.172.0" + libraryVersion = "1.173.0" defaultBaseURL = "https://api.digitalocean.com/" userAgent = "godo/" + libraryVersion mediaType = "application/json" diff --git a/vendor/github.com/digitalocean/godo/gradientai.go b/vendor/github.com/digitalocean/godo/gradientai.go index 8b0ee4da8..74207ff6f 100644 --- a/vendor/github.com/digitalocean/godo/gradientai.go +++ b/vendor/github.com/digitalocean/godo/gradientai.go @@ -371,7 +371,7 @@ type Workspace struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` CreatedByEmail string `json:"created_by_email,omitempty"` - CreatedBy uint64 `json:"created_by,omitempty"` + CreatedBy string `json:"created_by,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` DeletedAt *Timestamp `json:"deleted_at,omitempty"` diff --git a/vendor/github.com/digitalocean/godo/nfs.go b/vendor/github.com/digitalocean/godo/nfs.go index 1ef6aae92..0bd2d4b40 100644 --- a/vendor/github.com/digitalocean/godo/nfs.go +++ b/vendor/github.com/digitalocean/godo/nfs.go @@ -166,9 +166,6 @@ func (s *NfsServiceOp) Get(ctx context.Context, nfsShareId string, region string if nfsShareId == "" { return nil, nil, NewArgError("id", "cannot be empty") } - if region == "" { - return nil, nil, NewArgError("region", "cannot be empty") - } path := fmt.Sprintf("%s/%s", nfsBasePath, nfsShareId) @@ -194,10 +191,6 @@ func (s *NfsServiceOp) Get(ctx context.Context, nfsShareId string, region string // List returns a list of NFS shares. func (s *NfsServiceOp) List(ctx context.Context, opts *ListOptions, region string) ([]*Nfs, *Response, error) { - if region == "" { - return nil, nil, NewArgError("region", "cannot be empty") - } - path, err := addOptions(nfsBasePath, opts) if err != nil { return nil, nil, err @@ -235,10 +228,6 @@ func (s *NfsServiceOp) Delete(ctx context.Context, nfsShareId string, region str if nfsShareId == "" { return nil, NewArgError("id", "cannot be empty") } - if region == "" { - return nil, NewArgError("region", "cannot be empty") - } - path := fmt.Sprintf("%s/%s", nfsBasePath, nfsShareId) deleteOpts := &nfsOptions{Region: region} @@ -265,9 +254,6 @@ func (s *NfsServiceOp) GetSnapshot(ctx context.Context, nfsSnapshotID string, re if nfsSnapshotID == "" { return nil, nil, NewArgError("snapshotID", "cannot be empty") } - if region == "" { - return nil, nil, NewArgError("region", "cannot be empty") - } path := fmt.Sprintf("%s/%s", nfsSnapshotsBasePath, nfsSnapshotID) @@ -293,9 +279,6 @@ func (s *NfsServiceOp) GetSnapshot(ctx context.Context, nfsSnapshotID string, re // List returns a list of NFS snapshots. func (s *NfsServiceOp) ListSnapshots(ctx context.Context, opts *ListOptions, nfsShareId, region string) ([]*NfsSnapshot, *Response, error) { - if region == "" { - return nil, nil, NewArgError("region", "cannot be empty") - } path, err := addOptions(nfsSnapshotsBasePath, opts) if err != nil { @@ -334,10 +317,6 @@ func (s *NfsServiceOp) DeleteSnapshot(ctx context.Context, nfsSnapshotID string, if nfsSnapshotID == "" { return nil, NewArgError("snapshotID", "cannot be empty") } - if region == "" { - return nil, NewArgError("region", "cannot be empty") - } - path := fmt.Sprintf("%s/%s", nfsSnapshotsBasePath, nfsSnapshotID) deleteOpts := &nfsOptions{Region: region} diff --git a/vendor/github.com/digitalocean/godo/nfs_actions.go b/vendor/github.com/digitalocean/godo/nfs_actions.go index 7c68cca8e..0618d9fbd 100644 --- a/vendor/github.com/digitalocean/godo/nfs_actions.go +++ b/vendor/github.com/digitalocean/godo/nfs_actions.go @@ -72,8 +72,7 @@ type NfsDetachParams struct { // Resize an NFS share func (s *NfsActionsServiceOp) Resize(ctx context.Context, nfsShareId string, size uint64, region string) (*NfsAction, *Response, error) { request := &NfsActionRequest{ - Type: "resize", - Region: region, + Type: "resize", Params: &NfsResizeParams{ SizeGib: size, }, @@ -85,8 +84,7 @@ func (s *NfsActionsServiceOp) Resize(ctx context.Context, nfsShareId string, siz // Snapshot an NFS share func (s *NfsActionsServiceOp) Snapshot(ctx context.Context, nfsShareId, nfsSnapshotName, region string) (*NfsAction, *Response, error) { request := &NfsActionRequest{ - Type: "snapshot", - Region: region, + Type: "snapshot", Params: &NfsSnapshotParams{ Name: nfsSnapshotName, }, @@ -98,8 +96,7 @@ func (s *NfsActionsServiceOp) Snapshot(ctx context.Context, nfsShareId, nfsSnaps // Attach an NFS share func (s *NfsActionsServiceOp) Attach(ctx context.Context, nfsShareId, vpcID, region string) (*NfsAction, *Response, error) { request := &NfsActionRequest{ - Type: "attach", - Region: region, + Type: "attach", Params: &NfsAttachParams{ VpcID: vpcID, }, @@ -111,8 +108,7 @@ func (s *NfsActionsServiceOp) Attach(ctx context.Context, nfsShareId, vpcID, reg // Detach an NFS share func (s *NfsActionsServiceOp) Detach(ctx context.Context, nfsShareId, vpcID, region string) (*NfsAction, *Response, error) { request := &NfsActionRequest{ - Type: "detach", - Region: region, + Type: "detach", Params: &NfsAttachParams{ VpcID: vpcID, }, diff --git a/vendor/modules.txt b/vendor/modules.txt index 2b8e969e5..7aaea8b41 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -33,7 +33,7 @@ github.com/coreos/go-systemd/v22/journal # github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc ## explicit github.com/davecgh/go-spew/spew -# github.com/digitalocean/godo v1.172.0 +# github.com/digitalocean/godo v1.173.0 ## explicit; go 1.23.0 github.com/digitalocean/godo github.com/digitalocean/godo/metrics