Google Cloud Client Libraries for Go.

Overview

Google Cloud Client Libraries for Go

Go Reference

Go packages for Google Cloud Platform services.

import "cloud.google.com/go"

To install the packages on your system, do not clone the repo. Instead:

  1. Change to your project directory:

    cd /my/cloud/project
    
  2. Get the package you want to use. Some products have their own module, so it's best to go get the package(s) you want to use:

    $ go get cloud.google.com/go/firestore # Replace with the package you want to use.
    

NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.

Supported APIs

Google API Status Package
Asset stable cloud.google.com/go/asset/apiv1
Automl stable cloud.google.com/go/automl/apiv1
BigQuery stable cloud.google.com/go/bigquery
Bigtable stable cloud.google.com/go/bigtable
Cloudbuild stable cloud.google.com/go/cloudbuild/apiv1
Cloudtasks stable cloud.google.com/go/cloudtasks/apiv2
Container stable cloud.google.com/go/container/apiv1
ContainerAnalysis beta cloud.google.com/go/containeranalysis/apiv1
Dataproc stable cloud.google.com/go/dataproc/apiv1
Datastore stable cloud.google.com/go/datastore
Debugger stable cloud.google.com/go/debugger/apiv2
Dialogflow stable cloud.google.com/go/dialogflow/apiv2
Data Loss Prevention stable cloud.google.com/go/dlp/apiv2
ErrorReporting alpha cloud.google.com/go/errorreporting
Firestore stable cloud.google.com/go/firestore
IAM stable cloud.google.com/go/iam
IoT stable cloud.google.com/go/iot/apiv1
IRM alpha cloud.google.com/go/irm/apiv1alpha2
KMS stable cloud.google.com/go/kms/apiv1
Natural Language stable cloud.google.com/go/language/apiv1
Logging stable cloud.google.com/go/logging
Memorystore alpha cloud.google.com/go/redis/apiv1
Monitoring stable cloud.google.com/go/monitoring/apiv3
OS Login stable cloud.google.com/go/oslogin/apiv1
Pub/Sub stable cloud.google.com/go/pubsub
Pub/Sub Lite beta cloud.google.com/go/pubsublite
Phishing Protection alpha cloud.google.com/go/phishingprotection/apiv1beta1
reCAPTCHA Enterprise alpha cloud.google.com/go/recaptchaenterprise/apiv1beta1
Recommender beta cloud.google.com/go/recommender/apiv1beta1
Scheduler stable cloud.google.com/go/scheduler/apiv1
Securitycenter stable cloud.google.com/go/securitycenter/apiv1
Spanner stable cloud.google.com/go/spanner
Speech stable cloud.google.com/go/speech/apiv1
Storage stable cloud.google.com/go/storage
Talent alpha cloud.google.com/go/talent/apiv4beta1
Text To Speech stable cloud.google.com/go/texttospeech/apiv1
Trace stable cloud.google.com/go/trace/apiv2
Translate stable cloud.google.com/go/translate
Video Intelligence beta cloud.google.com/go/videointelligence/apiv1beta2
Vision stable cloud.google.com/go/vision/apiv1
Webrisk alpha cloud.google.com/go/webrisk/apiv1beta1

Alpha status: the API is still being actively developed. As a result, it might change in backward-incompatible ways and is not recommended for production use.

Beta status: the API is largely complete, but still has outstanding features and bugs to be addressed. There may be minor backwards-incompatible changes where necessary.

Stable status: the API is mature and ready for production use. We will continue addressing bugs and feature requests.

Documentation and examples are available at pkg.go.dev/cloud.google.com/go

Go Versions Supported

We currently support Go versions 1.11 and newer.

Authorization

By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

client, err := storage.NewClient(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewClient function of the desired package. For example:

client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the golang.org/x/oauth2 package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewClient function: snip:# (auth-ts)

tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))

Contributing

Contributions are welcome. Please, see the CONTRIBUTING document for details.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.

Links

Comments
  • fix(all): Update hand-written clients to not use WithEndpoint override

    fix(all): Update hand-written clients to not use WithEndpoint override

    -logging clients delegate to the gapic generated client with the correct defaults, so no need to override. -bigtable and spanner clients needs to be manually updated to use DefaultEndpoint and DefaultMTLSEndpoint

    cla: yes 
    opened by andyrzhao 2500
  • pubsub: Large number of duplicate messages suddenly

    pubsub: Large number of duplicate messages suddenly

    I've been noticing an influx of duplicate messages. Previously I don't think I had ever came across one, suddenly started seeing large volumes of dupes. For example out of 50 messages that were all ACKd just recently, I saw 48 duplicates. It sounds similar to this issue: https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2465

    When I look in Google Cloud Console at the API requests, I'm seeing large numbers of 499 error codes. In the last 4 days I have 1,312 200 error codes, but 7,580 499 error codes.

    MaxOutstandingMessages = 10 MaxExtension = 10 minutes

    Versions:

    • cloud.google.com/go: aeeacb092ec71c83668e4828857289d89c34b610
    • github.com/googleapis/gax-go: 317e0006254c44a0ac427cc52a0e083ff0b9622f
    • google.golang.org/genproto: 1e559d0a00eef8a9a43151db4665280bd8dd5886
    • google.golang.org/grpc: f92cdcd7dcdc69e81b2d7b338479a19a8723cfa3
    type: bug api: pubsub priority: p1 :rotating_light: 
    opened by cristiangraz 72
  • pupsub: Receive sometimes deadlocks if error codes.Unavailable

    pupsub: Receive sometimes deadlocks if error codes.Unavailable

    Client

    PubSub

    Describe Your Environment

    Alpine:3.7 on GCE

    Expected Behavior

    Receive retries and eventually returns an error

    Actual Behavior

    Receive hangs indefinitely, never returning an error or continuing to process messages. Because of this the application that is using pubsub client with Receive is completely locked and I must restart the docker container.

    Further Description

    I have been noticing that messages stop processing periodically using pubsub client in my application. I am handiling Receive errors properly, however an error is never returned. I then added logging into my app with the Receive callback. As soon as I notice messages are no longer processing, nothing is logged within the callback and Receive is completely locked up. I am not sure how to handle this.

    I added logging within the pupsub isRetryable(err error) bool function. and each time I experience this it seems there is a corresponding Unavailable log:

    Unavailable The service was unable to fulfill your request. Please try again. [code=8a75]

    Oddly, it seems that isRetryable should return true and retry in this case, so I am unsure where the lock is happening. An immediate restart of the Docker container resolves the issue, but only for a while.

    This seems similar to issue: https://github.com/GoogleCloudPlatform/google-cloud-go/issues/1156

    However, in that issue the reported error is the cause of a Context error, which I am not seeing and therefore I think they may be separate bugs.

    Example Code

    Here is an example of a simple subscriber package I created that uses pubsub client:

    https://gist.github.com/erickertz/2090853580dcead48682886b2cb7f0d4

    type: bug api: pubsub priority: p1 
    opened by erickertz 52
  • chore: release main

    chore: release main

    :robot: I have created a release beep boop

    aiplatform: 1.21.0

    1.21.0 (2022-09-19)

    Features

    • aiplatform: add deleteFeatureValues in aiplatform v1beta1 featurestore_service.proto (bc7a5f6)
    analytics: 0.11.0

    0.11.0 (2022-09-19)

    Features

    • analytics: start generating proto message types (563f546)
    apikeys: 0.2.0

    0.2.0 (2022-09-19)

    Features

    • apikeys: enable REST transport for Python Preview clients (ef2b0b1)
    area120: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • area120: start generating proto message types (563f546)
    artifactregistry: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • artifactregistry: start generating proto message types (563f546)
    assuredworkloads: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • assuredworkloads: start generating proto message types (563f546)
    automl: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • automl: start generating proto message types (563f546)
    billing: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • billing: start generating proto message types (563f546)
    binaryauthorization: 1.1.0

    1.1.0 (2022-09-19)

    Features

    • binaryauthorization: start generating proto message types (563f546)
    certificatemanager: 1.0.0

    1.0.0 (2022-09-19)

    Features

    cloudtasks: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • cloudtasks: start generating proto message types (563f546)
    container: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • container: added High Throughput Logging API for Google Kubernetes Engine docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform (bc7a5f6)
    datacatalog: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • datacatalog: start generating proto message types (563f546)
    dataflow: 0.6.0

    0.6.0 (2022-09-19)

    Features

    • dataflow: start generating proto message types (563f546)
    dataform: 0.3.0

    0.3.0 (2022-09-19)

    Features

    • dataform: start generating proto message types (563f546)
    datalabeling: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • datalabeling: start generating proto message types (563f546)
    dataqna: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • dataqna: start generating proto message types (563f546)
    datastream: 1.2.0

    1.2.0 (2022-09-19)

    Features

    • datastream: start generating proto message types (563f546)
    dialogflow: 1.15.0

    1.15.0 (2022-09-19)

    Features

    • dialogflow: start generating proto message types (563f546)
    documentai: 1.7.0

    1.7.0 (2022-09-19)

    Features

    • documentai: start generating proto message types (563f546)
    domains: 0.6.0

    0.6.0 (2022-09-19)

    Features

    • domains: start generating proto message types (563f546)
    functions: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • functions: start generating proto message types (563f546)

    Documentation

    gaming: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • gaming: start generating proto message types (563f546)
    gkeconnect: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • gkeconnect: start generating proto message types (563f546)
    gkehub: 0.9.0

    0.9.0 (2022-09-19)

    Features

    • gkehub: start generating proto message types (563f546)
    language: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • language: start generating proto message types (563f546)
    lifesciences: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • lifesciences: start generating proto message types (563f546)
    mediatranslation: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • mediatranslation: start generating proto message types (563f546)
    memcache: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • memcache: start generating proto message types (563f546)
    metastore: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • metastore: start generating proto message types (563f546)
    networkconnectivity: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • networkconnectivity: start generating proto message types (563f546)
    networksecurity: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • networksecurity: start generating proto message types (563f546)
    notebooks: 1.2.0

    1.2.0 (2022-09-19)

    Features

    • notebooks: start generating proto message types (563f546)
    osconfig: 1.7.0

    1.7.0 (2022-09-19)

    Features

    • osconfig: start generating proto message types (563f546)
    oslogin: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • oslogin: start generating proto message types (563f546)
    phishingprotection: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • phishingprotection: start generating proto message types (563f546)
    privatecatalog: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • privatecatalog: start generating proto message types (563f546)
    recommendationengine: 0.5.0

    0.5.0 (2022-09-19)

    Features

    • recommendationengine: start generating proto message types (563f546)
    recommender: 1.5.0

    1.5.0 (2022-09-19)

    Features

    • recommender: start generating proto message types (563f546)
    redis: 1.7.0

    1.7.0 (2022-09-19)

    Features

    • redis: start generating proto message types (563f546)
    retail: 1.8.0

    1.8.0 (2022-09-19)

    Features

    • retail: start generating proto message types (563f546)
    scheduler: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • scheduler: start generating proto message types (563f546)
    secretmanager: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • secretmanager: start generating proto message types (563f546)
    security: 1.7.0

    1.7.0 (2022-09-19)

    Features

    • security: start generating proto message types (563f546)

    Bug Fixes

    • security/publicca: Add proto options for Ruby, PHP and C# API client libraries (bc7a5f6)
    securitycenter: 1.13.0

    1.13.0 (2022-09-19)

    Features

    • securitycenter: start generating proto message types (563f546)
    servicedirectory: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • servicedirectory: start generating proto message types (563f546)
    speech: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • speech: start generating proto message types (563f546)
    talent: 1.1.0

    1.1.0 (2022-09-19)

    Features

    • talent: start generating proto message types (563f546)
    videointelligence: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • videointelligence: start generating proto message types (563f546)
    webrisk: 1.4.0

    1.4.0 (2022-09-19)

    Features

    • webrisk: start generating proto message types (563f546)
    workflows: 1.6.0

    1.6.0 (2022-09-19)

    Features

    • workflows: start generating proto message types (563f546)

    This PR was generated with Release Please. See documentation.

    autorelease: tagged size: m 
    opened by release-please[bot] 51
  • chore: release main

    chore: release main

    :robot: I have created a release beep boop

    analytics: 0.12.0

    0.12.0 (2022-09-21)

    Features

    • analytics: rewrite signatures in terms of new types for betas (9f303f9)
    area120: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • area120: rewrite signatures in terms of new types for betas (9f303f9)
    artifactregistry: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • artifactregistry: rewrite signatures in terms of new types for betas (9f303f9)
    assuredworkloads: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • assuredworkloads: rewrite signatures in terms of new types for betas (9f303f9)
    automl: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • automl: rewrite signatures in terms of new types for betas (9f303f9)
    billing: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • billing: rewrite signatures in terms of new types for betas (9f303f9)
    binaryauthorization: 1.2.0

    1.2.0 (2022-09-21)

    Features

    • binaryauthorization: rewrite signatures in terms of new types for betas (9f303f9)
    cloudtasks: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • cloudtasks: rewrite signatures in terms of new types for betas (9f303f9)
    datacatalog: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • datacatalog: rewrite signatures in terms of new types for betas (9f303f9)
    dataflow: 0.7.0

    0.7.0 (2022-09-21)

    Features

    • dataflow: rewrite signatures in terms of new types for betas (9f303f9)
    dataform: 0.4.0

    0.4.0 (2022-09-21)

    Features

    • dataform: rewrite signatures in terms of new types for betas (9f303f9)
    datalabeling: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • datalabeling: rewrite signatures in terms of new types for betas (9f303f9)
    dataqna: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • dataqna: rewrite signatures in terms of new types for betas (9f303f9)
    datastream: 1.3.0

    1.3.0 (2022-09-21)

    Features

    • datastream: rewrite signatures in terms of new types for betas (9f303f9)
    dialogflow: 1.16.0

    1.16.0 (2022-09-21)

    Features

    • dialogflow: rewrite signatures in terms of new types for betas (9f303f9)
    documentai: 1.8.0

    1.8.0 (2022-09-21)

    Features

    • documentai: rewrite signatures in terms of new types for betas (9f303f9)
    domains: 0.7.0

    0.7.0 (2022-09-21)

    Features

    • domains: rewrite signatures in terms of new types for betas (9f303f9)
    functions: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • functions: rewrite signatures in terms of new types for betas (9f303f9)
    gaming: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • gaming: rewrite signatures in terms of new types for betas (9f303f9)
    gkeconnect: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • gkeconnect: rewrite signatures in terms of new types for betas (9f303f9)
    gkehub: 0.10.0

    0.10.0 (2022-09-21)

    Features

    • gkehub: rewrite signatures in terms of new types for betas (9f303f9)
    language: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • language: rewrite signatures in terms of new types for betas (9f303f9)
    lifesciences: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • lifesciences: rewrite signatures in terms of new types for betas (9f303f9)
    mediatranslation: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • mediatranslation: rewrite signatures in terms of new types for betas (9f303f9)
    memcache: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • memcache: rewrite signatures in terms of new types for betas (9f303f9)
    metastore: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • metastore: rewrite signatures in terms of new types for betas (9f303f9)
    networkconnectivity: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • networkconnectivity: rewrite signatures in terms of new types for betas (9f303f9)
    networksecurity: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • networksecurity: rewrite signatures in terms of new types for betas (9f303f9)
    notebooks: 1.3.0

    1.3.0 (2022-09-21)

    Features

    • notebooks: rewrite signatures in terms of new types for betas (9f303f9)
    osconfig: 1.8.0

    1.8.0 (2022-09-21)

    Features

    • osconfig: rewrite signatures in terms of new types for betas (9f303f9)
    oslogin: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • oslogin: rewrite signatures in terms of new types for betas (9f303f9)
    phishingprotection: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • phishingprotection: rewrite signatures in terms of new types for betas (9f303f9)
    privatecatalog: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • privatecatalog: rewrite signatures in terms of new types for betas (9f303f9)
    recaptchaenterprise: 2.2.0

    2.2.0 (2022-09-21)

    Features

    • recaptchaenterprise: rewrite signatures in terms of new types for betas (9f303f9)
    recommendationengine: 0.6.0

    0.6.0 (2022-09-21)

    Features

    • recommendationengine: rewrite signatures in terms of new types for betas (9f303f9)
    recommender: 1.6.0

    1.6.0 (2022-09-21)

    Features

    • recommender: rewrite signatures in terms of new types for betas (9f303f9)
    redis: 1.8.0

    1.8.0 (2022-09-21)

    Features

    • redis: rewrite signatures in terms of new types for betas (9f303f9)
    retail: 1.9.0

    1.9.0 (2022-09-21)

    Features

    • retail: rewrite signatures in terms of new types for betas (9f303f9)
    scheduler: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • scheduler: rewrite signatures in terms of new types for betas (9f303f9)
    secretmanager: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • secretmanager: remove beta client that no longer has source protos (9f303f9)
    security: 1.8.0

    1.8.0 (2022-09-21)

    Features

    • security: rewrite signatures in terms of new types for betas (9f303f9)
    securitycenter: 1.14.0

    1.14.0 (2022-09-21)

    Features

    • securitycenter: rewrite signatures in terms of new types for betas (9f303f9)
    servicedirectory: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • servicedirectory: rewrite signatures in terms of new types for betas (9f303f9)
    speech: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • speech: rewrite signatures in terms of new types for betas (9f303f9)
    talent: 1.2.0

    1.2.0 (2022-09-21)

    Features

    • talent: rewrite signatures in terms of new types for betas (9f303f9)
    videointelligence: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • videointelligence: rewrite signatures in terms of new types for betas (9f303f9)
    vision: 2.3.0

    2.3.0 (2022-09-21)

    Features

    • vision: rewrite signatures in terms of new types for betas (9f303f9)
    webrisk: 1.5.0

    1.5.0 (2022-09-21)

    Features

    • webrisk: rewrite signatures in terms of new types for betas (9f303f9)
    workflows: 1.7.0

    1.7.0 (2022-09-21)

    Features

    • workflows: rewrite signatures in terms of new types for betas (9f303f9)

    This PR was generated with Release Please. See documentation.

    autorelease: tagged size: m 
    opened by release-please[bot] 49
  • httpreplay: TestIntegration_RecordAndReplay failed

    httpreplay: TestIntegration_RecordAndReplay failed

    Note: #1952 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


    commit: 0113f76edd4e6bd8604d86230cb19b30d6ec512a buildURL: Build Status, Sponge status: failed

    Test output
        httpreplay_test.go:248: recording: compressed, entire file, server unzips: storage: object doesn't exist
        httpreplay_test.go:248: recording: compressed, entire file, read compressed: storage: object doesn't exist
        httpreplay_test.go:248: recording: compressed, partial, read compressed: storage: object doesn't exist
        httpreplay_test.go:248: recording: compressed, HEAD: storage: object doesn't exist
        httpreplay_test.go:248: replaying: compressed, entire file, server unzips: storage: object doesn't exist
        httpreplay_test.go:248: replaying: compressed, entire file, read compressed: storage: object doesn't exist
        httpreplay_test.go:248: replaying: compressed, partial, read compressed: storage: object doesn't exist
        httpreplay_test.go:248: replaying: compressed, HEAD: storage: object doesn't exist
    type: bug priority: p2 
    opened by flaky-bot[bot] 48
  • pubsub: inconsistently receiving less messages after v0.24.0

    pubsub: inconsistently receiving less messages after v0.24.0

    User @fastest963 reports that using v0.24.0 works as expected, but bumping to HEAD causes what appears to be rate limiting to happen.

    See: https://github.com/GoogleCloudPlatform/google-cloud-go/issues/1163#issuecomment-429323268

    Continuing the conversation from that thread here, since the original issue there seems quite different.

    api: pubsub status: investigating 
    opened by jadekler 47
  • chore: release main

    chore: release main

    :robot: I have created a release beep boop

    accessapproval: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • accessapproval: set versionClient to module version (55f0d92)
    accesscontextmanager: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • accesscontextmanager: set versionClient to module version (55f0d92)
    aiplatform: 1.5.0

    1.5.0 (2022-02-23)

    Features

    • aiplatform: set versionClient to module version (55f0d92)
    analytics: 0.5.0

    0.5.0 (2022-02-23)

    Features

    • analytics: set versionClient to module version (55f0d92)
    apigateway: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • apigateway: set versionClient to module version (55f0d92)
    apigeeconnect: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • apigeeconnect: set versionClient to module version (55f0d92)
    appengine: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • appengine: set versionClient to module version (55f0d92)
    area120: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • area120: set versionClient to module version (55f0d92)
    artifactregistry: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • artifactregistry: set versionClient to module version (55f0d92)
    asset: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • asset: set versionClient to module version (55f0d92)
    assuredworkloads: 0.5.0

    0.5.0 (2022-02-23)

    Features

    • assuredworkloads: set versionClient to module version (55f0d92)
    automl: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • automl: set versionClient to module version (55f0d92)
    billing: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • billing: set versionClient to module version (55f0d92)
    binaryauthorization: 0.4.0

    0.4.0 (2022-02-23)

    Features

    • binaryauthorization: set versionClient to module version (55f0d92)
    channel: 1.5.0

    1.5.0 (2022-02-23)

    Features

    • channel: set versionClient to module version (55f0d92)
    cloudbuild: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • cloudbuild: set versionClient to module version (55f0d92)
    clouddms: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • clouddms: set versionClient to module version (55f0d92)
    cloudtasks: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • cloudtasks: set versionClient to module version (55f0d92)
    compute: 1.5.0

    1.5.0 (2022-02-23)

    Features

    • compute: set versionClient to module version (55f0d92)
    contactcenterinsights: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • contactcenterinsights: set versionClient to module version (55f0d92)
    container: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • container: set versionClient to module version (55f0d92)
    containeranalysis: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • containeranalysis: set versionClient to module version (55f0d92)
    datacatalog: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • datacatalog: set versionClient to module version (55f0d92)
    dataflow: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • dataflow: set versionClient to module version (55f0d92)
    datafusion: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • datafusion: set versionClient to module version (55f0d92)
    datalabeling: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • datalabeling: set versionClient to module version (55f0d92)
    dataplex: 0.4.0

    0.4.0 (2022-02-23)

    Features

    • dataplex: set versionClient to module version (55f0d92)
    dataproc: 1.5.0

    1.5.0 (2022-02-23)

    Features

    • dataproc: set versionClient to module version (55f0d92)
    dataqna: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • dataqna: set versionClient to module version (55f0d92)
    datastream: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • datastream: set versionClient to module version (55f0d92)
    deploy: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • deploy: set versionClient to module version (55f0d92)
    dialogflow: 1.6.0

    1.6.0 (2022-02-23)

    Features

    • dialogflow: set versionClient to module version (55f0d92)
    dlp: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • dlp: set versionClient to module version (55f0d92)
    documentai: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • documentai: set versionClient to module version (55f0d92)
    domains: 0.4.0

    0.4.0 (2022-02-23)

    Features

    • domains: set versionClient to module version (55f0d92)
    essentialcontacts: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • essentialcontacts: set versionClient to module version (55f0d92)
    eventarc: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • eventarc: set versionClient to module version (55f0d92)
    filestore: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • filestore: set versionClient to module version (55f0d92)
    functions: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • functions: set versionClient to module version (55f0d92)
    gaming: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • gaming: set versionClient to module version (55f0d92)
    gkeconnect: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • gkeconnect: set versionClient to module version (55f0d92)
    gkehub: 0.4.0

    0.4.0 (2022-02-23)

    Features

    • gkehub: set versionClient to module version (55f0d92)
    gsuiteaddons: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • gsuiteaddons: set versionClient to module version (55f0d92)
    iam: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • iam: set versionClient to module version (55f0d92)
    iap: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • iap: set versionClient to module version (55f0d92)
    ids: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • ids: set versionClient to module version (55f0d92)
    iot: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • iot: set versionClient to module version (55f0d92)
    kms: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • kms: set versionClient to module version (55f0d92)
    language: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • language: set versionClient to module version (55f0d92)
    lifesciences: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • lifesciences: set versionClient to module version (55f0d92)
    managedidentities: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • managedidentities: set versionClient to module version (55f0d92)
    mediatranslation: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • mediatranslation: set versionClient to module version (55f0d92)
    memcache: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • memcache: set versionClient to module version (55f0d92)
    metastore: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • metastore: set versionClient to module version (55f0d92)
    monitoring: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • monitoring: set versionClient to module version (55f0d92)
    networkconnectivity: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • networkconnectivity: set versionClient to module version (55f0d92)
    networkmanagement: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • networkmanagement: set versionClient to module version (55f0d92)
    networksecurity: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • networksecurity: set versionClient to module version (55f0d92)
    notebooks: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • notebooks: set versionClient to module version (55f0d92)
    orchestration: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • orchestration: set versionClient to module version (55f0d92)
    orgpolicy: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • orgpolicy: set versionClient to module version (55f0d92)
    osconfig: 1.5.0

    1.5.0 (2022-02-23)

    Features

    • osconfig: set versionClient to module version (55f0d92)
    oslogin: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • oslogin: set versionClient to module version (55f0d92)
    phishingprotection: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • phishingprotection: set versionClient to module version (55f0d92)
    policytroubleshooter: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • policytroubleshooter: set versionClient to module version (55f0d92)
    privatecatalog: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • privatecatalog: set versionClient to module version (55f0d92)
    recaptchaenterprise: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • recaptchaenterprise: set versionClient to module version (55f0d92)
    recommender: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • recommender: set versionClient to module version (55f0d92)
    redis: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • redis: set versionClient to module version (55f0d92)
    resourcemanager: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • resourcemanager: set versionClient to module version (55f0d92)
    resourcesettings: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • resourcesettings: set versionClient to module version (55f0d92)
    retail: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • retail: set versionClient to module version (55f0d92)
    scheduler: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • scheduler: set versionClient to module version (55f0d92)
    secretmanager: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • secretmanager: set versionClient to module version (55f0d92)
    security: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • security: set versionClient to module version (55f0d92)
    securitycenter: 1.4.0

    1.4.0 (2022-02-23)

    Features

    • securitycenter: set versionClient to module version (55f0d92)
    servicecontrol: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • servicecontrol: set versionClient to module version (55f0d92)
    servicedirectory: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • servicedirectory: set versionClient to module version (55f0d92)
    servicemanagement: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • servicemanagement: set versionClient to module version (55f0d92)
    serviceusage: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • serviceusage: set versionClient to module version (55f0d92)
    shell: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • shell: set versionClient to module version (55f0d92)
    speech: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • speech: set versionClient to module version (55f0d92)
    storagetransfer: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • storagetransfer: set versionClient to module version (55f0d92)
    talent: 0.5.0

    0.5.0 (2022-02-23)

    Features

    • talent: set versionClient to module version (55f0d92)
    texttospeech: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • texttospeech: set versionClient to module version (55f0d92)
    tpu: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • tpu: set versionClient to module version (55f0d92)
    trace: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • trace: set versionClient to module version (55f0d92)
    translate: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • translate: set versionClient to module version (55f0d92)
    video: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • video: set versionClient to module version (55f0d92)
    videointelligence: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • videointelligence: set versionClient to module version (55f0d92)
    vision: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • vision: set versionClient to module version (55f0d92)
    vmmigration: 0.3.0

    0.3.0 (2022-02-23)

    Features

    • vmmigration: set versionClient to module version (55f0d92)
    vpcaccess: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • vpcaccess: set versionClient to module version (55f0d92)
    webrisk: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • webrisk: set versionClient to module version (55f0d92)
    websecurityscanner: 1.2.0

    1.2.0 (2022-02-23)

    Features

    • websecurityscanner: set versionClient to module version (55f0d92)
    workflows: 1.3.0

    1.3.0 (2022-02-23)

    Features

    • workflows: set versionClient to module version (55f0d92)

    This PR was generated with Release Please. See documentation.

    autorelease: tagged size: m 
    opened by release-please[bot] 46
  • KMS cannot Get, Set, or Test IAM

    KMS cannot Get, Set, or Test IAM

    Client

    KMS

    Describe Your Environment

    MacBook Pro (15-inch, 2017), 10.14.2 (18C54) 2.8 GHz Intel Core i7 16 GB 2133 MHz LPDDR3 Radeon Pro 555 2048 MB Intel HD Graphics 630 1536 MB

    But also reproducible everywhere

    Expected Behavior

    KMS clients should be able to Get, Set, and Test IAM policies.

    Actual Behavior

    Performing any Get, Set, or Test operations using the iam.Handle returns the following error:

    rpc error: code = NotFound desc = The request concerns location 'us-central1' but was sent to location 'global'. Either Cloud KMS is not available in 'us-central1' or the request was misrouted. Make sure the 'x-goog-request-params' metadata is set correctly; see https://cloud.google.com/kms/docs/grpc for more information.
    

    Where "us-central1" corresponds to the region in which my KMS keys exist. I conferred with the KMS team, and it appears that the x-goog-request-params is not set on IAM calls, which appears to be the root cause.

    Reproduction

    Run this sample, changing the keyRing constant to the full resource URL of a keyring in a project in any location other than "global".

    package main
    
    import (
    	"context"
    	"log"
    
    	cloudkms "cloud.google.com/go/kms/apiv1"
    	kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"
    )
    
    const keyRing = "projects/my-project/..." // Fill with existing keyring
    
    func main() {
    	ctx := context.Background()
    	client, err := cloudkms.NewKeyManagementClient(ctx)
    	if err != nil {
    		panic(err)
    	}
    
    	resp, err := client.KeyRingIAM(&kmspb.KeyRing{
    		Name: keyRing,
    	}).Policy(context.Background())
    	if err != nil {
    		panic(err)
    	}
    
    	log.Printf("#%v", resp)
    }
    

    Diagnoses

    The KeyRingIAM func creates a handle wrapper around the KMS client's Connection object which drops straight into the iam package. There doesn't appear to be a way to pass additional metadata pairs to the IAM client, so when gax invokes the policy requests, they fail.

    I confirmed the API works as-expected with the headers on the request by adding the following method to the KMS client itself so I can access the request fields:

    func (c *KeyManagementClient) GetKeyRingIAM(ctx context.Context, req *kmspb.GetKeyRingRequest, opts ...gax.CallOption) (*iam.Policy, error) {
    	md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", req.GetName()))
    	ctx = insertMetadata(ctx, c.xGoogMetadata, md)
    
    	// Works with or without the additional options here, kept for parity with other KMS client funcs
    	opts = append(c.CallOptions.GetKeyRing[0:len(c.CallOptions.GetKeyRing):len(c.CallOptions.GetKeyRing)], opts...)
    
    	var proto *pb.Policy
    	err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error {
    		var err error
    		// Create the client here so we can pass it the proper context
    		iamClient := pb.NewIAMPolicyClient(c.Connection())
    		proto, err = iamClient.GetIamPolicy(ctx, &pb.GetIamPolicyRequest{Resource: req.GetName()}, settings.GRPC...)
    		return err
    	}, opts...)
    	if err != nil {
    		return nil, err
    	}
    	return &iam.Policy{InternalProto: proto}, nil
    }
    

    Note this function lives in the kms package and injects the x-google-request-params into the context before creating the IAM client. I think this might be the best approach to preserve those headers without significant altercations to the iam package itself, but it means that the client does not given an iam.Handle to the user directly.

    Alternatives

    • Provide top-level functionality in the IAM package to add headers
    • Allow objects to pass a context to the IAM handler and store it on the struct (gross)
    • Force uses to manually add metadata fields (even grosser)
    type: bug priority: p2 api: cloudkms 
    opened by sethvargo 44
  • chore: release main

    chore: release main

    :robot: I have created a release beep boop

    aiplatform: 1.14.0

    1.14.0 (2022-06-29)

    Features

    • aiplatform: add BatchImportModelEvaluationSlices API in aiplatform v1 model_service.proto (f01bf32)
    • aiplatform: add BatchImportModelEvaluationSlices API in aiplatform v1beta1 model_service.proto (f01bf32)
    • aiplatform: add ListSavedQueries rpc to aiplatform v1 dataset_service.proto feat: add saved_query.proto to aiplatform v1 feat: add saved_query_id to InputDataConfig in aiplatform v1 training_pipeline.proto (350e276)
    • aiplatform: add ListSavedQueries rpc to aiplatform v1beta1 dataset_service.proto feat: add saved_query.proto to aiplatform v1beta1 feat: add saved_query_id to InputDataConfig in aiplatform v1beta1 training_pipeline.proto (350e276)
    • aiplatform: add model_monitoring_config to BatchPredictionJob in aiplatform v1beta1 batch_prediction_job.proto (5fe3b1d)
    • aiplatform: add model_version_id to BatchPredictionJob in aiplatform v1 batch_prediction_job.proto (f01bf32)
    analytics: 0.8.0

    0.8.0 (2022-06-29)

    Features

    • analytics/admin: Enable REST transport for most of Java and Go clients (f01bf32)
    • analytics: start generating REST client for beta clients (25b7775)
    area120: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • area120: start generating REST client for beta clients (25b7775)
    asset: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • asset: start generating REST client for beta clients (25b7775)
    assuredworkloads: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • assuredworkloads: release 1.0.0 (7678be5)
    • assuredworkloads: start generating REST client for beta clients (25b7775)

    Miscellaneous Chores

    • assuredworkloads: release 1.0.0 (8147948)
    automl: 1.4.0

    1.4.0 (2022-06-29)

    Features

    • automl: start generating REST client for beta clients (25b7775)
    binaryauthorization: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • binaryauthorization: release 1.0.0 (7678be5)
    • binaryauthorization: start generating REST client for beta clients (25b7775)

    Miscellaneous Chores

    • binaryauthorization: release 1.0.0 (25c4440)
    channel: 1.7.0

    1.7.0 (2022-06-29)

    Features

    • channel: google.longrunning.Operations for Cloud Channel apis (350e276)
    cloudtasks: 1.4.0

    1.4.0 (2022-06-29)

    Features

    • cloudtasks: start generating REST client for beta clients (25b7775)
    containeranalysis: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • containeranalysis: start generating REST client for beta clients (25b7775)
    dataflow: 0.5.0

    0.5.0 (2022-06-29)

    Features

    • dataflow: start generating REST client for beta clients (25b7775)
    dataplex: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • dataplex: release 1.0.0 (7678be5)

    Miscellaneous Chores

    • dataplex: release 1.0.0 (b165e15)
    dataqna: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • dataqna: start generating REST client for beta clients (25b7775)
    datastream: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • datastream: release 1.0.0 (7678be5)
    • datastream: start generating REST client for beta clients (25b7775)

    Miscellaneous Chores

    • datastream: release 1.0.0 (53f7cbd)
    dialogflow: 1.11.0

    1.11.0 (2022-06-29)

    Features

    • dialogflow: start generating REST client for beta clients (25b7775)
    domains: 0.5.0

    0.5.0 (2022-06-29)

    Features

    • domains: start generating REST client for beta clients (25b7775)
    gaming: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • gaming: temporarily remove REGAPIC support (199b725)
    gkehub: 0.8.0

    0.8.0 (2022-06-29)

    Features

    • gkehub: start generating REST client for beta clients (25b7775)
    ids: 1.0.0

    1.0.0 (2022-06-29)

    Features

    Miscellaneous Chores

    language: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • language: start generating REST client for beta clients (25b7775)
    lifesciences: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • lifesciences: start generating REST client for beta clients (25b7775)
    memcache: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • memcache: start generating REST client for beta clients (25b7775)
    metastore: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • metastore: start generating REST client for beta clients (25b7775)
    networkmanagement: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • networkmanagement: introduce a projects_missing_permissions field in the AbortInfo structure (199b725)
    notebooks: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • notebooks: release 1.0.0 (7678be5)

    Miscellaneous Chores

    • notebooks: release 1.0.0 (1b39bf4)
    optimization: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • optimization: release 1.0.0 (7678be5)

    Miscellaneous Chores

    • optimization: release 1.0.0 (96b9b05)
    osconfig: 1.6.0

    1.6.0 (2022-06-29)

    Features

    • osconfig: start generating REST client for beta clients (25b7775)
    oslogin: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • oslogin: start generating REST client for beta clients (25b7775)
    phishingprotection: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • phishingprotection: start generating REST client for beta clients (25b7775)
    privatecatalog: 0.4.0

    0.4.0 (2022-06-29)

    Features

    • privatecatalog: start generating REST client for beta clients (25b7775)
    recommender: 1.4.0

    1.4.0 (2022-06-29)

    Features

    • recommender: Implement configurable recommenders and update .bazel files (199b725)
    • recommender: start generating REST client for beta clients (25b7775)
    redis: 1.6.0

    1.6.0 (2022-06-29)

    Features

    • redis: start generating REST client for beta clients (25b7775)
    scheduler: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • scheduler: start generating REST client for beta clients (25b7775)
    secretmanager: 1.5.0

    1.5.0 (2022-06-29)

    Features

    • secretmanager: start generating REST client for beta clients (25b7775)
    servicedirectory: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • servicedirectory: start generating REST client for beta clients (25b7775)
    speech: 1.5.0

    1.5.0 (2022-06-29)

    Features

    • speech: start generating REST client for beta clients (25b7775)
    talent: 0.9.0

    0.9.0 (2022-06-29)

    Features

    • talent: start generating REST client for beta clients (25b7775)
    video: 1.7.0

    1.7.0 (2022-06-29)

    Features

    • video/livestream: add C++ library rules for the Live Stream API (199b725)
    • video/livestream: release as GA (5be6d33)
    • video/stitcher: release as GA (5be6d33)
    videointelligence: 1.4.0

    1.4.0 (2022-06-29)

    Features

    • videointelligence: start generating REST client for beta clients (25b7775)
    vmmigration: 1.0.0

    1.0.0 (2022-06-29)

    Features

    • vmmigration: release 1.0.0 (7678be5)

    Miscellaneous Chores

    • vmmigration: release 1.0.0 (7951d3e)
    webrisk: 1.3.0

    1.3.0 (2022-06-29)

    Features

    • webrisk: start generating REST client for beta clients (25b7775)
    workflows: 1.5.0

    1.5.0 (2022-06-29)

    Features

    • workflows: release as GA (5be6d33)
    • workflows: start generating REST client for beta clients (25b7775)

    This PR was generated with Release Please. See documentation.

    autorelease: tagged size: m 
    opened by release-please[bot] 43
  • PubSub subscription.Receive stops receiving messages

    PubSub subscription.Receive stops receiving messages

    Hi, we are having a problem where one of our subscriptions stops receiving messages with no errors reported. Other subscriptions in the same app continue to work but these are not heavily used. Is there anyway to debug the issue? We are considering adding a scheduled closing of the PubSub client and re-creating it as a workaround. We are using v0.19.0. Thanks in advance for any advice

    type: bug api: pubsub priority: p1 
    opened by lc-chrisbarton 42
  • chore(all): auto-regenerate gapics

    chore(all): auto-regenerate gapics

    This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR.

    If you have been assigned to review this PR, please:

    • Ensure that the version of genproto in go.mod has been updated.
    • Ensure that CI is passing. If it's failing, it requires your manual attention.
    • Approve and submit this PR if you believe it's ready to ship.

    Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/912

    size: l 
    opened by yoshi-automation 1
  • storage: fix use of Bucket_RetentionPolicy.RetentionPeriod

    storage: fix use of Bucket_RetentionPolicy.RetentionPeriod

    Bucket_RetentionPolicy.RetentionPeriod will get proto3_optional soon, changing it to a pointer. It is commented out right now, but should be fixed once regen lands the new change.

    Only places that assign a value to Bucket_RetentionPolicy.RetentionPeriod need to be fixed. Places that use the GetRetentionPeriod accessor are unaffected (which is part of why we use the accessors to read values 😉).

    As of right now, none of the integration tests enabled for gRPC use the RetentionPeriod field so we should see no disruptions there.

    api: storage type: process 
    opened by noahdietz 0
  • feat(bigtable): Deletion protection support update table

    feat(bigtable): Deletion protection support update table

    • Add DeletionProtection field to TableConf and TableInfo
    • Add UpdateTable function to change the value of DeletionProtection
    • Make sure that only DeletionProtection can be updated through UpdateTable
    • Add mockTableAdminClock and setupTableClient to support tests for Table admin APIs
    • Add tests for updateTable
    • createTable changes to support DeletionProtection will be added in the next pull request
    api: bigtable size: m 
    opened by kimihrr 0
  • bigquery: TestIntegration_RoutineRemoteUDF failed

    bigquery: TestIntegration_RoutineRemoteUDF failed

    This test failed!

    To configure my behavior, see the Flaky Bot documentation.

    If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


    commit: d9a437de75a5f5151cd000d8f9a6b7fc567d8551 buildURL: Build Status, Sponge status: failed

    Test output
        routine_integration_test.go:106: rpc error: code = PermissionDenied desc = Request had insufficient authentication scopes.
            error details: name = ErrorInfo reason = ACCESS_TOKEN_SCOPE_INSUFFICIENT domain = googleapis.com metadata = map[method:google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection service:bigqueryconnection.googleapis.com]
    type: bug api: bigquery priority: p1 flakybot: issue 
    opened by flaky-bot[bot] 3
Releases(containeranalysis/v0.6.0)
Owner
Google APIs
Clients for Google APIs and tools that help produce them.
Google APIs
☁️🏃 Get up and running with Go on Google Cloud.

Get up and running with Go and gRPC on Google Cloud Platform, with this lightweight, opinionated, batteries-included service SDK.

Einride 21 Sep 25, 2022
Sample apps and code written for Google Cloud in the Go programming language.

Google Cloud Platform Go Samples This repository holds sample code written in Go that demonstrates the Google Cloud Platform. Some samples have accomp

Google Cloud Platform 3.6k Sep 27, 2022
Use Google Cloud KMS as an io.Reader and rand.Source.

Google Cloud KMS Go io.Reader and rand.Source This package provides a struct that implements Go's io.Reader and math/rand.Source interfaces, using Goo

Seth Vargo 4 Sep 23, 2022
GoDrive: A cloud storage system similar to Dropbox or Google Drive, with resilient

Cloud Storage Service Author: Marisa Tania, Ryan Tjakrakartadinata Professor: Matthew Malensek See project spec here: https://www.cs.usfca.edu/~mmalen

Ryan G Tjakrakartadinata 2 Dec 7, 2021
TurtleDex is a decentralized cloud storage platform that radically alters the landscape of cloud storage.

TurtleDex is a decentralized cloud storage platform that radically alters the landscape of cloud storage. By leveraging smart contracts, client-side e

TurtleDev 18 Feb 17, 2021
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang

Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang, i.e. Cloudpods is a cloud on clouds. Cloudpods is able to manage not only on-premise KVM/baremetals, but also resources from many cloud accounts across many cloud providers. It hides the differences of underlying cloud providers and exposes one set of APIs that allow programatically interacting with these many clouds.

null 1 Jan 11, 2022
Lightweight Cloud Instance Contextualizer

Flamingo Flamingo is a lightweight contextualization tool that aims to handle initialization of cloud instances. It is meant to be a replacement for c

Tamer Tas 36 Jun 18, 2022
Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)

Swift This package provides an easy to use library for interfacing with Swift / Openstack Object Storage / Rackspace cloud files from the Go Language

Nick Craig-Wood 292 Jun 30, 2022
The extensible SQL interface to your favorite cloud APIs.

The extensible SQL interface to your favorite cloud APIs.

Turbot 3.3k Oct 3, 2022
Terraform provider for HashiCorp Cloud Platform.

HashiCorp Cloud Platform (HCP) Terraform Provider Requirements Terraform >= 0.12.x Go >= 1.14 Building The Provider Clone the repository Enter the rep

HashiCorp 27 Jul 4, 2022
The Cloud Posse Terraform Provider for various utilities (E.g. deep merging)

terraform-provider-utils Terraform provider to add additional missing functionality to Terraform This project is part of our comprehensive "SweetOps"

Cloud Posse 64 Sep 22, 2022
Cloud cost estimates for Terraform in your CLI and pull requests 💰📉

Infracost shows cloud cost estimates for Terraform projects. It helps developers, devops and others to quickly see the cost breakdown and compare different options upfront.

Infracost 7.9k Sep 25, 2022
Cloud-native way to provide elastic Jupyter Notebook services on Kubernetes

elastic-jupyter-operator: Elastic Jupyter on Kubernetes Kubernetes 原生的弹性 Jupyter 即服务 介绍 为用户按需提供弹性的 Jupyter Notebook 服务。elastic-jupyter-operator 提供以下特性

TKEStack 132 Sep 21, 2022
A Cloud Native Buildpack for Go

The Go Paketo Buildpack provides a set of collaborating buildpacks that enable the building of a Go-based application.

Paketo Buildpacks 56 Sep 13, 2022
cloud-native local storage management system

Open-Local是由多个组件构成的本地磁盘管理系统,目标是解决当前 Kubernetes 本地存储能力缺失问题。通过Open-Local,使用本地存储会像集中式存储一样简单。

null 293 Sep 29, 2022
Fleex allows you to create multiple VPS on cloud providers and use them to distribute your workload.

Fleex allows you to create multiple VPS on cloud providers and use them to distribute your workload. Run tools like masscan, puredns, ffuf, httpx or anything you need and get results quickly!

null 170 Sep 28, 2022
Elkeid is a Cloud-Native Host-Based Intrusion Detection solution project to provide next-generation Threat Detection and Behavior Audition with modern architecture.

Elkeid is a Cloud-Native Host-Based Intrusion Detection solution project to provide next-generation Threat Detection and Behavior Audition with modern architecture.

Bytedance Inc. 1.4k Sep 27, 2022
A local emulator for Cloud Bigtable with persistance to a sqlite3 backend.

Little Bigtable A local emulator for Cloud Bigtable with persistance to a sqlite3 backend. The Cloud SDK provided cbtemulator is in-memory and does no

Bitly 14 Sep 21, 2022
Terraform Provider for Confluent Cloud

Terraform Provider for Confluent Cloud The Terraform Confluent Cloud provider is a plugin for Terraform that allows for the lifecycle management of Co

Confluent Inc. 51 Jul 19, 2022