diff --git a/.release-please-manifest-individual.json b/.release-please-manifest-individual.json index fc639321589d..54fe69b733a1 100644 --- a/.release-please-manifest-individual.json +++ b/.release-please-manifest-individual.json @@ -1,7 +1,7 @@ { - "ai": "0.4.1", + "ai": "0.5.0", "aiplatform": "1.67.0", - "auth": "0.4.0", + "auth": "0.4.1", "auth/oauth2adapt": "0.2.2", "bigquery": "1.61.0", "bigtable": "1.24.0", diff --git a/ai/CHANGES.md b/ai/CHANGES.md index ac5abc56cbce..7d517bee1957 100644 --- a/ai/CHANGES.md +++ b/ai/CHANGES.md @@ -1,5 +1,12 @@ # Changelog +## [0.5.0](https://github.com/googleapis/google-cloud-go/compare/ai/v0.4.1...ai/v0.5.0) (2024-05-09) + + +### Features + +* **ai/generativelanguage:** Add FileState to File ([3e25053](https://github.com/googleapis/google-cloud-go/commit/3e250530567ee81ed4f51a3856c5940dbec35289)) + ## [0.4.1](https://github.com/googleapis/google-cloud-go/compare/ai/v0.4.0...ai/v0.4.1) (2024-05-01) diff --git a/ai/internal/version.go b/ai/internal/version.go index 120c8a4d3b18..594b0891566c 100644 --- a/ai/internal/version.go +++ b/ai/internal/version.go @@ -17,4 +17,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.4.1" +const Version = "0.5.0" diff --git a/auth/CHANGES.md b/auth/CHANGES.md index b21ad7171b0c..f1b1a033e88e 100644 --- a/auth/CHANGES.md +++ b/auth/CHANGES.md @@ -1,5 +1,12 @@ # Changelog +## [0.4.1](https://github.com/googleapis/google-cloud-go/compare/auth/v0.4.0...auth/v0.4.1) (2024-05-09) + + +### Bug Fixes + +* **auth:** Don't try to detect default creds it opt configured ([#10143](https://github.com/googleapis/google-cloud-go/issues/10143)) ([804632e](https://github.com/googleapis/google-cloud-go/commit/804632e7c5b0b85ff522f7951114485e256eb5bc)) + ## [0.4.0](https://github.com/googleapis/google-cloud-go/compare/auth/v0.3.0...auth/v0.4.0) (2024-05-07) diff --git a/auth/grpctransport/grpctransport.go b/auth/grpctransport/grpctransport.go index 2c03f8a95d87..81c956b030b7 100644 --- a/auth/grpctransport/grpctransport.go +++ b/auth/grpctransport/grpctransport.go @@ -216,12 +216,16 @@ func dial(ctx context.Context, secure bool, opts *Options) (*grpc.ClientConn, er // Authentication can only be sent when communicating over a secure connection. if !opts.DisableAuthentication { metadata := opts.Metadata - creds, err := credentials.DetectDefault(opts.resolveDetectOptions()) - if err != nil { - return nil, err - } + + var creds *auth.Credentials if opts.Credentials != nil { creds = opts.Credentials + } else { + var err error + creds, err = credentials.DetectDefault(opts.resolveDetectOptions()) + if err != nil { + return nil, err + } } qp, err := creds.QuotaProjectID(ctx) diff --git a/auth/httptransport/transport.go b/auth/httptransport/transport.go index aef4663e6ce8..94caeb00f0ab 100644 --- a/auth/httptransport/transport.go +++ b/auth/httptransport/transport.go @@ -58,9 +58,15 @@ func newTransport(base http.RoundTripper, opts *Options) (http.RoundTripper, err Key: opts.APIKey, } default: - creds, err := credentials.DetectDefault(opts.resolveDetectOptions()) - if err != nil { - return nil, err + var creds *auth.Credentials + if opts.Credentials != nil { + creds = opts.Credentials + } else { + var err error + creds, err = credentials.DetectDefault(opts.resolveDetectOptions()) + if err != nil { + return nil, err + } } qp, err := creds.QuotaProjectID(context.Background()) if err != nil { @@ -72,10 +78,6 @@ func newTransport(base http.RoundTripper, opts *Options) (http.RoundTripper, err } headers.Set(quotaProjectHeaderKey, qp) } - - if opts.Credentials != nil { - creds = opts.Credentials - } creds.TokenProvider = auth.NewCachedTokenProvider(creds.TokenProvider, nil) trans = &authTransport{ base: trans, diff --git a/internal/godocfx/main.go b/internal/godocfx/main.go index 2b84015bcd3a..516cc7053e78 100644 --- a/internal/godocfx/main.go +++ b/internal/godocfx/main.go @@ -290,5 +290,7 @@ language: "go" fmt.Fprintf(w, "stem: \"/appengine/docs/legacy/standard/go111/reference\"\n") case "google.golang.org/appengine/v2": fmt.Fprintf(w, "stem: \"/appengine/docs/standard/go/reference/services/bundled\"\n") + case "cloud.google.com/go/vertexai": + fmt.Fprintf(w, "stem: \"/vertex-ai/generative-ai/docs/reference/go\"\n") } }