Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module cloud.google.com/go/compute/metadata to v0.3.0 - autoclosed #137

Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 15, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cloud.google.com/go/compute/metadata v0.2.3 -> v0.3.0 age adoption passing confidence

Release Notes

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

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.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/cloud.google.com-go-compute-metadata-0.x branch from 3bb6f8c to 6650a61 Compare April 18, 2024 19:46
@renovate renovate bot changed the title fix(deps): update module cloud.google.com/go/compute/metadata to v0.3.0 fix(deps): update module cloud.google.com/go/compute/metadata to v0.3.0 - autoclosed Apr 18, 2024
@renovate renovate bot closed this Apr 18, 2024
@renovate renovate bot deleted the renovate/cloud.google.com-go-compute-metadata-0.x branch April 18, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants