Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/google-api-go-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.187.0
Choose a base ref
...
head repository: googleapis/google-api-go-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.188.0
Choose a head ref
  • 13 commits
  • 559 files changed
  • 4 contributors

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    e84fa65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    711eb91 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    6df3749 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    0d54a85 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    88240e3 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    d465cec View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Configuration menu
    Copy the full SHA
    a9177bd View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    5dd2fb2 View commit details
    Browse the repository at this point in the history
  2. chore(all): update all (#2676)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence | Type | Update |
    |---|---|---|---|---|---|---|---|
    | [cloud.google.com/go/compute/metadata](https://togithub.com/googleapis/google-cloud-go) | `v0.3.0` -> `v0.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/cloud.google.com%2fgo%2fcompute%2fmetadata/v0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/cloud.google.com%2fgo%2fcompute%2fmetadata/v0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/cloud.google.com%2fgo%2fcompute%2fmetadata/v0.3.0/v0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/cloud.google.com%2fgo%2fcompute%2fmetadata/v0.3.0/v0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | minor |
    | golang.org/x/net | `v0.26.0` -> `v0.27.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fnet/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fnet/v0.26.0/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.26.0/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | minor |
    | [google.golang.org/genproto](https://togithub.com/googleapis/go-genproto) | `dc46fd2` -> `f6361c8` | [![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgenproto/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgenproto/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgenproto/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgenproto/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | digest |
    | [google.golang.org/genproto/googleapis/bytestream](https://togithub.com/googleapis/go-genproto) | `dc46fd2` -> `f6361c8` | [![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgenproto%2fgoogleapis%2fbytestream/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgenproto%2fgoogleapis%2fbytestream/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgenproto%2fgoogleapis%2fbytestream/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgenproto%2fgoogleapis%2fbytestream/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | digest |
    | [google.golang.org/genproto/googleapis/rpc](https://togithub.com/googleapis/go-genproto) | `dc46fd2` -> `f6361c8` | [![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgenproto%2fgoogleapis%2frpc/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgenproto%2fgoogleapis%2frpc/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgenproto%2fgoogleapis%2frpc/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgenproto%2fgoogleapis%2frpc/v0.0.0-20240624140628-dc46fd24d27d/v0.0.0-20240701130421-f6361c86f094?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | digest |
    | [google.golang.org/grpc](https://togithub.com/grpc/grpc-go) | `v1.64.0` -> `v1.65.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.65.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgrpc/v1.65.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgrpc/v1.64.0/v1.65.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.64.0/v1.65.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | minor |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>googleapis/google-cloud-go (cloud.google.com/go/compute/metadata)</summary>
    
    ### [`v0.4.0`](https://togithub.com/googleapis/google-cloud-go/blob/HEAD/CHANGES.md#v040)
    
    [Compare Source](https://togithub.com/googleapis/google-cloud-go/compare/v0.3.0...v0.4.0)
    
    -   bigquery:
        \-`NewGCSReference` is now a function, not a method on `Client`.
        -   `Table.LoaderFrom` now accepts a `ReaderSource`, enabling
            loading data into a table from a file or any `io.Reader`.
    
        <!---->
    
        -   Client.Table and Client.OpenTable have been removed.
            Replace
            ```go
            client.OpenTable("project", "dataset", "table")
            ```
            with
            ```go
            client.DatasetInProject("project", "dataset").Table("table")
            ```
    
        -   Client.CreateTable has been removed.
            Replace
            ```go
            client.CreateTable(ctx, "project", "dataset", "table")
            ```
            with
            ```go
            client.DatasetInProject("project", "dataset").Table("table").Create(ctx)
            ```
    
        -   Dataset.ListTables have been replaced with Dataset.Tables.
            Replace
            ```go
            tables, err := ds.ListTables(ctx)
            ```
            with
            ```go
            it := ds.Tables(ctx)
            for {
                table, err := it.Next()
                if err == iterator.Done {
                    break
                }
                if err != nil {
                    // TODO: Handle error.
                }
                // TODO: use table.
            }
            ```
    
        -   Client.Read has been replaced with Job.Read, Table.Read and Query.Read.
            Replace
            ```go
            it, err := client.Read(ctx, job)
            ```
            with
            ```go
            it, err := job.Read(ctx)
            ```
            and similarly for reading from tables or queries.
    
        -   The iterator returned from the Read methods is now named RowIterator. Its
            behavior is closer to the other iterators in these libraries. It no longer
            supports the Schema method; see the next item.
            Replace
            ```go
            for it.Next(ctx) {
                var vals ValueList
                if err := it.Get(&vals); err != nil {
                    // TODO: Handle error.
                }
                // TODO: use vals.
            }
            if err := it.Err(); err != nil {
                // TODO: Handle error.
            }
            ```
            with
                for {
                    var vals ValueList
                    err := it.Next(&vals)
                    if err == iterator.Done {
                        break
                    }
                    if err != nil {
                        // TODO: Handle error.
                    }
                    // TODO: use vals.
                }
            Instead of the `RecordsPerRequest(n)` option, write
            ```go
            it.PageInfo().MaxSize = n
            ```
            Instead of the `StartIndex(i)` option, write
            ```go
            it.StartIndex = i
            ```
    
        -   ValueLoader.Load now takes a Schema in addition to a slice of Values.
            Replace
            ```go
            func (vl *myValueLoader) Load(v []bigquery.Value)
            ```
            with
            ```go
            func (vl *myValueLoader) Load(v []bigquery.Value, s bigquery.Schema)
            ```
    
        -   Table.Patch is replace by Table.Update.
            Replace
            ```go
            p := table.Patch()
            p.Description("new description")
            metadata, err := p.Apply(ctx)
            ```
            with
            ```go
            metadata, err := table.Update(ctx, bigquery.TableMetadataToUpdate{
                Description: "new description",
            })
            ```
    
        -   Client.Copy is replaced by separate methods for each of its four functions.
            All options have been replaced by struct fields.
    
            -   To load data from Google Cloud Storage into a table, use Table.LoaderFrom.
    
                Replace
    
                ```go
                client.Copy(ctx, table, gcsRef)
                ```
    
                with
    
                ```go
                table.LoaderFrom(gcsRef).Run(ctx)
                ```
    
                Instead of passing options to Copy, set fields on the Loader:
    
                ```go
                loader := table.LoaderFrom(gcsRef)
                loader.WriteDisposition = bigquery.WriteTruncate
                ```
    
            -   To extract data from a table into Google Cloud Storage, use
                Table.ExtractorTo. Set fields on the returned Extractor instead of
                passing options.
    
                Replace
    
                ```go
                client.Copy(ctx, gcsRef, table)
                ```
    
                with
    
                ```go
                table.ExtractorTo(gcsRef).Run(ctx)
                ```
    
            -   To copy data into a table from one or more other tables, use
                Table.CopierFrom. Set fields on the returned Copier instead of passing options.
    
                Replace
    
                ```go
                client.Copy(ctx, dstTable, srcTable)
                ```
    
                with
    
                ```go
                dst.Table.CopierFrom(srcTable).Run(ctx)
                ```
    
            -   To start a query job, create a Query and call its Run method. Set fields
                on the query instead of passing options.
    
                Replace
    
                ```go
                client.Copy(ctx, table, query)
                ```
    
                with
    
                ```go
                query.Run(ctx)
                ```
    
        -   Table.NewUploader has been renamed to Table.Uploader. Instead of options,
            configure an Uploader by setting its fields.
            Replace
            ```go
            u := table.NewUploader(bigquery.UploadIgnoreUnknownValues())
            ```
            with
            ```go
            u := table.NewUploader(bigquery.UploadIgnoreUnknownValues())
            u.IgnoreUnknownValues = true
            ```
    
    -   pubsub: remove `pubsub.Done`. Use `iterator.Done` instead, where `iterator` is the package
        `google.golang.org/api/iterator`.
    
    </details>
    
    <details>
    <summary>grpc/grpc-go (google.golang.org/grpc)</summary>
    
    ### [`v1.65.0`](https://togithub.com/grpc/grpc-go/releases/tag/v1.65.0): Release 1.65.0
    
    [Compare Source](https://togithub.com/grpc/grpc-go/compare/v1.64.1...v1.65.0)
    
    ### Dependencies
    
    -   Change support policy to cover only the latest TWO releases of Go, matching the policy for Go itself.  See [#&#8203;7249](https://togithub.com/grpc/grpc-go/issues/7249) for more information. ([#&#8203;7250](https://togithub.com/grpc/grpc-go/issues/7250))
    -   Update x/net/http2 to address [CVE-2023-45288](https://nvd.nist.gov/vuln/detail/CVE-2023-45288) ([#&#8203;7282](https://togithub.com/grpc/grpc-go/issues/7282))
    
    ### Behavior Changes
    
    -   credentials/tls: clients and servers will now reject connections that don't support ALPN when environment variable `GRPC_ENFORCE_ALPN_ENABLED` is set to "true" (case insensitive). ([#&#8203;7184](https://togithub.com/grpc/grpc-go/issues/7184))
        -   NOTE: this behavior will become the default in a future release.
    -   metadata: remove String method from MD to make printing more consistent ([#&#8203;7373](https://togithub.com/grpc/grpc-go/issues/7373))
    
    ### New Features
    
    -   grpc: add `WithMaxCallAttempts` to configure gRPC's retry behavior per-channel. ([#&#8203;7229](https://togithub.com/grpc/grpc-go/issues/7229))
        -   Special Thanks: [@&#8203;imoore76](https://togithub.com/imoore76)
    
    ### Bug Fixes
    
    -   ringhash: properly apply endpoint weights instead of ignoring them ([#&#8203;7156](https://togithub.com/grpc/grpc-go/issues/7156))
    -   xds: fix a bug that could cause xds-enabled servers to stop accepting new connections after handshaking errors ([#&#8203;7128](https://togithub.com/grpc/grpc-go/issues/7128))
        -   Special Thanks: [@&#8203;bozaro](https://togithub.com/bozaro)
    
    ### [`v1.64.1`](https://togithub.com/grpc/grpc-go/releases/tag/v1.64.1): Release 1.64.1
    
    [Compare Source](https://togithub.com/grpc/grpc-go/compare/v1.64.0...v1.64.1)
    
    ### Dependencies
    
    -   Update x/net/http2 to address [CVE-2023-45288](https://nvd.nist.gov/vuln/detail/CVE-2023-45288) ([#&#8203;7352](https://togithub.com/grpc/grpc-go/issues/7352))
    -   metadata: remove String method from MD to make printing consistent ([#&#8203;7374](https://togithub.com/grpc/grpc-go/issues/7374))
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
    
    👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.
    
    ---
    
     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/google-api-go-client).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    renovate-bot authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    5cdcbe0 View commit details
    Browse the repository at this point in the history
  3. fix: allow ForceSendFields to work for map types (#2670)

    The way we generate map types today is map[string]T, where T is a non-pointer type. This means the pointer receiver version of MarshalJSON does not fulfill the Marshaler interface. This is turn means that MarshalJSON is not called in these cases so ForceSendFields overrides do not work. To fix this we can switch the impl to a value receiver which fulfills both value and pointer types. This is not a breaking change for the API, but there is a slight behaviour change if someone was calling MarshalJSON directly. Nil *T's that call MarshalJSON directly will now panic instead of returning JSON `null`. This seems like unlikely usage and worth breaking to fix a bug in common usage.
    
    Internal Bug: 349580049
    codyoss authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    40b5113 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    d17f6be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7021e3e View commit details
    Browse the repository at this point in the history
  3. chore(main): release 0.188.0 (#2666)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ## [0.188.0](https://togithub.com/googleapis/google-api-go-client/compare/v0.187.0...v0.188.0) (2024-07-09)
    
    
    ### Features
    
    * **all:** Auto-regenerate discovery clients ([#2665](https://togithub.com/googleapis/google-api-go-client/issues/2665)) ([e84fa65](https://togithub.com/googleapis/google-api-go-client/commit/e84fa6508ebc498c3435668c48001185fbc9ce83))
    * **all:** Auto-regenerate discovery clients ([#2669](https://togithub.com/googleapis/google-api-go-client/issues/2669)) ([6df3749](https://togithub.com/googleapis/google-api-go-client/commit/6df37492965b6323c6bcefa2a1ccd192b92981b4))
    * **all:** Auto-regenerate discovery clients ([#2671](https://togithub.com/googleapis/google-api-go-client/issues/2671)) ([0d54a85](https://togithub.com/googleapis/google-api-go-client/commit/0d54a8540060cc79f830892fdd1fba46d73034c1))
    * **all:** Auto-regenerate discovery clients ([#2673](https://togithub.com/googleapis/google-api-go-client/issues/2673)) ([88240e3](https://togithub.com/googleapis/google-api-go-client/commit/88240e3d98f3e944398c50379372eb071ebac0a2))
    * **all:** Auto-regenerate discovery clients ([#2674](https://togithub.com/googleapis/google-api-go-client/issues/2674)) ([d465cec](https://togithub.com/googleapis/google-api-go-client/commit/d465cec68dbc2616c665e6ea240cd1e32c01418d))
    * **all:** Auto-regenerate discovery clients ([#2675](https://togithub.com/googleapis/google-api-go-client/issues/2675)) ([a9177bd](https://togithub.com/googleapis/google-api-go-client/commit/a9177bdbdbba60c86b22bda4a7061c31d3485e4a))
    * **all:** Auto-regenerate discovery clients ([#2677](https://togithub.com/googleapis/google-api-go-client/issues/2677)) ([5dd2fb2](https://togithub.com/googleapis/google-api-go-client/commit/5dd2fb237802349250c97c0ebdbb54cbd088884d))
    * **all:** Auto-regenerate discovery clients ([#2678](https://togithub.com/googleapis/google-api-go-client/issues/2678)) ([d17f6be](https://togithub.com/googleapis/google-api-go-client/commit/d17f6beb5a531910b563a4383acaa383dbd3ee43))
    
    
    ### Bug Fixes
    
    * Allow ForceSendFields to work for map types ([#2670](https://togithub.com/googleapis/google-api-go-client/issues/2670)) ([40b5113](https://togithub.com/googleapis/google-api-go-client/commit/40b5113127c4d66d533df16fe201898855c7c0cc))
    * Check []bytes &gt; 0 instead of nil ([#2667](https://togithub.com/googleapis/google-api-go-client/issues/2667)) ([711eb91](https://togithub.com/googleapis/google-api-go-client/commit/711eb913fe455ffe5c9d717b44762801820c0e8c)), refs [#2647](https://togithub.com/googleapis/google-api-go-client/issues/2647)
    
    ---
    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[bot] authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9957790 View commit details
    Browse the repository at this point in the history
Loading