From 458f15bb6f1193ce83dbfc7a82c3f2a672f52c06 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Jul 2021 07:10:09 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#4423) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/636 Changes: feat(bigquery/connection): add cloud spanner connection support PiperOrigin-RevId: 384325792 Source-Link: https://github.com/googleapis/googleapis/commit/eba54922f4dd1a7e25ee44e0769a3af2ae2d2c0d --- aiplatform/apiv1/doc.go | 4 +- apigeeconnect/apiv1/doc.go | 4 +- bigquery/connection/apiv1/doc.go | 2 +- bigquery/go.mod | 2 +- bigquery/go.sum | 4 +- go.mod | 2 +- go.sum | 4 +- gsuiteaddons/apiv1/doc.go | 4 +- internal/generated/snippets/go.mod | 2 +- internal/generated/snippets/go.sum | 3 +- .../CreateConnectivityTest/main.go | 52 ++++++++++++++++++ .../DeleteConnectivityTest/main.go | 50 +++++++++++++++++ .../GetConnectivityTest/main.go | 47 ++++++++++++++++ .../ListConnectivityTests/main.go | 54 +++++++++++++++++++ .../RerunConnectivityTest/main.go | 52 ++++++++++++++++++ .../UpdateConnectivityTest/main.go | 52 ++++++++++++++++++ .../transcoder/apiv1/Client/CreateJob/main.go | 47 ++++++++++++++++ .../apiv1/Client/CreateJobTemplate/main.go | 47 ++++++++++++++++ .../transcoder/apiv1/Client/DeleteJob/main.go | 45 ++++++++++++++++ .../apiv1/Client/DeleteJobTemplate/main.go | 45 ++++++++++++++++ .../transcoder/apiv1/Client/GetJob/main.go | 47 ++++++++++++++++ .../apiv1/Client/GetJobTemplate/main.go | 47 ++++++++++++++++ .../apiv1/Client/ListJobTemplates/main.go | 54 +++++++++++++++++++ .../transcoder/apiv1/Client/ListJobs/main.go | 54 +++++++++++++++++++ shell/apiv1/doc.go | 4 +- tpu/apiv1/doc.go | 4 +- vpcaccess/apiv1/doc.go | 4 +- 27 files changed, 709 insertions(+), 27 deletions(-) create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go create mode 100644 internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go create mode 100644 internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index 98dabb33831..f9433f85800 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -20,8 +20,6 @@ // Train high-quality custom machine learning models with minimal machine // learning expertise and effort. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -51,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/apigeeconnect/apiv1/doc.go b/apigeeconnect/apiv1/doc.go index 508c9d401e3..1380ab545af 100644 --- a/apigeeconnect/apiv1/doc.go +++ b/apigeeconnect/apiv1/doc.go @@ -17,8 +17,6 @@ // Package apigeeconnect is an auto-generated package for the // Apigee Connect API. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -48,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/connection/apiv1/doc.go b/bigquery/connection/apiv1/doc.go index 0ff620f3520..605584d05a0 100644 --- a/bigquery/connection/apiv1/doc.go +++ b/bigquery/connection/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/go.mod b/bigquery/go.mod index 5f55d3f3b0a..74046bf76c6 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -11,7 +11,7 @@ require ( golang.org/x/sync v0.0.0-20210220032951-036812b2e83c golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 + google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a google.golang.org/grpc v1.39.0 google.golang.org/protobuf v1.27.1 ) diff --git a/bigquery/go.sum b/bigquery/go.sum index 8eeb6fa9a27..755b2b91bbc 100644 --- a/bigquery/go.sum +++ b/bigquery/go.sum @@ -467,8 +467,8 @@ google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= -google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= -google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a h1:89EorDSnBRFywcvGsJvpxw2IsiDMI+DeM7iZOaunfHs= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= 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 897d5ccf8cd..163f580c4f1 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( golang.org/x/text v0.3.6 golang.org/x/tools v0.1.4 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46 + google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a google.golang.org/grpc v1.39.0 google.golang.org/protobuf v1.27.1 ) diff --git a/go.sum b/go.sum index 2d4b91e9ebc..b90b6d6c333 100644 --- a/go.sum +++ b/go.sum @@ -466,8 +466,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46 h1:C+heNsV69Z0EjfRnhU7mg6EX5zz5l7x7hhTil+Ayj8g= -google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a h1:89EorDSnBRFywcvGsJvpxw2IsiDMI+DeM7iZOaunfHs= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= 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/gsuiteaddons/apiv1/doc.go b/gsuiteaddons/apiv1/doc.go index 9f8b57761d4..c8749e68785 100644 --- a/gsuiteaddons/apiv1/doc.go +++ b/gsuiteaddons/apiv1/doc.go @@ -17,8 +17,6 @@ // Package gsuiteaddons is an auto-generated package for the // Google Workspace Add-ons API. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -48,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 5f3bfff3f3f..357064330c6 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -32,5 +32,5 @@ require ( cloud.google.com/go/pubsublite v0.86.0 cloud.google.com/go/spanner v0.86.0 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba + google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46 ) diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 55850233be6..e0b6031ee58 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -147,8 +147,9 @@ google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= -google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba h1:7ajVqfUjhvVuXCb+sdXdKsOD53caRpfMofvihWF1314= google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46 h1:C+heNsV69Z0EjfRnhU7mg6EX5zz5l7x7hhTil+Ayj8g= +google.golang.org/genproto v0.0.0-20210712171009-5404628d0f46/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go new file mode 100644 index 00000000000..be1018d2f51 --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go @@ -0,0 +1,52 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.CreateConnectivityTestRequest{ + // TODO: Fill request struct fields. + } + op, err := c.CreateConnectivityTest(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync] diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go new file mode 100644 index 00000000000..5702c5100f7 --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go @@ -0,0 +1,50 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.DeleteConnectivityTestRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteConnectivityTest(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync] diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go new file mode 100644 index 00000000000..b78ec249fd8 --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go @@ -0,0 +1,47 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.GetConnectivityTestRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetConnectivityTest(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync] diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go new file mode 100644 index 00000000000..52e1aeb663a --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go @@ -0,0 +1,54 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + "google.golang.org/api/iterator" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.ListConnectivityTestsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListConnectivityTests(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync] diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go new file mode 100644 index 00000000000..1bbc26616de --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go @@ -0,0 +1,52 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.RerunConnectivityTestRequest{ + // TODO: Fill request struct fields. + } + op, err := c.RerunConnectivityTest(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync] diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go new file mode 100644 index 00000000000..dc818b8ac92 --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go @@ -0,0 +1,52 @@ +// 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 networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_sync] + +package main + +import ( + "context" + + networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" +) + +func main() { + ctx := context.Background() + c, err := networkmanagement.NewReachabilityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkmanagementpb.UpdateConnectivityTestRequest{ + // TODO: Fill request struct fields. + } + op, err := c.UpdateConnectivityTest(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go new file mode 100644 index 00000000000..a5d0dd562b2 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go @@ -0,0 +1,47 @@ +// 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 transcoder_v1_generated_TranscoderService_CreateJob_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.CreateJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END transcoder_v1_generated_TranscoderService_CreateJob_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go new file mode 100644 index 00000000000..67c52247c52 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go @@ -0,0 +1,47 @@ +// 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 transcoder_v1_generated_TranscoderService_CreateJobTemplate_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.CreateJobTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateJobTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END transcoder_v1_generated_TranscoderService_CreateJobTemplate_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go new file mode 100644 index 00000000000..8b58457bde0 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go @@ -0,0 +1,45 @@ +// 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 transcoder_v1_generated_TranscoderService_DeleteJob_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.DeleteJobRequest{ + // TODO: Fill request struct fields. + } + err = c.DeleteJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END transcoder_v1_generated_TranscoderService_DeleteJob_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go new file mode 100644 index 00000000000..afe11d479d8 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go @@ -0,0 +1,45 @@ +// 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 transcoder_v1_generated_TranscoderService_DeleteJobTemplate_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.DeleteJobTemplateRequest{ + // TODO: Fill request struct fields. + } + err = c.DeleteJobTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END transcoder_v1_generated_TranscoderService_DeleteJobTemplate_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go new file mode 100644 index 00000000000..a2c2b97d8bc --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go @@ -0,0 +1,47 @@ +// 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 transcoder_v1_generated_TranscoderService_GetJob_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.GetJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END transcoder_v1_generated_TranscoderService_GetJob_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go new file mode 100644 index 00000000000..bbc1166e39e --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go @@ -0,0 +1,47 @@ +// 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 transcoder_v1_generated_TranscoderService_GetJobTemplate_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.GetJobTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetJobTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END transcoder_v1_generated_TranscoderService_GetJobTemplate_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go new file mode 100644 index 00000000000..76454c49ca1 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go @@ -0,0 +1,54 @@ +// 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 transcoder_v1_generated_TranscoderService_ListJobTemplates_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + "google.golang.org/api/iterator" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.ListJobTemplatesRequest{ + // TODO: Fill request struct fields. + } + it := c.ListJobTemplates(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END transcoder_v1_generated_TranscoderService_ListJobTemplates_sync] diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go new file mode 100644 index 00000000000..afff58101a3 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go @@ -0,0 +1,54 @@ +// 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 transcoder_v1_generated_TranscoderService_ListJobs_sync] + +package main + +import ( + "context" + + transcoder "cloud.google.com/go/video/transcoder/apiv1" + "google.golang.org/api/iterator" + transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" +) + +func main() { + ctx := context.Background() + c, err := transcoder.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &transcoderpb.ListJobsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END transcoder_v1_generated_TranscoderService_ListJobs_sync] diff --git a/shell/apiv1/doc.go b/shell/apiv1/doc.go index 9e73134ec14..2e6c36371b6 100644 --- a/shell/apiv1/doc.go +++ b/shell/apiv1/doc.go @@ -20,8 +20,6 @@ // Allows users to start, configure, and connect to interactive shell // sessions running in the cloud. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -51,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/tpu/apiv1/doc.go b/tpu/apiv1/doc.go index f0a3c92b58c..569c4a9ff6c 100644 --- a/tpu/apiv1/doc.go +++ b/tpu/apiv1/doc.go @@ -19,8 +19,6 @@ // // TPU API provides customers with access to Google TPU technology. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -50,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210702" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index ffd86a97d53..c74abb8e596 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -19,8 +19,6 @@ // // API for managing VPC access connectors. // -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// // Use of Context // // The ctx passed to NewClient is used for authentication requests and @@ -50,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210708" +const versionClient = "20210713" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx)