From 1f5aa78a4d6633871651c89a6d9c48e3409fecc5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 11 Nov 2021 11:37:08 -0800 Subject: [PATCH] chore(all): auto-regenerate gapics (#5112) 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/716 Changes: feat(texttospeech): update v1beta1 proto PiperOrigin-RevId: 409139454 Source-Link: https://github.com/googleapis/googleapis/commit/7c106233ab6ce055971be9249e1a69faa5bdbd3b chore(compute): Add C# generation for Compute v1 Source-Link: https://github.com/googleapis/googleapis/commit/05a6a82d9ad3fb36369fe800fda1ec17b0c8cf1b feat(dialogflow/cx): allow setting custom CA for generic webhooks PiperOrigin-RevId: 408995680 Source-Link: https://github.com/googleapis/googleapis/commit/76f7f485d67ea4953c5fe34e2870cc46c8803824 fix!(networkconnectivity): Mark a couple networkconnectivity API fields as required, to match implemented behavior PiperOrigin-RevId: 408969147 Source-Link: https://github.com/googleapis/googleapis/commit/cc003a482a9936b6d275319a0b31e7ff2f3ef567 chore(aiplatform): Add partial C# generation to AI Platform PiperOrigin-RevId: 408964828 Source-Link: https://github.com/googleapis/googleapis/commit/895ad28889197a948fc62b45a474744fa2248e02 chore(binaryauthorization): Fix SystemPolicy service name for BinaryAuthorization V1beta1 PiperOrigin-RevId: 408764899 Source-Link: https://github.com/googleapis/googleapis/commit/66878ca9e16f97a7892ba483478ce1e0fa74d9ce chore(iam/credentials): Update iam/credentials BUILD.bazel package name to google-cloud-iam chore(python): Update iam/credentials namespace to google.cloud.iam_credentials PiperOrigin-RevId: 408717007 Source-Link: https://github.com/googleapis/googleapis/commit/171d77733e98760bb1cf84cfa43d2abecb070590 chore(container): Update container BUILD.bazel package name to google-cloud-container chore(python): Update namespace for container API to google.cloud PiperOrigin-RevId: 408673815 Source-Link: https://github.com/googleapis/googleapis/commit/c08b1494f5d580c0d1bd7d030a636225b3739003 docs(datacatalog): Improved formatting PiperOrigin-RevId: 408569512 Source-Link: https://github.com/googleapis/googleapis/commit/c7b3bd0aa138f18b8d2cba01a105baeea6cb1b19 docs(securitycenter): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 408564402 Source-Link: https://github.com/googleapis/googleapis/commit/3020af5118bf135a2ac279d39093cbbfd343d0f8 feat(compute): Move compute.v1 from googleapis-discovery to googleapis (#675) * feat: Move compute.v1 from googleapis-discovery to googleapis The WORKSPACE file changes are expected to be overridden by the next sync, and it is ok, as the synce'd copy will contain the same changes. * feat: sync latest compute.proto files from googleapis-discovery Source-Link: https://github.com/googleapis/googleapis/commit/691a18b1c8af032367aae1938666ec325243aedf chore(aiplatform): update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e docs(gaming): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 408383287 Source-Link: https://github.com/googleapis/googleapis/commit/2aec4d0e6fdad7022220f4bbecfe96ecce8a7bab feat(securitycenter): Added resource type and display_name field to the FindingResult, and supported them in the filter for ListFindings and GroupFindings. Also added display_name to the resource which is surfaced in NotificationMessage PiperOrigin-RevId: 408362247 Source-Link: https://github.com/googleapis/googleapis/commit/4d71c45d9ed0bc82d0c76064fda6937985e0938f feat(redis): [Cloud Memorystore for Redis] Support Multiple Read Replicas when creating Instance PiperOrigin-RevId: 408360324 Source-Link: https://github.com/googleapis/googleapis/commit/78eb8a2bf5c5959e181c89529f04838103a16d5b feat(redis): [Cloud Memorystore for Redis] Support Multiple Read Replicas when creating Instance PiperOrigin-RevId: 408360267 Source-Link: https://github.com/googleapis/googleapis/commit/8625cf0cf87fa4778a6ad48256d1fa98b45c0ca9 docs(storage/internal): Add comments to GCS gRPC API proto spec to describe how naming works PiperOrigin-RevId: 408352508 Source-Link: https://github.com/googleapis/googleapis/commit/be4be3dde73955e934eb6daddbab68e793e1c1e5 feat(binaryauthorization): add new admission rule types to Policy feat: update SignatureAlgorithm enum to match algorithm names in KMS feat: add SystemPolicyV1Beta1 service PiperOrigin-RevId: 408346628 Source-Link: https://github.com/googleapis/googleapis/commit/3dfbdc3562ff366c3b3b21baeef1e704ffce4b39 feat(datacatalog): Added BigQueryDateShardedSpec.latest_shard_resource field feat: Added SearchCatalogResult.display_name field feat: Added SearchCatalogResult.description field PiperOrigin-RevId: 408274419 Source-Link: https://github.com/googleapis/googleapis/commit/cbba92c063e7d9752bf6e5d8f5081a84a5e7f159 docs(resourcemanager): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 407854413 Source-Link: https://github.com/googleapis/googleapis/commit/f81b7bd47b8168728581c10cc631ecfd237274d6 feat(workflows/executions): add a stack_trace field to the Error messages specifying where the error occured feat: add call_log_level field to Execution messages doc: clarify requirement to escape strings within JSON arguments Update the Execution proto with stack_trace field which is populated on output if an error occurs, and the call_log_level field can be specified on input to request that function calls and/or errors for the given execution be logged to Cloud Logging. PiperOrigin-RevId: 407842136 Source-Link: https://github.com/googleapis/googleapis/commit/cd48c1678e5eaba9123230f3eed5e6c176d77709 feat(dialogflow): added support to configure security settings, language code and time zone on conversation profile PiperOrigin-RevId: 407663596 Source-Link: https://github.com/googleapis/googleapis/commit/f9acb378c691a7ac449fd9fb32aa25aee14814d8 feat(functions): Secret Manager integration fields 'secret_environment_variables' and 'secret_volumes' added feat: CMEK integration fields 'kms_key_name' and 'docker_repository' added PiperOrigin-RevId: 407654258 Source-Link: https://github.com/googleapis/googleapis/commit/09b25760127661d664c7eeef6e4aafedbdd5e051 feat(contactcenterinsights): Add ability to update phrase matchers feat: Add issue model stats to time series feat: Add display name to issue model stats PiperOrigin-RevId: 407647313 Source-Link: https://github.com/googleapis/googleapis/commit/33fd29dc08e1117cfd0cd6876aa3d5047be362fc --- aiplatform/apiv1/doc.go | 2 +- aiplatform/go.mod | 2 +- aiplatform/go.sum | 4 +- ...uthz_management_service_v1_beta1_client.go | 48 ++--- binaryauthorization/apiv1beta1/doc.go | 2 +- .../apiv1beta1/gapic_metadata.json | 14 ++ .../system_policy_v1_beta1_client.go | 201 ++++++++++++++++++ ...tem_policy_v1_beta1_client_example_test.go | 56 +++++ binaryauthorization/go.mod | 2 +- binaryauthorization/go.sum | 4 +- compute/apiv1/doc.go | 2 +- .../apiv1/contact_center_insights_client.go | 39 ++++ ...act_center_insights_client_example_test.go | 20 ++ contactcenterinsights/apiv1/doc.go | 2 +- .../apiv1/gapic_metadata.json | 5 + contactcenterinsights/go.mod | 2 +- contactcenterinsights/go.sum | 4 +- container/apiv1/doc.go | 2 +- container/go.mod | 2 +- container/go.sum | 4 +- datacatalog/apiv1/data_catalog_client.go | 4 + datacatalog/apiv1/doc.go | 2 +- datacatalog/go.mod | 2 +- datacatalog/go.sum | 4 +- dialogflow/apiv2/doc.go | 2 +- dialogflow/cx/apiv3beta1/doc.go | 2 +- dialogflow/go.mod | 2 +- dialogflow/go.sum | 4 +- functions/apiv1/doc.go | 2 +- functions/go.mod | 2 +- functions/go.sum | 4 +- gaming/apiv1/doc.go | 2 +- gaming/go.mod | 2 +- gaming/go.sum | 4 +- go.mod | 2 +- go.sum | 4 +- iam/credentials/apiv1/doc.go | 2 +- .../GetSystemPolicy/main.go | 48 +++++ .../apiv1/Client/UpdatePhraseMatcher/main.go | 48 +++++ internal/generated/snippets/go.mod | 2 +- internal/generated/snippets/go.sum | 3 +- internal/godocfx/go.sum | 4 +- networkconnectivity/apiv1/doc.go | 2 +- networkconnectivity/go.mod | 2 +- networkconnectivity/go.sum | 4 +- redis/apiv1/cloud_redis_client.go | 2 +- redis/apiv1/doc.go | 2 +- redis/apiv1beta1/cloud_redis_client.go | 8 +- redis/apiv1beta1/doc.go | 2 +- redis/go.mod | 2 +- redis/go.sum | 4 +- resourcemanager/apiv3/doc.go | 2 +- resourcemanager/go.mod | 2 +- resourcemanager/go.sum | 4 +- securitycenter/apiv1/doc.go | 2 +- securitycenter/apiv1p1beta1/doc.go | 2 +- securitycenter/go.mod | 2 +- securitycenter/go.sum | 4 +- storage/go.mod | 2 +- storage/go.sum | 4 +- storage/internal/apiv2/doc.go | 2 +- storage/internal/apiv2/storage_client.go | 46 +++- texttospeech/apiv1/doc.go | 2 +- texttospeech/go.mod | 2 +- texttospeech/go.sum | 4 +- workflows/executions/apiv1/doc.go | 2 +- workflows/go.mod | 2 +- workflows/go.sum | 4 +- 68 files changed, 574 insertions(+), 110 deletions(-) create mode 100644 binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go create mode 100644 binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go create mode 100644 internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go create mode 100644 internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index a06237ddd53..4d20a68d376 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -90,7 +90,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211102" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/aiplatform/go.mod b/aiplatform/go.mod index df047f9a479..c78139650d2 100644 --- a/aiplatform/go.mod +++ b/aiplatform/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211102202547-e9cf271f7f2c + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/aiplatform/go.sum b/aiplatform/go.sum index 42511d2d589..c388132d21c 100644 --- a/aiplatform/go.sum +++ b/aiplatform/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211102202547-e9cf271f7f2c h1:UQDUEuW1R2dcciOjiFmuzE4skW4n/zGGNMU0RhU3hQI= -google.golang.org/genproto v0.0.0-20211102202547-e9cf271f7f2c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go index 7f110a2cb53..300ec287fb4 100644 --- a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go +++ b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go @@ -194,54 +194,42 @@ func (c *BinauthzManagementServiceV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } -// GetPolicy a policy specifies the -// attestors that must -// attest to a container image, before the project is allowed to deploy that +// GetPolicy a policy specifies the attestors that must attest to +// a container image, before the project is allowed to deploy that // image. There is at most one policy per project. All image admission // requests are permitted if a project has no policy. // -// Gets the policy for this -// project. Returns a default -// policy if the project -// does not have one. +// Gets the policy for this project. Returns a default +// policy if the project does not have one. func (c *BinauthzManagementServiceV1Beta1Client) GetPolicy(ctx context.Context, req *binaryauthorizationpb.GetPolicyRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Policy, error) { return c.internalClient.GetPolicy(ctx, req, opts...) } -// UpdatePolicy creates or updates a project’s -// policy, and returns a -// copy of the new policy. -// A policy is always updated as a whole, to avoid race conditions with -// concurrent policy enforcement (or management!) requests. Returns NOT_FOUND -// if the project does not exist, INVALID_ARGUMENT if the request is -// malformed. +// UpdatePolicy creates or updates a project’s policy, and returns a copy of the +// new policy. A policy is always updated as a whole, to avoid race +// conditions with concurrent policy enforcement (or management!) +// requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT +// if the request is malformed. func (c *BinauthzManagementServiceV1Beta1Client) UpdatePolicy(ctx context.Context, req *binaryauthorizationpb.UpdatePolicyRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Policy, error) { return c.internalClient.UpdatePolicy(ctx, req, opts...) } -// CreateAttestor creates an attestor, -// and returns a copy of the new -// attestor. Returns -// NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is -// malformed, ALREADY_EXISTS if the -// attestor already -// exists. +// CreateAttestor creates an attestor, and returns a copy of the new +// attestor. Returns NOT_FOUND if the project does not exist, +// INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the +// attestor already exists. func (c *BinauthzManagementServiceV1Beta1Client) CreateAttestor(ctx context.Context, req *binaryauthorizationpb.CreateAttestorRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Attestor, error) { return c.internalClient.CreateAttestor(ctx, req, opts...) } // GetAttestor gets an attestor. -// Returns NOT_FOUND if the -// attestor does not -// exist. +// Returns NOT_FOUND if the attestor does not exist. func (c *BinauthzManagementServiceV1Beta1Client) GetAttestor(ctx context.Context, req *binaryauthorizationpb.GetAttestorRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Attestor, error) { return c.internalClient.GetAttestor(ctx, req, opts...) } // UpdateAttestor updates an attestor. -// Returns NOT_FOUND if the -// attestor does not -// exist. +// Returns NOT_FOUND if the attestor does not exist. func (c *BinauthzManagementServiceV1Beta1Client) UpdateAttestor(ctx context.Context, req *binaryauthorizationpb.UpdateAttestorRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Attestor, error) { return c.internalClient.UpdateAttestor(ctx, req, opts...) } @@ -252,10 +240,8 @@ func (c *BinauthzManagementServiceV1Beta1Client) ListAttestors(ctx context.Conte return c.internalClient.ListAttestors(ctx, req, opts...) } -// DeleteAttestor deletes an attestor. -// Returns NOT_FOUND if the -// attestor does not -// exist. +// DeleteAttestor deletes an attestor. Returns NOT_FOUND if the +// attestor does not exist. func (c *BinauthzManagementServiceV1Beta1Client) DeleteAttestor(ctx context.Context, req *binaryauthorizationpb.DeleteAttestorRequest, opts ...gax.CallOption) error { return c.internalClient.DeleteAttestor(ctx, req, opts...) } diff --git a/binaryauthorization/apiv1beta1/doc.go b/binaryauthorization/apiv1beta1/doc.go index ad7170bf599..4fd676a87ed 100644 --- a/binaryauthorization/apiv1beta1/doc.go +++ b/binaryauthorization/apiv1beta1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/binaryauthorization/apiv1beta1/gapic_metadata.json b/binaryauthorization/apiv1beta1/gapic_metadata.json index fb591a2cbb1..7c86e7329aa 100644 --- a/binaryauthorization/apiv1beta1/gapic_metadata.json +++ b/binaryauthorization/apiv1beta1/gapic_metadata.json @@ -48,6 +48,20 @@ } } } + }, + "SystemPolicyV1Beta1": { + "clients": { + "grpc": { + "libraryClient": "SystemPolicyV1Beta1Client", + "rpcs": { + "GetSystemPolicy": { + "methods": [ + "GetSystemPolicy" + ] + } + } + } + } } } } diff --git a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go new file mode 100644 index 00000000000..63f7937c49b --- /dev/null +++ b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go @@ -0,0 +1,201 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package binaryauthorization + +import ( + "context" + "fmt" + "math" + "net/url" + + gax "github.com/googleapis/gax-go/v2" + "google.golang.org/api/option" + "google.golang.org/api/option/internaloption" + gtransport "google.golang.org/api/transport/grpc" + binaryauthorizationpb "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1" + "google.golang.org/grpc" + "google.golang.org/grpc/metadata" +) + +var newSystemPolicyV1Beta1ClientHook clientHook + +// SystemPolicyV1Beta1CallOptions contains the retry settings for each method of SystemPolicyV1Beta1Client. +type SystemPolicyV1Beta1CallOptions struct { + GetSystemPolicy []gax.CallOption +} + +func defaultSystemPolicyV1Beta1GRPCClientOptions() []option.ClientOption { + return []option.ClientOption{ + internaloption.WithDefaultEndpoint("binaryauthorization.googleapis.com:443"), + internaloption.WithDefaultMTLSEndpoint("binaryauthorization.mtls.googleapis.com:443"), + internaloption.WithDefaultAudience("https://binaryauthorization.googleapis.com/"), + internaloption.WithDefaultScopes(DefaultAuthScopes()...), + internaloption.EnableJwtWithScope(), + option.WithGRPCDialOption(grpc.WithDisableServiceConfig()), + option.WithGRPCDialOption(grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(math.MaxInt32))), + } +} + +func defaultSystemPolicyV1Beta1CallOptions() *SystemPolicyV1Beta1CallOptions { + return &SystemPolicyV1Beta1CallOptions{ + GetSystemPolicy: []gax.CallOption{}, + } +} + +// internalSystemPolicyV1Beta1Client is an interface that defines the methods availaible from Binary Authorization API. +type internalSystemPolicyV1Beta1Client interface { + Close() error + setGoogleClientInfo(...string) + Connection() *grpc.ClientConn + GetSystemPolicy(context.Context, *binaryauthorizationpb.GetSystemPolicyRequest, ...gax.CallOption) (*binaryauthorizationpb.Policy, error) +} + +// SystemPolicyV1Beta1Client is a client for interacting with Binary Authorization API. +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +// +// API for working with the system policy. +type SystemPolicyV1Beta1Client struct { + // The internal transport-dependent client. + internalClient internalSystemPolicyV1Beta1Client + + // The call options for this service. + CallOptions *SystemPolicyV1Beta1CallOptions +} + +// Wrapper methods routed to the internal client. + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *SystemPolicyV1Beta1Client) Close() error { + return c.internalClient.Close() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *SystemPolicyV1Beta1Client) setGoogleClientInfo(keyval ...string) { + c.internalClient.setGoogleClientInfo(keyval...) +} + +// Connection returns a connection to the API service. +// +// Deprecated. +func (c *SystemPolicyV1Beta1Client) Connection() *grpc.ClientConn { + return c.internalClient.Connection() +} + +// GetSystemPolicy gets the current system policy in the specified location. +func (c *SystemPolicyV1Beta1Client) GetSystemPolicy(ctx context.Context, req *binaryauthorizationpb.GetSystemPolicyRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Policy, error) { + return c.internalClient.GetSystemPolicy(ctx, req, opts...) +} + +// systemPolicyV1Beta1GRPCClient is a client for interacting with Binary Authorization API over gRPC transport. +// +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +type systemPolicyV1Beta1GRPCClient struct { + // Connection pool of gRPC connections to the service. + connPool gtransport.ConnPool + + // flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE + disableDeadlines bool + + // Points back to the CallOptions field of the containing SystemPolicyV1Beta1Client + CallOptions **SystemPolicyV1Beta1CallOptions + + // The gRPC API client. + systemPolicyV1Beta1Client binaryauthorizationpb.SystemPolicyV1Beta1Client + + // The x-goog-* metadata to be sent with each request. + xGoogMetadata metadata.MD +} + +// NewSystemPolicyV1Beta1Client creates a new system policy v1 beta1 client based on gRPC. +// The returned client must be Closed when it is done being used to clean up its underlying connections. +// +// API for working with the system policy. +func NewSystemPolicyV1Beta1Client(ctx context.Context, opts ...option.ClientOption) (*SystemPolicyV1Beta1Client, error) { + clientOpts := defaultSystemPolicyV1Beta1GRPCClientOptions() + if newSystemPolicyV1Beta1ClientHook != nil { + hookOpts, err := newSystemPolicyV1Beta1ClientHook(ctx, clientHookParams{}) + if err != nil { + return nil, err + } + clientOpts = append(clientOpts, hookOpts...) + } + + disableDeadlines, err := checkDisableDeadlines() + if err != nil { + return nil, err + } + + connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) + if err != nil { + return nil, err + } + client := SystemPolicyV1Beta1Client{CallOptions: defaultSystemPolicyV1Beta1CallOptions()} + + c := &systemPolicyV1Beta1GRPCClient{ + connPool: connPool, + disableDeadlines: disableDeadlines, + systemPolicyV1Beta1Client: binaryauthorizationpb.NewSystemPolicyV1Beta1Client(connPool), + CallOptions: &client.CallOptions, + } + c.setGoogleClientInfo() + + client.internalClient = c + + return &client, nil +} + +// Connection returns a connection to the API service. +// +// Deprecated. +func (c *systemPolicyV1Beta1GRPCClient) Connection() *grpc.ClientConn { + return c.connPool.Conn() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *systemPolicyV1Beta1GRPCClient) setGoogleClientInfo(keyval ...string) { + kv := append([]string{"gl-go", versionGo()}, keyval...) + kv = append(kv, "gapic", versionClient, "gax", gax.Version, "grpc", grpc.Version) + c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) +} + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *systemPolicyV1Beta1GRPCClient) Close() error { + return c.connPool.Close() +} + +func (c *systemPolicyV1Beta1GRPCClient) GetSystemPolicy(ctx context.Context, req *binaryauthorizationpb.GetSystemPolicyRequest, opts ...gax.CallOption) (*binaryauthorizationpb.Policy, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).GetSystemPolicy[0:len((*c.CallOptions).GetSystemPolicy):len((*c.CallOptions).GetSystemPolicy)], opts...) + var resp *binaryauthorizationpb.Policy + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.systemPolicyV1Beta1Client.GetSystemPolicy(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go new file mode 100644 index 00000000000..2f68bc53c26 --- /dev/null +++ b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package binaryauthorization_test + +import ( + "context" + + binaryauthorization "cloud.google.com/go/binaryauthorization/apiv1beta1" + binaryauthorizationpb "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1" +) + +func ExampleNewSystemPolicyV1Beta1Client() { + ctx := context.Background() + c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + // TODO: Use client. + _ = c +} + +func ExampleSystemPolicyV1Beta1Client_GetSystemPolicy() { + ctx := context.Background() + c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &binaryauthorizationpb.GetSystemPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1#GetSystemPolicyRequest. + } + resp, err := c.GetSystemPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} diff --git a/binaryauthorization/go.mod b/binaryauthorization/go.mod index e128d1ccc9c..d2a1687c638 100644 --- a/binaryauthorization/go.mod +++ b/binaryauthorization/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/binaryauthorization/go.sum b/binaryauthorization/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/binaryauthorization/go.sum +++ b/binaryauthorization/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/compute/apiv1/doc.go b/compute/apiv1/doc.go index 64f4e625440..9604b153481 100644 --- a/compute/apiv1/doc.go +++ b/compute/apiv1/doc.go @@ -91,7 +91,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211104" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/contactcenterinsights/apiv1/contact_center_insights_client.go b/contactcenterinsights/apiv1/contact_center_insights_client.go index 642c13d7752..c61afbd6818 100644 --- a/contactcenterinsights/apiv1/contact_center_insights_client.go +++ b/contactcenterinsights/apiv1/contact_center_insights_client.go @@ -67,6 +67,7 @@ type CallOptions struct { GetPhraseMatcher []gax.CallOption ListPhraseMatchers []gax.CallOption DeletePhraseMatcher []gax.CallOption + UpdatePhraseMatcher []gax.CallOption CalculateStats []gax.CallOption GetSettings []gax.CallOption UpdateSettings []gax.CallOption @@ -362,6 +363,17 @@ func defaultCallOptions() *CallOptions { }) }), }, + UpdatePhraseMatcher: []gax.CallOption{ + gax.WithRetry(func() gax.Retryer { + return gax.OnCodes([]codes.Code{ + codes.Unavailable, + }, gax.Backoff{ + Initial: 1000 * time.Millisecond, + Max: 10000 * time.Millisecond, + Multiplier: 1.30, + }) + }), + }, CalculateStats: []gax.CallOption{ gax.WithRetry(func() gax.Retryer { return gax.OnCodes([]codes.Code{ @@ -434,6 +446,7 @@ type internalClient interface { GetPhraseMatcher(context.Context, *contactcenterinsightspb.GetPhraseMatcherRequest, ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error) ListPhraseMatchers(context.Context, *contactcenterinsightspb.ListPhraseMatchersRequest, ...gax.CallOption) *PhraseMatcherIterator DeletePhraseMatcher(context.Context, *contactcenterinsightspb.DeletePhraseMatcherRequest, ...gax.CallOption) error + UpdatePhraseMatcher(context.Context, *contactcenterinsightspb.UpdatePhraseMatcherRequest, ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error) CalculateStats(context.Context, *contactcenterinsightspb.CalculateStatsRequest, ...gax.CallOption) (*contactcenterinsightspb.CalculateStatsResponse, error) GetSettings(context.Context, *contactcenterinsightspb.GetSettingsRequest, ...gax.CallOption) (*contactcenterinsightspb.Settings, error) UpdateSettings(context.Context, *contactcenterinsightspb.UpdateSettingsRequest, ...gax.CallOption) (*contactcenterinsightspb.Settings, error) @@ -642,6 +655,11 @@ func (c *Client) DeletePhraseMatcher(ctx context.Context, req *contactcenterinsi return c.internalClient.DeletePhraseMatcher(ctx, req, opts...) } +// UpdatePhraseMatcher updates a phrase matcher. +func (c *Client) UpdatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.UpdatePhraseMatcherRequest, opts ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error) { + return c.internalClient.UpdatePhraseMatcher(ctx, req, opts...) +} + // CalculateStats gets conversation statistics. func (c *Client) CalculateStats(ctx context.Context, req *contactcenterinsightspb.CalculateStatsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.CalculateStatsResponse, error) { return c.internalClient.CalculateStats(ctx, req, opts...) @@ -1347,6 +1365,27 @@ func (c *gRPCClient) DeletePhraseMatcher(ctx context.Context, req *contactcenter return err } +func (c *gRPCClient) UpdatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.UpdatePhraseMatcherRequest, opts ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error) { + if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { + cctx, cancel := context.WithTimeout(ctx, 60000*time.Millisecond) + defer cancel() + ctx = cctx + } + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "phrase_matcher.name", url.QueryEscape(req.GetPhraseMatcher().GetName()))) + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).UpdatePhraseMatcher[0:len((*c.CallOptions).UpdatePhraseMatcher):len((*c.CallOptions).UpdatePhraseMatcher)], opts...) + var resp *contactcenterinsightspb.PhraseMatcher + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.client.UpdatePhraseMatcher(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + func (c *gRPCClient) CalculateStats(ctx context.Context, req *contactcenterinsightspb.CalculateStatsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.CalculateStatsResponse, error) { if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { cctx, cancel := context.WithTimeout(ctx, 60000*time.Millisecond) diff --git a/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go b/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go index f1e7b90bf58..ddcb105fcd2 100644 --- a/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go +++ b/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go @@ -576,6 +576,26 @@ func ExampleClient_DeletePhraseMatcher() { } } +func ExampleClient_UpdatePhraseMatcher() { + ctx := context.Background() + c, err := contactcenterinsights.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &contactcenterinsightspb.UpdatePhraseMatcherRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdatePhraseMatcherRequest. + } + resp, err := c.UpdatePhraseMatcher(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + func ExampleClient_CalculateStats() { ctx := context.Background() c, err := contactcenterinsights.NewClient(ctx) diff --git a/contactcenterinsights/apiv1/doc.go b/contactcenterinsights/apiv1/doc.go index 56aafe6e6cc..8fcd2b08628 100644 --- a/contactcenterinsights/apiv1/doc.go +++ b/contactcenterinsights/apiv1/doc.go @@ -84,7 +84,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/contactcenterinsights/apiv1/gapic_metadata.json b/contactcenterinsights/apiv1/gapic_metadata.json index 515fede1dfe..60defb1a374 100644 --- a/contactcenterinsights/apiv1/gapic_metadata.json +++ b/contactcenterinsights/apiv1/gapic_metadata.json @@ -145,6 +145,11 @@ "UpdateIssueModel" ] }, + "UpdatePhraseMatcher": { + "methods": [ + "UpdatePhraseMatcher" + ] + }, "UpdateSettings": { "methods": [ "UpdateSettings" diff --git a/contactcenterinsights/go.mod b/contactcenterinsights/go.mod index 55bd4263c40..275bb9ee355 100644 --- a/contactcenterinsights/go.mod +++ b/contactcenterinsights/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/contactcenterinsights/go.sum b/contactcenterinsights/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/contactcenterinsights/go.sum +++ b/contactcenterinsights/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/container/apiv1/doc.go b/container/apiv1/doc.go index 6953372a91a..74dcffe37d3 100644 --- a/container/apiv1/doc.go +++ b/container/apiv1/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/container/go.mod b/container/go.mod index 6e8b4684a30..a204d3b7453 100644 --- a/container/go.mod +++ b/container/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/container/go.sum b/container/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/container/go.sum +++ b/container/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/datacatalog/apiv1/data_catalog_client.go b/datacatalog/apiv1/data_catalog_client.go index 1170370f556..4dccfdbd296 100644 --- a/datacatalog/apiv1/data_catalog_client.go +++ b/datacatalog/apiv1/data_catalog_client.go @@ -400,6 +400,10 @@ func (c *Client) LookupEntry(ctx context.Context, req *datacatalogpb.LookupEntry } // ListEntries lists entries. +// +// Note: Currently, this method can list only custom entries. +// To get a list of both custom and automatically created entries, use +// SearchCatalog. func (c *Client) ListEntries(ctx context.Context, req *datacatalogpb.ListEntriesRequest, opts ...gax.CallOption) *EntryIterator { return c.internalClient.ListEntries(ctx, req, opts...) } diff --git a/datacatalog/apiv1/doc.go b/datacatalog/apiv1/doc.go index d5ecff574e9..4531e7de5ea 100644 --- a/datacatalog/apiv1/doc.go +++ b/datacatalog/apiv1/doc.go @@ -91,7 +91,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datacatalog/go.mod b/datacatalog/go.mod index d2fee202e65..0e389f68fa5 100644 --- a/datacatalog/go.mod +++ b/datacatalog/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/datacatalog/go.sum b/datacatalog/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/datacatalog/go.sum +++ b/datacatalog/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/dialogflow/apiv2/doc.go b/dialogflow/apiv2/doc.go index 8fa65da5765..61cfc2babe3 100644 --- a/dialogflow/apiv2/doc.go +++ b/dialogflow/apiv2/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/cx/apiv3beta1/doc.go b/dialogflow/cx/apiv3beta1/doc.go index 15e90e33854..996b37d8476 100644 --- a/dialogflow/cx/apiv3beta1/doc.go +++ b/dialogflow/cx/apiv3beta1/doc.go @@ -93,7 +93,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211104" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/go.mod b/dialogflow/go.mod index ef878593b24..be72ddc5d0c 100644 --- a/dialogflow/go.mod +++ b/dialogflow/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/dialogflow/go.sum b/dialogflow/go.sum index 24ce3cdb506..c388132d21c 100644 --- a/dialogflow/go.sum +++ b/dialogflow/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 h1:ZONpjmFT5e+I/0/xE3XXbG5OIvX2hRYzol04MhKBl2E= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/functions/apiv1/doc.go b/functions/apiv1/doc.go index 9f09d3cc3a6..25a217408ab 100644 --- a/functions/apiv1/doc.go +++ b/functions/apiv1/doc.go @@ -91,7 +91,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/functions/go.mod b/functions/go.mod index 4f8869d7759..c831d5b68d0 100644 --- a/functions/go.mod +++ b/functions/go.mod @@ -7,7 +7,7 @@ require ( github.com/google/go-cmp v0.5.6 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/functions/go.sum b/functions/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/functions/go.sum +++ b/functions/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go index e28116341c8..723f2eafa57 100644 --- a/gaming/apiv1/doc.go +++ b/gaming/apiv1/doc.go @@ -91,7 +91,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gaming/go.mod b/gaming/go.mod index 4d711d3b94d..35d574ea2c0 100644 --- a/gaming/go.mod +++ b/gaming/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/gaming/go.sum b/gaming/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/gaming/go.sum +++ b/gaming/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/go.mod b/go.mod index 9f1337bf1ec..2b648da22b9 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/go.sum b/go.sum index 9204426bda9..d9b94efb537 100644 --- a/go.sum +++ b/go.sum @@ -511,8 +511,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 h1:ZONpjmFT5e+I/0/xE3XXbG5OIvX2hRYzol04MhKBl2E= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/iam/credentials/apiv1/doc.go b/iam/credentials/apiv1/doc.go index 85006e560db..2e91daa023d 100644 --- a/iam/credentials/apiv1/doc.go +++ b/iam/credentials/apiv1/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go new file mode 100644 index 00000000000..e0a9a897866 --- /dev/null +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_GetSystemPolicy_sync] + +package main + +import ( + "context" + + binaryauthorization "cloud.google.com/go/binaryauthorization/apiv1beta1" + binaryauthorizationpb "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1" +) + +func main() { + ctx := context.Background() + c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &binaryauthorizationpb.GetSystemPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1#GetSystemPolicyRequest. + } + resp, err := c.GetSystemPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_GetSystemPolicy_sync] diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go new file mode 100644 index 00000000000..f6cd15d5114 --- /dev/null +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] + +package main + +import ( + "context" + + contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1" + contactcenterinsightspb "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" +) + +func main() { + ctx := context.Background() + c, err := contactcenterinsights.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &contactcenterinsightspb.UpdatePhraseMatcherRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdatePhraseMatcherRequest. + } + resp, err := c.UpdatePhraseMatcher(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index bc42a151785..26be8d609eb 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -125,7 +125,7 @@ require ( cloud.google.com/go/websecurityscanner v0.1.0 cloud.google.com/go/workflows v0.1.0 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b ) replace cloud.google.com/go/storagetransfer => ../../../storagetransfer diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index a81deca0dee..d5978ceba94 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -166,8 +166,9 @@ google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211102202547-e9cf271f7f2c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 h1:ZONpjmFT5e+I/0/xE3XXbG5OIvX2hRYzol04MhKBl2E= google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index c72f23206fa..9cab69164b9 100644 --- a/internal/godocfx/go.sum +++ b/internal/godocfx/go.sum @@ -326,8 +326,8 @@ google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 h1:ZONpjmFT5e+I/0/xE3XXbG5OIvX2hRYzol04MhKBl2E= -google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/networkconnectivity/apiv1/doc.go b/networkconnectivity/apiv1/doc.go index 3393c756198..60122bcefc6 100644 --- a/networkconnectivity/apiv1/doc.go +++ b/networkconnectivity/apiv1/doc.go @@ -93,7 +93,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/networkconnectivity/go.mod b/networkconnectivity/go.mod index eeb1a70780c..e2e013d51a3 100644 --- a/networkconnectivity/go.mod +++ b/networkconnectivity/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/networkconnectivity/go.sum b/networkconnectivity/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/networkconnectivity/go.sum +++ b/networkconnectivity/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/redis/apiv1/cloud_redis_client.go b/redis/apiv1/cloud_redis_client.go index ee5736e18c2..cb5b9b6a7da 100644 --- a/redis/apiv1/cloud_redis_client.go +++ b/redis/apiv1/cloud_redis_client.go @@ -261,7 +261,7 @@ func (c *CloudRedisClient) ExportInstanceOperation(name string) *ExportInstanceO return c.internalClient.ExportInstanceOperation(name) } -// FailoverInstance initiates a failover of the master node to current replica node for a +// FailoverInstance initiates a failover of the primary node to current replica node for a // specific STANDARD tier Cloud Memorystore for Redis instance. func (c *CloudRedisClient) FailoverInstance(ctx context.Context, req *redispb.FailoverInstanceRequest, opts ...gax.CallOption) (*FailoverInstanceOperation, error) { return c.internalClient.FailoverInstance(ctx, req, opts...) diff --git a/redis/apiv1/doc.go b/redis/apiv1/doc.go index 55fa0b72e7b..6bbc8682e39 100644 --- a/redis/apiv1/doc.go +++ b/redis/apiv1/doc.go @@ -90,7 +90,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/apiv1beta1/cloud_redis_client.go b/redis/apiv1beta1/cloud_redis_client.go index 7ec02500265..dd7cc64f0dc 100644 --- a/redis/apiv1beta1/cloud_redis_client.go +++ b/redis/apiv1beta1/cloud_redis_client.go @@ -123,7 +123,7 @@ type internalCloudRedisClient interface { // As such, Redis instances are resources of the form: // /projects/{project_id}/locations/{location_id}/instances/{instance_id} // -// Note that location_id must be refering to a GCP region; for example: +// Note that location_id must be referring to a GCP region; for example: // // projects/redpepper-1290/locations/us-central1/instances/my-redis type CloudRedisClient struct { @@ -186,7 +186,7 @@ func (c *CloudRedisClient) GetInstance(ctx context.Context, req *redispb.GetInst // // The creation is executed asynchronously and callers may check the returned // operation to track its progress. Once the operation is completed the Redis -// instance will be fully functional. Completed longrunning.Operation will +// instance will be fully functional. The completed longrunning.Operation will // contain the new instance object in the response field. // // The returned operation is automatically deleted after a few hours, so there @@ -262,7 +262,7 @@ func (c *CloudRedisClient) ExportInstanceOperation(name string) *ExportInstanceO return c.internalClient.ExportInstanceOperation(name) } -// FailoverInstance initiates a failover of the master node to current replica node for a +// FailoverInstance initiates a failover of the primary node to current replica node for a // specific STANDARD tier Cloud Memorystore for Redis instance. func (c *CloudRedisClient) FailoverInstance(ctx context.Context, req *redispb.FailoverInstanceRequest, opts ...gax.CallOption) (*FailoverInstanceOperation, error) { return c.internalClient.FailoverInstance(ctx, req, opts...) @@ -331,7 +331,7 @@ type cloudRedisGRPCClient struct { // As such, Redis instances are resources of the form: // /projects/{project_id}/locations/{location_id}/instances/{instance_id} // -// Note that location_id must be refering to a GCP region; for example: +// Note that location_id must be referring to a GCP region; for example: // // projects/redpepper-1290/locations/us-central1/instances/my-redis func NewCloudRedisClient(ctx context.Context, opts ...option.ClientOption) (*CloudRedisClient, error) { diff --git a/redis/apiv1beta1/doc.go b/redis/apiv1beta1/doc.go index f6994e15bab..c9901a05abd 100644 --- a/redis/apiv1beta1/doc.go +++ b/redis/apiv1beta1/doc.go @@ -92,7 +92,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/go.mod b/redis/go.mod index 97db7e34411..1a078954a57 100644 --- a/redis/go.mod +++ b/redis/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/redis/go.sum b/redis/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/redis/go.sum +++ b/redis/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/resourcemanager/apiv3/doc.go b/resourcemanager/apiv3/doc.go index aa256ed14dc..0e3cd9e0ada 100644 --- a/resourcemanager/apiv3/doc.go +++ b/resourcemanager/apiv3/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcemanager/go.mod b/resourcemanager/go.mod index c32461610e4..446d3c9b711 100644 --- a/resourcemanager/go.mod +++ b/resourcemanager/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/resourcemanager/go.sum b/resourcemanager/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/resourcemanager/go.sum +++ b/resourcemanager/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index 5195b5e231e..0f35f12ace1 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1p1beta1/doc.go b/securitycenter/apiv1p1beta1/doc.go index c071cc034ec..00eeff8d26f 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/go.mod b/securitycenter/go.mod index 6428d49292f..6b448ac12be 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/securitycenter/go.sum b/securitycenter/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/securitycenter/go.sum +++ b/securitycenter/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/storage/go.mod b/storage/go.mod index 556937b21ca..d9335fb836a 100644 --- a/storage/go.mod +++ b/storage/go.mod @@ -10,7 +10,7 @@ require ( golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/storage/go.sum b/storage/go.sum index 6133b9997c5..d6904cb9b74 100644 --- a/storage/go.sum +++ b/storage/go.sum @@ -511,8 +511,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/storage/internal/apiv2/doc.go b/storage/internal/apiv2/doc.go index af5af6714a1..18b6c3fefcb 100644 --- a/storage/internal/apiv2/doc.go +++ b/storage/internal/apiv2/doc.go @@ -68,7 +68,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/storage/internal/apiv2/storage_client.go b/storage/internal/apiv2/storage_client.go index 261ae13d053..ef9720c87f1 100644 --- a/storage/internal/apiv2/storage_client.go +++ b/storage/internal/apiv2/storage_client.go @@ -121,7 +121,28 @@ type internalClient interface { // Client is a client for interacting with Cloud Storage API. // Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. // -// Manages Google Cloud Storage resources. +// API Overview and Naming SyntaxThe GCS gRPC API allows applications to read and write data through the +// abstractions of buckets and objects. For a description of these abstractions +// please see https://cloud.google.com/storage/docs (at https://cloud.google.com/storage/docs). +// +// Resources are named as follows: +// +// Projects are referred to as they are defined by the Resource Manager API, +// using strings like projects/123456 or projects/my-string-id. +// +// Buckets are named using string names of the form: +// projects/{project}/buckets/{bucket} +// For globally unique buckets, _ may be substituted for the project. +// +// Objects are uniquely identified by their name along with the name of the +// bucket they belong to, as separate strings in this API. For example: +// +// ReadObjectRequest { +// bucket: ‘projects/_/buckets/my-bucket’ +// object: ‘my-object’ +// } +// Note that object names can contain / characters, which are treated as +// any other character (no special directory semantics). type Client struct { // The internal transport-dependent client. internalClient internalClient @@ -232,7 +253,28 @@ type gRPCClient struct { // NewClient creates a new storage client based on gRPC. // The returned client must be Closed when it is done being used to clean up its underlying connections. // -// Manages Google Cloud Storage resources. +// API Overview and Naming SyntaxThe GCS gRPC API allows applications to read and write data through the +// abstractions of buckets and objects. For a description of these abstractions +// please see https://cloud.google.com/storage/docs (at https://cloud.google.com/storage/docs). +// +// Resources are named as follows: +// +// Projects are referred to as they are defined by the Resource Manager API, +// using strings like projects/123456 or projects/my-string-id. +// +// Buckets are named using string names of the form: +// projects/{project}/buckets/{bucket} +// For globally unique buckets, _ may be substituted for the project. +// +// Objects are uniquely identified by their name along with the name of the +// bucket they belong to, as separate strings in this API. For example: +// +// ReadObjectRequest { +// bucket: ‘projects/_/buckets/my-bucket’ +// object: ‘my-object’ +// } +// Note that object names can contain / characters, which are treated as +// any other character (no special directory semantics). func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error) { clientOpts := defaultGRPCClientOptions() if newClientHook != nil { diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index 249f11a5781..9f13f99e90f 100644 --- a/texttospeech/apiv1/doc.go +++ b/texttospeech/apiv1/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/texttospeech/go.mod b/texttospeech/go.mod index e4ed4416a0a..a7065560705 100644 --- a/texttospeech/go.mod +++ b/texttospeech/go.mod @@ -7,6 +7,6 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 ) diff --git a/texttospeech/go.sum b/texttospeech/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/texttospeech/go.sum +++ b/texttospeech/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/workflows/executions/apiv1/doc.go b/workflows/executions/apiv1/doc.go index 69da1911054..88bb8aef780 100644 --- a/workflows/executions/apiv1/doc.go +++ b/workflows/executions/apiv1/doc.go @@ -90,7 +90,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211030" +const versionClient = "20211111" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/go.mod b/workflows/go.mod index 10fe55c3eba..9f9a7f289ce 100644 --- a/workflows/go.mod +++ b/workflows/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.60.0 - google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 + google.golang.org/genproto v0.0.0-20211111162719-482062a4217b google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/workflows/go.sum b/workflows/go.sum index 4a0ee7cc155..c388132d21c 100644 --- a/workflows/go.sum +++ b/workflows/go.sum @@ -503,8 +503,8 @@ google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145 h1:vum3nDKdleYb+aePXKFEDT2+ghuH00EgYp9B7Q7EZZE= -google.golang.org/genproto v0.0.0-20211101144312-62acf1d99145/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b h1:qvEQEwKjZRAg6rjY/jqfJ7T8/w/D7jTIFJGcaSka96k= +google.golang.org/genproto v0.0.0-20211111162719-482062a4217b/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=