Skip to content

fix(deps): update googlecloud-go-sdk

This MR contains the following updates:

Package Change Age Confidence
cloud.google.com/go/compute/metadata v0.2.3 -> v0.9.0 age confidence
google.golang.org/api v0.148.0 -> v0.254.0 age confidence

WARNING: this job ran in a Renovate pipeline that doesn't support the configuration required for common-ci-tasks Renovate presets.


Release Notes

googleapis/google-cloud-go (cloud.google.com/go/compute/metadata)

v0.9.0

  • Breaking changes to some autogenerated clients.
  • rpcreplay package added.

v0.8.0

Compare Source

  • profiler package added.
  • storage:
    • Retry Objects.Insert call.
    • Add ProgressFunc to WRiter.
  • pubsub: breaking changes:
    • Publish is now asynchronous (announcement).
    • Subscription.Pull replaced by Subscription.Receive, which takes a callback (announcement).
    • Message.Done replaced with Message.Ack and Message.Nack.

v0.7.0

Compare Source

  • Release of a client library for Spanner. See the blog post. Note that although the Spanner service is beta, the Go client library is alpha.

v0.6.0

  • Beta release of BigQuery, DataStore, Logging and Storage. See the blog post.

  • bigquery:

    • struct support. Read a row directly into a struct with RowIterator.Next, and upload a row directly from a struct with Uploader.Put. You can also use field tags. See the [package documentation][cloud-bigquery-ref] for details.

    • The ValueList type was removed. It is no longer necessary. Instead of

    var v ValueList
    ... it.Next(&v) ..
    

    use

    var v []Value
    ... it.Next(&v) ...
    
    • Previously, repeatedly calling RowIterator.Next on the same []Value or ValueList would append to the slice. Now each call resets the size to zero first.

    • Schema inference will infer the SQL type BYTES for a struct field of type []byte. Previously it inferred STRING.

    • The types uint, uint64 and uintptr are no longer supported in schema inference. BigQuery's integer type is INT64, and those types may hold values that are not correctly represented in a 64-bit signed integer.

v0.5.0

Compare Source

  • bigquery:
    • The SQL types DATE, TIME and DATETIME are now supported. They correspond to the Date, Time and DateTime types in the new cloud.google.com/go/civil package.
    • Support for query parameters.
    • Support deleting a dataset.
    • Values from INTEGER columns will now be returned as int64, not int. This will avoid errors arising from large values on 32-bit systems.
  • datastore:
    • Nested Go structs encoded as Entity values, instead of a flattened list of the embedded struct's fields. This means that you may now have twice-nested slices, eg.
      type State struct {
        Cities  []struct{
          Populations []int
        }
      }
      
      See the announcement for more details.
    • Contexts no longer hold namespaces; instead you must set a key's namespace explicitly. Also, key functions have been changed and renamed.
    • The WithNamespace function has been removed. To specify a namespace in a Query, use the Query.Namespace method:
      q := datastore.NewQuery("Kind").Namespace("ns")
      
    • All the fields of Key are exported. That means you can construct any Key with a struct literal:
      k := &Key{Kind: "Kind",  ID: 37, Namespace: "ns"}
      
    • As a result of the above, the Key methods Kind, ID, d.Name, Parent, SetParent and Namespace have been removed.
    • NewIncompleteKey has been removed, replaced by IncompleteKey. Replace
      NewIncompleteKey(ctx, kind, parent)
      
      with
      IncompleteKey(kind, parent)
      
      and if you do use namespaces, make sure you set the namespace on the returned key.
    • NewKey has been removed, replaced by NameKey and IDKey. Replace
      NewKey(ctx, kind, name, 0, parent)
      NewKey(ctx, kind, "", id, parent)
      
      with
      NameKey(kind, name, parent)
      IDKey(kind, id, parent)
      
      and if you do use namespaces, make sure you set the namespace on the returned key.
    • The Done variable has been removed. Replace datastore.Done with iterator.Done, from the package google.golang.org/api/iterator.
    • The Client.Close method will have a return type of error. It will return the result of closing the underlying gRPC connection.
    • See the announcement for more details.

v0.4.0

Compare Source

  • 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

      client.OpenTable("project", "dataset", "table")
      

      with

      client.DatasetInProject("project", "dataset").Table("table")
      
    • Client.CreateTable has been removed. Replace

      client.CreateTable(ctx, "project", "dataset", "table")
      

      with

      client.DatasetInProject("project", "dataset").Table("table").Create(ctx)
      
    • Dataset.ListTables have been replaced with Dataset.Tables. Replace

      tables, err := ds.ListTables(ctx)
      

      with

      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

      it, err := client.Read(ctx, job)
      

      with

      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

      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

      it.PageInfo().MaxSize = n
      

      Instead of the StartIndex(i) option, write

      it.StartIndex = i
      
    • ValueLoader.Load now takes a Schema in addition to a slice of Values. Replace

      func (vl *myValueLoader) Load(v []bigquery.Value)
      

      with

      func (vl *myValueLoader) Load(v []bigquery.Value, s bigquery.Schema)
      
    • Table.Patch is replace by Table.Update. Replace

      p := table.Patch()
      p.Description("new description")
      metadata, err := p.Apply(ctx)
      

      with

      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

        client.Copy(ctx, table, gcsRef)
        

        with

        table.LoaderFrom(gcsRef).Run(ctx)
        

        Instead of passing options to Copy, set fields on the Loader:

        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

        client.Copy(ctx, gcsRef, table)
        

        with

        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

        client.Copy(ctx, dstTable, srcTable)
        

        with

        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

        client.Copy(ctx, table, query)
        

        with

        query.Run(ctx)
        
    • Table.NewUploader has been renamed to Table.Uploader. Instead of options, configure an Uploader by setting its fields. Replace

      u := table.NewUploader(bigquery.UploadIgnoreUnknownValues())
      

      with

      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.

v0.3.0

  • storage:

    • AdminClient replaced by methods on Client. Replace

      adminClient.CreateBucket(ctx, bucketName, attrs)
      

      with

      client.Bucket(bucketName).Create(ctx, projectID, attrs)
      
    • BucketHandle.List replaced by BucketHandle.Objects. Replace

      for query != nil {
          objs, err := bucket.List(d.ctx, query)
          if err != nil { ... }
          query = objs.Next
          for _, obj := range objs.Results {
              fmt.Println(obj)
          }
      }
      

      with

      iter := bucket.Objects(d.ctx, query)
      for {
          obj, err := iter.Next()
          if err == iterator.Done {
              break
          }
          if err != nil { ... }
          fmt.Println(obj)
      }
      

      (The iterator package is at google.golang.org/api/iterator.)

      Replace Query.Cursor with ObjectIterator.PageInfo().Token.

      Replace Query.MaxResults with ObjectIterator.PageInfo().MaxSize.

    • ObjectHandle.CopyTo replaced by ObjectHandle.CopierFrom. Replace

      attrs, err := src.CopyTo(ctx, dst, nil)
      

      with

      attrs, err := dst.CopierFrom(src).Run(ctx)
      

      Replace

      attrs, err := src.CopyTo(ctx, dst, &storage.ObjectAttrs{ContextType: "text/html"})
      

      with

      c := dst.CopierFrom(src)
      c.ContextType = "text/html"
      attrs, err := c.Run(ctx)
      
    • ObjectHandle.ComposeFrom replaced by ObjectHandle.ComposerFrom. Replace

      attrs, err := dst.ComposeFrom(ctx, []*storage.ObjectHandle{src1, src2}, nil)
      

      with

      attrs, err := dst.ComposerFrom(src1, src2).Run(ctx)
      
    • ObjectHandle.Update's ObjectAttrs argument replaced by ObjectAttrsToUpdate. Replace

      attrs, err := obj.Update(ctx, &storage.ObjectAttrs{ContextType: "text/html"})
      

      with

      attrs, err := obj.Update(ctx, storage.ObjectAttrsToUpdate{ContextType: "text/html"})
      
    • ObjectHandle.WithConditions replaced by ObjectHandle.If. Replace

      obj.WithConditions(storage.Generation(gen), storage.IfMetaGenerationMatch(mgen))
      

      with

      obj.Generation(gen).If(storage.Conditions{MetagenerationMatch: mgen})
      

      Replace

      obj.WithConditions(storage.IfGenerationMatch(0))
      

      with

      obj.If(storage.Conditions{DoesNotExist: true})
      
    • storage.Done replaced by iterator.Done (from package google.golang.org/api/iterator).

  • Package preview/logging deleted. Use logging instead.

googleapis/google-api-go-client (google.golang.org/api)

v0.254.0

Compare Source

Features

v0.253.0

Compare Source

Features

v0.252.0

Compare Source

Features

v0.251.0

Compare Source

Features

v0.250.0

Compare Source

Features

v0.249.0

Compare Source

Features

v0.248.0

Compare Source

Features

v0.247.0

Compare Source

Features

v0.246.0

Compare Source

Features
Bug Fixes

v0.245.0

Compare Source

Features
Bug Fixes
  • gensupport: Fix transferChunk race condition by returning response with non-cancelled context. (#​3258) (091d422)

v0.244.0

Compare Source

Features

v0.243.0

Compare Source

Features
Bug Fixes
  • gensupport: Update chunk upload logic for robust timeout handling. (#​3208) (93865aa)

v0.242.0

Compare Source

Features

v0.241.0

Compare Source

Features

v0.240.0

Compare Source

Features

v0.239.0

Compare Source

Features

v0.238.0

Compare Source

Features

v0.237.0

Compare Source

Features

v0.236.0

Compare Source

Features
Bug Fixes

v0.235.0

Compare Source

Features
Bug Fixes
  • internaloption: AuthCreds should honor WithoutAuthentication (#​3166) (d117646)

v0.234.0

Compare Source

Features
Bug Fixes
  • Check for auth creds in options to trigger new auth lib usage (#​3162) (b356c44)

v0.233.0

Compare Source

Features

v0.232.0

Compare Source

Features

v0.231.0

Compare Source

Features

v0.230.0

Compare Source

Features
Bug Fixes

v0.229.0

Compare Source

Features

v0.228.0

Compare Source

Features
Bug Fixes
  • googleapi: Add JSON array support to CheckResponseWithBody (#​3075) (ffcba91)

v0.227.0

Compare Source

Features

v0.226.0

Compare Source

Features

v0.225.0

Compare Source

Features
Bug Fixes

v0.224.0

Compare Source

Features
Bug Fixes

v0.223.0

Compare Source

Features
Bug Fixes
  • Copy AllowHardBoundTokens option from old auth to new auth. (#​3030) (8cb69d6)

v0.222.0

Compare Source

Features

v0.221.0

Compare Source

Features

v0.220.0

Compare Source

Features

v0.219.0

Compare Source

Features
Documentation
  • option: Add warning about externally-provided credentials (#​2978) (45c3513)

v0.218.0

Compare Source

Features
Bug Fixes
  • internal/gensupport: Close resp body only on discarding resp (resumableupload) (#​2966) (840d496)

v0.217.0

Compare Source

Features

v0.216.0

Compare Source

Features

v0.215.0

Compare Source

Features

v0.214.0

Compare Source

Features

v0.213.0

Compare Source

Features

v0.212.0

Compare Source

Features

v0.211.0

Compare Source

Features
Bug Fixes

v0.210.0

Compare Source

Features
Bug Fixes

v0.209.0

Compare Source

Features

v0.208.0

Compare Source

Features
  • all: Auto-regenerate discovery clients (#​2881) (44435a9)
  • gensupport: Per-chunk transfer timeout configs (09fa125)
  • gensupport: Per-chunk transfer timeout configs (#​2865) (09fa125)

v0.207.0

Compare Source

Features

v0.206.0

Compare Source

Features

v0.205.0

Compare Source

Features

v0.204.0

Compare Source

Features
Bug Fixes
  • transport/grpc: Pass through cert source to new auth lib (#​2840) (c67e7c0)
Documentation

v0.203.0

Compare Source

Features

v0.202.0

Compare Source

Features

v0.201.0

Compare Source

Features

v0.200.0

Compare Source

Features

v0.199.0

Compare Source

Features

v0.198.0

Compare Source

Features

v0.197.0

Compare Source

Features
Bug Fixes
  • transport: Set UniverseDomain in http.NewClient for new auth (#​2773) (140d0a5)

v0.196.0

Compare Source

Features

v0.195.0

Compare Source

Features

v0.194.0

Compare Source

Features
Bug Fixes

v0.193.0

Compare Source

Features

v0.192.0

Compare Source

Features
Bug Fixes
  • internal/cba: Update credsNewAuth path to use nil oauth2 client (#​2731) (b457582)

v0.191.0

Compare Source

Features
Bug Fixes

v0.190.0

Compare Source

Features
Reverts

v0.189.0

Compare Source

Features
Bug Fixes
  • cba: Update newAuth path to use nil oauth2 client (#​2684) (d925dcb)
  • transport/grpc: Retain UserAgent option with new auth stack (#​2690) (aa4662f)

v0.188.0

Compare Source

Features
Bug Fixes

v0.187.0

Compare Source

Features
Bug Fixes

v0.186.0

Compare Source

Features

v0.185.0

Compare Source

Features
Bug Fixes
  • internal/gensupport: Update shouldRetry for GCS uploads (#​2634) (ea513cb)

v0.184.0

Compare Source

Features
Bug Fixes
  • cba: Update credsNewAuth to support oauth2 over mTLS (#​2610) (953f728)

v0.183.0

Compare Source

Features
Bug Fixes

v0.182.0

Compare Source

Features

v0.181.0

Compare Source

Features

v0.180.0

Compare Source

Features

v0.179.0

Compare Source

Features
Bug Fixes

v0.178.0

Compare Source

Features
Documentation

v0.177.0

Compare Source

Features
Bug Fixes

v0.176.1

Compare Source

Bug Fixes

v0.176.0

Compare Source

Features
Bug Fixes

v0.175.0

Compare Source

Features
Bug Fixes

v0.174.0

Compare Source

Features
Bug Fixes

v0.173.0

Compare Source

Features

v0.172.0

Compare Source

Features

v0.171.0

Compare Source

Features
Bug Fixes

v0.170.0

Compare Source

Features

v0.169.0

Compare Source

Features

v0.168.0

Compare Source

Features

v0.167.0

Compare Source

Features

v0.166.0

Compare Source

Features

v0.165.0

Compare Source

Features

v0.164.0

Compare Source

Features
Bug Fixes
  • transport: Disable universe domain check if token source (#​2413) (edbe996)

v0.163.0

Compare Source

Features

v0.162.0

Compare Source

Features
Bug Fixes
  • transport: Enforce 1s timeout on requests to MDS universe_domain (#​2393) (6862015)

v0.161.0

Compare Source

Features
Bug Fixes

v0.160.0

Compare Source

Features

v0.159.0

Compare Source

Features
Bug Fixes

v0.158.0

Compare Source

Features
Bug Fixes
  • internal: Support internaloption.WithDefaultUniverseDomain (#​2373) (b21a1fa)
  • transport/grpc: Add universe domain verification (#​2375) (df17254)
  • transport: Not enable s2a when there is endpoint override (#​2368) (73fc7fd)

v0.157.0

Compare Source

Features
Documentation

v0.156.0

Compare Source

Features

v0.155.0

Compare Source

Features
Bug Fixes

v0.154.0

Compare Source

Features

v0.153.0

Compare Source

Features

v0.152.0

Compare Source

Features

v0.151.0

Compare Source

Features

v0.150.0

Compare Source

Features

v0.149.0

Compare Source

Features

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • [ ] If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Soos

Merge request reports

Loading