From 7c65bc67f918d3ee4da576acab819707a3e72794 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 12:32:10 -0400 Subject: [PATCH 1/4] chore(main): release ai 0.5.0 (#10139) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest-individual.json | 2 +- ai/CHANGES.md | 7 +++++++ ai/internal/version.go | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest-individual.json b/.release-please-manifest-individual.json index 9c7459fbb2af..77e158ec9779 100644 --- a/.release-please-manifest-individual.json +++ b/.release-please-manifest-individual.json @@ -1,5 +1,5 @@ { - "ai": "0.4.1", + "ai": "0.5.0", "aiplatform": "1.67.0", "auth": "0.4.0", "auth/oauth2adapt": "0.2.2", 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" From 11e1334d16fa069f601d8f08217ddd3f4fdb9a95 Mon Sep 17 00:00:00 2001 From: Tyler Bui-Palsulich <26876514+tbpg@users.noreply.github.com> Date: Thu, 9 May 2024 14:02:19 -0400 Subject: [PATCH 2/4] chore(internal/godocfx): set stem for vertexai (#10140) --- internal/godocfx/main.go | 2 ++ 1 file changed, 2 insertions(+) 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") } } From 804632e7c5b0b85ff522f7951114485e256eb5bc Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Thu, 9 May 2024 15:52:16 -0500 Subject: [PATCH 3/4] fix(auth): don't try to detect default creds it opt configured (#10143) --- auth/grpctransport/grpctransport.go | 12 ++++++++---- auth/httptransport/transport.go | 16 +++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) 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, From 194ed469fa92ab823b563c19cb627d1959faed5a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 21:02:16 +0000 Subject: [PATCH 4/4] chore(main): release auth 0.4.1 (#10144) :robot: I have created a release *beep* *boop* --- ## [0.4.1](https://togithub.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://togithub.com/googleapis/google-cloud-go/issues/10143)) ([804632e](https://togithub.com/googleapis/google-cloud-go/commit/804632e7c5b0b85ff522f7951114485e256eb5bc)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .release-please-manifest-individual.json | 2 +- auth/CHANGES.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.release-please-manifest-individual.json b/.release-please-manifest-individual.json index 77e158ec9779..fb68225372de 100644 --- a/.release-please-manifest-individual.json +++ b/.release-please-manifest-individual.json @@ -1,7 +1,7 @@ { "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.23.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)