diff --git a/documentai/apiv1/doc.go b/documentai/apiv1/doc.go index 063c6242c04..fe4aae70e7f 100644 --- a/documentai/apiv1/doc.go +++ b/documentai/apiv1/doc.go @@ -86,7 +86,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211113" +const versionClient = "20211116" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/documentai/go.mod b/documentai/go.mod index 97576cfd3e3..0d9d5d40db9 100644 --- a/documentai/go.mod +++ b/documentai/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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/documentai/go.sum b/documentai/go.sum index fe5138ddd30..f55237e55f0 100644 --- a/documentai/go.sum +++ b/documentai/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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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 1c0da7297c0..9eb1209aa6b 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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/go.sum b/go.sum index 98e2139dfe5..9a6457c6c16 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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/ids/apiv1/doc.go b/ids/apiv1/doc.go index 0ce1df7cb69..5c7ef4280f6 100644 --- a/ids/apiv1/doc.go +++ b/ids/apiv1/doc.go @@ -96,7 +96,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211115" +const versionClient = "20211116" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/ids/apiv1/ids_client.go b/ids/apiv1/ids_client.go index 9abd7707ac2..d5f65d92535 100644 --- a/ids/apiv1/ids_client.go +++ b/ids/apiv1/ids_client.go @@ -55,7 +55,6 @@ func defaultGRPCClientOptions() []option.ClientOption { internaloption.WithDefaultAudience("https://ids.googleapis.com/"), internaloption.WithDefaultScopes(DefaultAuthScopes()...), internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDisableServiceConfig()), option.WithGRPCDialOption(grpc.WithDefaultCallOptions( grpc.MaxCallRecvMsgSize(math.MaxInt32))), } diff --git a/ids/go.mod b/ids/go.mod index 8b01a74ce0b..42c5f1e382b 100644 --- a/ids/go.mod +++ b/ids/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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.42.0 google.golang.org/protobuf v1.27.1 ) diff --git a/ids/go.sum b/ids/go.sum index 93db0a9bd2e..7cfdff4aae5 100644 --- a/ids/go.sum +++ b/ids/go.sum @@ -509,8 +509,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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/internal/.repo-metadata-full.json b/internal/.repo-metadata-full.json index 660df6f4512..e458e7e6c18 100644 --- a/internal/.repo-metadata-full.json +++ b/internal/.repo-metadata-full.json @@ -581,7 +581,7 @@ "language": "Go", "client_library_type": "generated", "docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/filestore/latest/apiv1", - "release_level": "ga", + "release_level": "beta", "library_type": "" }, "cloud.google.com/go/firestore": { @@ -869,7 +869,7 @@ "language": "Go", "client_library_type": "generated", "docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/monitoring/latest/metricsscope/apiv1", - "release_level": "beta", + "release_level": "ga", "library_type": "" }, "cloud.google.com/go/networkconnectivity/apiv1": { diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 2e2909c8c65..8be3d1bebde 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -70,6 +70,7 @@ require ( cloud.google.com/go/gkehub v0.1.0 cloud.google.com/go/gsuiteaddons v0.1.0 cloud.google.com/go/iap v0.1.0 + cloud.google.com/go/ids v0.0.0-00010101000000-000000000000 cloud.google.com/go/iot v0.1.0 cloud.google.com/go/kms v1.0.0 cloud.google.com/go/language v0.1.0 @@ -120,12 +121,13 @@ require ( cloud.google.com/go/video v0.1.0 cloud.google.com/go/videointelligence v0.1.0 cloud.google.com/go/vision v0.1.0 + cloud.google.com/go/vmmigration v0.0.0-00010101000000-000000000000 cloud.google.com/go/vpcaccess v0.1.0 cloud.google.com/go/webrisk v0.1.0 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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 ) replace cloud.google.com/go/storagetransfer => ../../../storagetransfer @@ -317,3 +319,7 @@ replace cloud.google.com/go/orchestration => ../../../orchestration replace cloud.google.com/go/filestore => ../../../filestore replace cloud.google.com/go/deploy => ../../../deploy + +replace cloud.google.com/go/ids => ../../../ids + +replace cloud.google.com/go/vmmigration => ../../../vmmigration diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 352ecae2342..fd29d04552f 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -9,11 +9,14 @@ github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403 h1:cqQfy1jclcSy/FwLjemeg3SR1yaINm74aQyupQ0Bl8M= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 h1:hzAQntlaYRkVSFEfj9OTWlVV1H155FMD8BTKktLv0QI= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158 h1:CevA8fI91PAnP8vpnXuB8ZYAZ5wqY86nAbxfgK8tWO4= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 h1:zH8ljVhhq7yC0MIeUL/IviMtY8hx2mK8cN9wEYb8ggw= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -165,8 +168,9 @@ google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEc 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-20211112145013-271947fe86fd/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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= @@ -178,8 +182,9 @@ google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.41.0 h1:f+PlOh7QV4iIJkPrx5NQ7qaNGFQ3OTse67yaDHfju4E= google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= +google.golang.org/grpc v1.42.0 h1:XT2/MFpuPFsEX2fWh3YQtHkZ+WYZFQRfaUgLZYj/p6A= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go new file mode 100644 index 00000000000..f961f2644db --- /dev/null +++ b/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go @@ -0,0 +1,53 @@ +// 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 ids_v1_generated_IDS_CreateEndpoint_sync] + +package main + +import ( + "context" + + ids "cloud.google.com/go/ids/apiv1" + idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" +) + +func main() { + ctx := context.Background() + c, err := ids.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &idspb.CreateEndpointRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#CreateEndpointRequest. + } + op, err := c.CreateEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END ids_v1_generated_IDS_CreateEndpoint_sync] diff --git a/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go new file mode 100644 index 00000000000..cfa796e21a3 --- /dev/null +++ b/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go @@ -0,0 +1,51 @@ +// 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 ids_v1_generated_IDS_DeleteEndpoint_sync] + +package main + +import ( + "context" + + ids "cloud.google.com/go/ids/apiv1" + idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" +) + +func main() { + ctx := context.Background() + c, err := ids.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &idspb.DeleteEndpointRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#DeleteEndpointRequest. + } + op, err := c.DeleteEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END ids_v1_generated_IDS_DeleteEndpoint_sync] diff --git a/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go new file mode 100644 index 00000000000..ac1998a16fb --- /dev/null +++ b/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/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 ids_v1_generated_IDS_GetEndpoint_sync] + +package main + +import ( + "context" + + ids "cloud.google.com/go/ids/apiv1" + idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" +) + +func main() { + ctx := context.Background() + c, err := ids.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &idspb.GetEndpointRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#GetEndpointRequest. + } + resp, err := c.GetEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END ids_v1_generated_IDS_GetEndpoint_sync] diff --git a/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go b/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go new file mode 100644 index 00000000000..13b91acd818 --- /dev/null +++ b/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go @@ -0,0 +1,55 @@ +// 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 ids_v1_generated_IDS_ListEndpoints_sync] + +package main + +import ( + "context" + + ids "cloud.google.com/go/ids/apiv1" + "google.golang.org/api/iterator" + idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" +) + +func main() { + ctx := context.Background() + c, err := ids.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &idspb.ListEndpointsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#ListEndpointsRequest. + } + it := c.ListEndpoints(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END ids_v1_generated_IDS_ListEndpoints_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go new file mode 100644 index 00000000000..036420821a9 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_AddGroupMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.AddGroupMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#AddGroupMigrationRequest. + } + op, err := c.AddGroupMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_AddGroupMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go new file mode 100644 index 00000000000..5e0c5e82d8b --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CancelCloneJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CancelCloneJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CancelCloneJobRequest. + } + op, err := c.CancelCloneJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CancelCloneJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go new file mode 100644 index 00000000000..9763917c83d --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CancelCutoverJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CancelCutoverJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CancelCutoverJobRequest. + } + op, err := c.CancelCutoverJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CancelCutoverJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go new file mode 100644 index 00000000000..0fb41e106fd --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateCloneJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateCloneJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateCloneJobRequest. + } + op, err := c.CreateCloneJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateCloneJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go new file mode 100644 index 00000000000..3767493dbc3 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateCutoverJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateCutoverJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateCutoverJobRequest. + } + op, err := c.CreateCutoverJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateCutoverJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go new file mode 100644 index 00000000000..fefa4a2acfa --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateDatacenterConnector_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateDatacenterConnectorRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateDatacenterConnectorRequest. + } + op, err := c.CreateDatacenterConnector(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateDatacenterConnector_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go new file mode 100644 index 00000000000..8bf2acf8a0a --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateGroup_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateGroupRequest. + } + op, err := c.CreateGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateGroup_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go new file mode 100644 index 00000000000..5f8861ab9c7 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateMigratingVm_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateMigratingVmRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateMigratingVmRequest. + } + op, err := c.CreateMigratingVm(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateMigratingVm_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go new file mode 100644 index 00000000000..ac4c0488ea1 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateSource_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateSourceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateSourceRequest. + } + op, err := c.CreateSource(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateSource_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go new file mode 100644 index 00000000000..411b5e3df7b --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateTargetProject_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateTargetProjectRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateTargetProjectRequest. + } + op, err := c.CreateTargetProject(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateTargetProject_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go new file mode 100644 index 00000000000..ea1c0e2b4eb --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_CreateUtilizationReport_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.CreateUtilizationReportRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateUtilizationReportRequest. + } + op, err := c.CreateUtilizationReport(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_CreateUtilizationReport_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go new file mode 100644 index 00000000000..ea3aa469c3c --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteDatacenterConnector_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteDatacenterConnectorRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteDatacenterConnectorRequest. + } + op, err := c.DeleteDatacenterConnector(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteDatacenterConnector_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go new file mode 100644 index 00000000000..a9a983996d6 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteGroup_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteGroupRequest. + } + op, err := c.DeleteGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteGroup_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go new file mode 100644 index 00000000000..180a258c279 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteMigratingVm_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteMigratingVmRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteMigratingVmRequest. + } + op, err := c.DeleteMigratingVm(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteMigratingVm_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go new file mode 100644 index 00000000000..6fbb3937ffe --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteSource_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteSourceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteSourceRequest. + } + op, err := c.DeleteSource(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteSource_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go new file mode 100644 index 00000000000..ecb92369e9d --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteTargetProject_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteTargetProjectRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteTargetProjectRequest. + } + op, err := c.DeleteTargetProject(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteTargetProject_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go new file mode 100644 index 00000000000..15e9d465d38 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go @@ -0,0 +1,51 @@ +// 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 vmmigration_v1_generated_VmMigration_DeleteUtilizationReport_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.DeleteUtilizationReportRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteUtilizationReportRequest. + } + op, err := c.DeleteUtilizationReport(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteUtilizationReport_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go new file mode 100644 index 00000000000..990856774c2 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/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 vmmigration_v1_generated_VmMigration_FetchInventory_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.FetchInventoryRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#FetchInventoryRequest. + } + resp, err := c.FetchInventory(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_FetchInventory_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go new file mode 100644 index 00000000000..605722bb780 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_FinalizeMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.FinalizeMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#FinalizeMigrationRequest. + } + op, err := c.FinalizeMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_FinalizeMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go new file mode 100644 index 00000000000..4c36847fe6b --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/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 vmmigration_v1_generated_VmMigration_GetCloneJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetCloneJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetCloneJobRequest. + } + resp, err := c.GetCloneJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetCloneJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go new file mode 100644 index 00000000000..70145908943 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/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 vmmigration_v1_generated_VmMigration_GetCutoverJob_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetCutoverJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetCutoverJobRequest. + } + resp, err := c.GetCutoverJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetCutoverJob_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go new file mode 100644 index 00000000000..865b17a9078 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/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 vmmigration_v1_generated_VmMigration_GetDatacenterConnector_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetDatacenterConnectorRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetDatacenterConnectorRequest. + } + resp, err := c.GetDatacenterConnector(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetDatacenterConnector_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go new file mode 100644 index 00000000000..ad04078f169 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/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 vmmigration_v1_generated_VmMigration_GetGroup_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetGroupRequest. + } + resp, err := c.GetGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetGroup_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go new file mode 100644 index 00000000000..474b8a5a091 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/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 vmmigration_v1_generated_VmMigration_GetMigratingVm_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetMigratingVmRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetMigratingVmRequest. + } + resp, err := c.GetMigratingVm(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetMigratingVm_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go new file mode 100644 index 00000000000..75003b50c7e --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/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 vmmigration_v1_generated_VmMigration_GetSource_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetSourceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetSourceRequest. + } + resp, err := c.GetSource(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetSource_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go new file mode 100644 index 00000000000..36fbba6c730 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/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 vmmigration_v1_generated_VmMigration_GetTargetProject_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetTargetProjectRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetTargetProjectRequest. + } + resp, err := c.GetTargetProject(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetTargetProject_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go new file mode 100644 index 00000000000..90720b7ae1f --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/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 vmmigration_v1_generated_VmMigration_GetUtilizationReport_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetUtilizationReportRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetUtilizationReportRequest. + } + resp, err := c.GetUtilizationReport(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetUtilizationReport_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go new file mode 100644 index 00000000000..3539f6256dd --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListCloneJobs_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListCloneJobsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListCloneJobsRequest. + } + it := c.ListCloneJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListCloneJobs_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go new file mode 100644 index 00000000000..3feb437fd8e --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListCutoverJobs_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListCutoverJobsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListCutoverJobsRequest. + } + it := c.ListCutoverJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListCutoverJobs_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go new file mode 100644 index 00000000000..ce663934ba1 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListDatacenterConnectors_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListDatacenterConnectorsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListDatacenterConnectorsRequest. + } + it := c.ListDatacenterConnectors(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListDatacenterConnectors_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go new file mode 100644 index 00000000000..eb7a0e92e59 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListGroups_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListGroupsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListGroupsRequest. + } + it := c.ListGroups(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListGroups_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go new file mode 100644 index 00000000000..10f1b017eee --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListMigratingVms_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListMigratingVmsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListMigratingVmsRequest. + } + it := c.ListMigratingVms(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListMigratingVms_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go new file mode 100644 index 00000000000..621dece4c82 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListSources_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListSourcesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListSourcesRequest. + } + it := c.ListSources(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListSources_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go new file mode 100644 index 00000000000..0f3f0deb2df --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListTargetProjects_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListTargetProjectsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListTargetProjectsRequest. + } + it := c.ListTargetProjects(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListTargetProjects_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go new file mode 100644 index 00000000000..0cfd52ed167 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go @@ -0,0 +1,55 @@ +// 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 vmmigration_v1_generated_VmMigration_ListUtilizationReports_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListUtilizationReportsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListUtilizationReportsRequest. + } + it := c.ListUtilizationReports(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListUtilizationReports_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go new file mode 100644 index 00000000000..b663de59139 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_PauseMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.PauseMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#PauseMigrationRequest. + } + op, err := c.PauseMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_PauseMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go new file mode 100644 index 00000000000..9452505aeee --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_RemoveGroupMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.RemoveGroupMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#RemoveGroupMigrationRequest. + } + op, err := c.RemoveGroupMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_RemoveGroupMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go new file mode 100644 index 00000000000..e73125f4071 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_ResumeMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ResumeMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ResumeMigrationRequest. + } + op, err := c.ResumeMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_ResumeMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go new file mode 100644 index 00000000000..f20bc5a4ba7 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_StartMigration_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.StartMigrationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#StartMigrationRequest. + } + op, err := c.StartMigration(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_StartMigration_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go new file mode 100644 index 00000000000..79258c96574 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_UpdateGroup_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.UpdateGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateGroupRequest. + } + op, err := c.UpdateGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_UpdateGroup_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go new file mode 100644 index 00000000000..cf14000761f --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_UpdateMigratingVm_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.UpdateMigratingVmRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateMigratingVmRequest. + } + op, err := c.UpdateMigratingVm(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_UpdateMigratingVm_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go new file mode 100644 index 00000000000..73b3662e9fc --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_UpdateSource_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.UpdateSourceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateSourceRequest. + } + op, err := c.UpdateSource(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_UpdateSource_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go new file mode 100644 index 00000000000..c3834477dae --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go @@ -0,0 +1,53 @@ +// 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 vmmigration_v1_generated_VmMigration_UpdateTargetProject_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" +) + +func main() { + ctx := context.Background() + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.UpdateTargetProjectRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateTargetProjectRequest. + } + op, err := c.UpdateTargetProject(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_UpdateTargetProject_sync] diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index 70ebd31d32c..94e8e0be077 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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/monitoring/go.mod b/monitoring/go.mod index 05c661b7d03..70ca893c08d 100644 --- a/monitoring/go.mod +++ b/monitoring/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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/monitoring/go.sum b/monitoring/go.sum index fe5138ddd30..f55237e55f0 100644 --- a/monitoring/go.sum +++ b/monitoring/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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/monitoring/metricsscope/apiv1/doc.go b/monitoring/metricsscope/apiv1/doc.go index 64fa626da97..fd89c507709 100644 --- a/monitoring/metricsscope/apiv1/doc.go +++ b/monitoring/metricsscope/apiv1/doc.go @@ -24,8 +24,6 @@ // concepts found in the table entries, read the Cloud Monitoring // documentation (at https://cloud.google.com/monitoring/docs). // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Example usage // // To get started with this package, create a client. @@ -91,7 +89,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211113" +const versionClient = "20211116" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcemanager/apiv3/doc.go b/resourcemanager/apiv3/doc.go index e5d5598ea80..4a0f45f50f9 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 = "20211113" +const versionClient = "20211116" 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 c27c707580a..5479166bf85 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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 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 fe5138ddd30..f55237e55f0 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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/security/go.mod b/security/go.mod index 8751241c333..f49d95e6876 100644 --- a/security/go.mod +++ b/security/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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/security/go.sum b/security/go.sum index fe5138ddd30..f55237e55f0 100644 --- a/security/go.sum +++ b/security/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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/security/privateca/apiv1/doc.go b/security/privateca/apiv1/doc.go index 330bb321ec7..a896050b713 100644 --- a/security/privateca/apiv1/doc.go +++ b/security/privateca/apiv1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211113" +const versionClient = "20211116" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index 8157825a7f8..7f49f375e33 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 = "20211113" +const versionClient = "20211116" 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 45c06adf224..cb57871d67f 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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.40.0 ) diff --git a/texttospeech/go.sum b/texttospeech/go.sum index fe5138ddd30..f55237e55f0 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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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/vmmigration/apiv1/doc.go b/vmmigration/apiv1/doc.go index 4629b80f120..39539f57dc6 100644 --- a/vmmigration/apiv1/doc.go +++ b/vmmigration/apiv1/doc.go @@ -93,7 +93,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20211115" +const versionClient = "20211116" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vmmigration/apiv1/vm_migration_client.go b/vmmigration/apiv1/vm_migration_client.go index 8b3b546a701..073d2fc5da4 100644 --- a/vmmigration/apiv1/vm_migration_client.go +++ b/vmmigration/apiv1/vm_migration_client.go @@ -93,7 +93,6 @@ func defaultGRPCClientOptions() []option.ClientOption { internaloption.WithDefaultAudience("https://vmmigration.googleapis.com/"), internaloption.WithDefaultScopes(DefaultAuthScopes()...), internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDisableServiceConfig()), option.WithGRPCDialOption(grpc.WithDefaultCallOptions( grpc.MaxCallRecvMsgSize(math.MaxInt32))), } diff --git a/vmmigration/go.mod b/vmmigration/go.mod index 84a952aa4b6..8c999771a69 100644 --- a/vmmigration/go.mod +++ b/vmmigration/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-20211115160612-a5da7257a6f7 + google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 google.golang.org/grpc v1.42.0 google.golang.org/protobuf v1.27.1 ) diff --git a/vmmigration/go.sum b/vmmigration/go.sum index 93db0a9bd2e..7cfdff4aae5 100644 --- a/vmmigration/go.sum +++ b/vmmigration/go.sum @@ -509,8 +509,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-20211115160612-a5da7257a6f7 h1:0LoCYJF53PEqtJOntKxGD72X/c8Xto5EZ4HLrt9D80I= -google.golang.org/genproto v0.0.0-20211115160612-a5da7257a6f7/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4 h1:nPiLDJ9/wsay2NDshdJ1B24frx+butTxmaVaCxDBChY= +google.golang.org/genproto v0.0.0-20211116182654-e63d96a377c4/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=