diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateSnapshotSchedulePolicy/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateSnapshotSchedulePolicy/main.go deleted file mode 100644 index b294dd8d7390..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateSnapshotSchedulePolicy/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_CreateSnapshotSchedulePolicy_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.CreateSnapshotSchedulePolicyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#CreateSnapshotSchedulePolicyRequest. - } - resp, err := c.CreateSnapshotSchedulePolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_CreateSnapshotSchedulePolicy_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateVolumeSnapshot/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateVolumeSnapshot/main.go deleted file mode 100644 index f7eb75a65491..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/CreateVolumeSnapshot/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_CreateVolumeSnapshot_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.CreateVolumeSnapshotRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#CreateVolumeSnapshotRequest. - } - resp, err := c.CreateVolumeSnapshot(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_CreateVolumeSnapshot_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteSnapshotSchedulePolicy/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteSnapshotSchedulePolicy/main.go deleted file mode 100644 index 04b2dec84960..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteSnapshotSchedulePolicy/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_DeleteSnapshotSchedulePolicy_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.DeleteSnapshotSchedulePolicyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#DeleteSnapshotSchedulePolicyRequest. - } - err = c.DeleteSnapshotSchedulePolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_DeleteSnapshotSchedulePolicy_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteVolumeSnapshot/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteVolumeSnapshot/main.go deleted file mode 100644 index 12dc97b1c5c7..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/DeleteVolumeSnapshot/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_DeleteVolumeSnapshot_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.DeleteVolumeSnapshotRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#DeleteVolumeSnapshotRequest. - } - err = c.DeleteVolumeSnapshot(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_DeleteVolumeSnapshot_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetSnapshotSchedulePolicy/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetSnapshotSchedulePolicy/main.go deleted file mode 100644 index 89cf4c77584c..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetSnapshotSchedulePolicy/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_GetSnapshotSchedulePolicy_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.GetSnapshotSchedulePolicyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#GetSnapshotSchedulePolicyRequest. - } - resp, err := c.GetSnapshotSchedulePolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_GetSnapshotSchedulePolicy_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolumeSnapshot/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolumeSnapshot/main.go deleted file mode 100644 index fb1c8d85afa2..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolumeSnapshot/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_GetVolumeSnapshot_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.GetVolumeSnapshotRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#GetVolumeSnapshotRequest. - } - resp, err := c.GetVolumeSnapshot(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_GetVolumeSnapshot_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListSnapshotSchedulePolicies/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListSnapshotSchedulePolicies/main.go deleted file mode 100644 index 65d50ea526bc..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListSnapshotSchedulePolicies/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_ListSnapshotSchedulePolicies_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - "google.golang.org/api/iterator" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.ListSnapshotSchedulePoliciesRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#ListSnapshotSchedulePoliciesRequest. - } - it := c.ListSnapshotSchedulePolicies(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_ListSnapshotSchedulePolicies_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumeSnapshots/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumeSnapshots/main.go deleted file mode 100644 index 44ec2887cc30..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumeSnapshots/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_ListVolumeSnapshots_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - "google.golang.org/api/iterator" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.ListVolumeSnapshotsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#ListVolumeSnapshotsRequest. - } - it := c.ListVolumeSnapshots(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_ListVolumeSnapshots_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/RestoreVolumeSnapshot/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/RestoreVolumeSnapshot/main.go deleted file mode 100644 index 3cda08b66fd3..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/RestoreVolumeSnapshot/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_RestoreVolumeSnapshot_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.RestoreVolumeSnapshotRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#RestoreVolumeSnapshotRequest. - } - op, err := c.RestoreVolumeSnapshot(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_RestoreVolumeSnapshot_sync] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateSnapshotSchedulePolicy/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateSnapshotSchedulePolicy/main.go deleted file mode 100644 index 5bc0b29cdc68..000000000000 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateSnapshotSchedulePolicy/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 baremetalsolution_v2_generated_BareMetalSolution_UpdateSnapshotSchedulePolicy_sync] - -package main - -import ( - "context" - - baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2" - baremetalsolutionpb "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2" -) - -func main() { - ctx := context.Background() - c, err := baremetalsolution.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &baremetalsolutionpb.UpdateSnapshotSchedulePolicyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2#UpdateSnapshotSchedulePolicyRequest. - } - resp, err := c.UpdateSnapshotSchedulePolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END baremetalsolution_v2_generated_BareMetalSolution_UpdateSnapshotSchedulePolicy_sync] diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go deleted file mode 100644 index 98a7cd8d888c..000000000000 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. - -// [START contactcenterinsights_v1_generated_ContactCenterInsights_CancelOperation_sync] - -package main - -import ( - "context" - - contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" -) - -func main() { - ctx := context.Background() - c, err := contactcenterinsights.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &longrunningpb.CancelOperationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. - } - err = c.CancelOperation(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END contactcenterinsights_v1_generated_ContactCenterInsights_CancelOperation_sync] diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go deleted file mode 100644 index a57755e3c7c5..000000000000 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. - -// [START contactcenterinsights_v1_generated_ContactCenterInsights_GetOperation_sync] - -package main - -import ( - "context" - - contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" -) - -func main() { - ctx := context.Background() - c, err := contactcenterinsights.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &longrunningpb.GetOperationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. - } - resp, err := c.GetOperation(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetOperation_sync] diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go deleted file mode 100644 index a40900f064e9..000000000000 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. - -// [START contactcenterinsights_v1_generated_ContactCenterInsights_ListOperations_sync] - -package main - -import ( - "context" - - contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1" - "google.golang.org/api/iterator" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" -) - -func main() { - ctx := context.Background() - c, err := contactcenterinsights.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &longrunningpb.ListOperationsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. - } - it := c.ListOperations(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListOperations_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index b7408aedf24d..601be21c5525 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -4,120 +4,120 @@ go 1.17 require ( cloud.google.com/go v0.103.0 - cloud.google.com/go/accessapproval v1.0.1 - cloud.google.com/go/accesscontextmanager v0.1.1 - cloud.google.com/go/aiplatform v1.2.0 - cloud.google.com/go/analytics v0.3.0 - cloud.google.com/go/apigateway v1.0.0 - cloud.google.com/go/apigeeconnect v1.0.0 - cloud.google.com/go/appengine v1.0.0 - cloud.google.com/go/area120 v0.1.0 - cloud.google.com/go/artifactregistry v1.0.1 - cloud.google.com/go/asset v1.0.1 - cloud.google.com/go/assuredworkloads v0.3.0 - cloud.google.com/go/automl v1.0.0 - cloud.google.com/go/baremetalsolution v0.0.0-00010101000000-000000000000 - cloud.google.com/go/batch v0.0.0-00010101000000-000000000000 - cloud.google.com/go/beyondcorp v0.0.0-00010101000000-000000000000 - cloud.google.com/go/bigquery v1.26.0 - cloud.google.com/go/billing v1.0.0 - cloud.google.com/go/binaryauthorization v0.2.0 - cloud.google.com/go/certificatemanager v0.0.0-00010101000000-000000000000 - cloud.google.com/go/channel v1.1.0 - cloud.google.com/go/cloudbuild v1.0.0 - cloud.google.com/go/clouddms v1.0.0 - cloud.google.com/go/cloudtasks v1.1.0 - cloud.google.com/go/compute v1.7.0 - cloud.google.com/go/contactcenterinsights v0.4.0 - cloud.google.com/go/container v1.0.0 - cloud.google.com/go/containeranalysis v0.1.0 - cloud.google.com/go/datacatalog v1.3.0 - cloud.google.com/go/dataflow v0.1.0 - cloud.google.com/go/dataform v0.0.0-00010101000000-000000000000 - cloud.google.com/go/datafusion v1.0.0 - cloud.google.com/go/datalabeling v0.1.0 - cloud.google.com/go/dataplex v0.0.0-00010101000000-000000000000 - cloud.google.com/go/dataproc v1.2.0 - cloud.google.com/go/dataqna v0.1.0 - cloud.google.com/go/datastore v1.6.0 - cloud.google.com/go/datastream v0.1.1 - cloud.google.com/go/deploy v0.1.0 - cloud.google.com/go/dialogflow v1.3.0 - cloud.google.com/go/dlp v1.1.0 - cloud.google.com/go/documentai v1.0.0 - cloud.google.com/go/domains v0.2.0 - cloud.google.com/go/errorreporting v0.1.0 - cloud.google.com/go/essentialcontacts v1.0.0 - cloud.google.com/go/eventarc v1.0.0 - cloud.google.com/go/filestore v0.1.0 + cloud.google.com/go/accessapproval v1.3.0 + cloud.google.com/go/accesscontextmanager v1.2.0 + cloud.google.com/go/aiplatform v1.17.0 + cloud.google.com/go/analytics v0.9.0 + cloud.google.com/go/apigateway v1.2.0 + cloud.google.com/go/apigeeconnect v1.2.0 + cloud.google.com/go/appengine v1.3.0 + cloud.google.com/go/area120 v0.4.0 + cloud.google.com/go/artifactregistry v1.4.0 + cloud.google.com/go/asset v1.4.0 + cloud.google.com/go/assuredworkloads v1.2.0 + cloud.google.com/go/automl v1.4.0 + cloud.google.com/go/baremetalsolution v0.2.0 + cloud.google.com/go/batch v0.1.0 + cloud.google.com/go/beyondcorp v0.1.0 + cloud.google.com/go/bigquery v1.38.0 + cloud.google.com/go/billing v1.2.0 + cloud.google.com/go/binaryauthorization v1.0.0 + cloud.google.com/go/certificatemanager v0.2.1 + cloud.google.com/go/channel v1.7.0 + cloud.google.com/go/cloudbuild v1.2.0 + cloud.google.com/go/clouddms v1.2.0 + cloud.google.com/go/cloudtasks v1.4.0 + cloud.google.com/go/compute v1.9.0 + cloud.google.com/go/contactcenterinsights v1.2.2 + cloud.google.com/go/container v1.3.1 + cloud.google.com/go/containeranalysis v0.4.0 + cloud.google.com/go/datacatalog v1.3.1 + cloud.google.com/go/dataflow v0.5.1 + cloud.google.com/go/dataform v0.2.0 + cloud.google.com/go/datafusion v1.3.0 + cloud.google.com/go/datalabeling v0.3.0 + cloud.google.com/go/dataplex v1.1.0 + cloud.google.com/go/dataproc v1.5.0 + cloud.google.com/go/dataqna v0.4.0 + cloud.google.com/go/datastore v1.8.0 + cloud.google.com/go/datastream v1.0.0 + cloud.google.com/go/deploy v1.2.1 + cloud.google.com/go/dialogflow v1.12.1 + cloud.google.com/go/dlp v1.4.0 + cloud.google.com/go/documentai v1.5.0 + cloud.google.com/go/domains v0.5.0 + cloud.google.com/go/errorreporting v0.2.0 + cloud.google.com/go/essentialcontacts v1.2.0 + cloud.google.com/go/eventarc v1.6.0 + cloud.google.com/go/filestore v1.2.0 cloud.google.com/go/firestore v1.6.1 - cloud.google.com/go/functions v1.1.0 - cloud.google.com/go/gaming v1.0.0 - cloud.google.com/go/gkebackup v0.0.0-00010101000000-000000000000 - cloud.google.com/go/gkeconnect v0.1.0 - cloud.google.com/go/gkehub v0.2.0 - cloud.google.com/go/gkemulticloud v0.0.0-00010101000000-000000000000 - cloud.google.com/go/gsuiteaddons v1.0.0 + cloud.google.com/go/functions v1.5.0 + cloud.google.com/go/gaming v1.3.1 + cloud.google.com/go/gkebackup v0.1.0 + cloud.google.com/go/gkeconnect v0.3.0 + cloud.google.com/go/gkehub v0.8.0 + cloud.google.com/go/gkemulticloud v0.2.0 + cloud.google.com/go/gsuiteaddons v1.2.0 cloud.google.com/go/iam v0.3.0 - cloud.google.com/go/iap v1.0.0 - cloud.google.com/go/ids v0.1.0 - cloud.google.com/go/iot v1.0.0 + cloud.google.com/go/iap v1.3.0 + cloud.google.com/go/ids v1.0.0 + cloud.google.com/go/iot v1.2.0 cloud.google.com/go/kms v1.4.0 - cloud.google.com/go/language v1.0.0 - cloud.google.com/go/lifesciences v0.1.0 - cloud.google.com/go/logging v1.4.2 - cloud.google.com/go/managedidentities v1.0.0 - cloud.google.com/go/mediatranslation v0.1.0 - cloud.google.com/go/memcache v1.0.0 - cloud.google.com/go/metastore v1.0.0 - cloud.google.com/go/monitoring v1.2.0 - cloud.google.com/go/networkconnectivity v0.2.0 - cloud.google.com/go/networkmanagement v1.0.0 - cloud.google.com/go/networksecurity v0.1.0 - cloud.google.com/go/notebooks v0.1.0 - cloud.google.com/go/optimization v0.0.0-00010101000000-000000000000 - cloud.google.com/go/orchestration v0.1.0 - cloud.google.com/go/orgpolicy v1.0.0 - cloud.google.com/go/osconfig v1.2.0 - cloud.google.com/go/oslogin v1.0.0 - cloud.google.com/go/phishingprotection v0.1.0 - cloud.google.com/go/policytroubleshooter v1.0.0 - cloud.google.com/go/privatecatalog v0.1.0 - cloud.google.com/go/pubsub v1.23.0 - cloud.google.com/go/pubsublite v1.2.1 - cloud.google.com/go/recaptchaenterprise v1.1.0 - cloud.google.com/go/recommendationengine v0.1.0 - cloud.google.com/go/recommender v1.0.0 - cloud.google.com/go/redis v1.1.0 - cloud.google.com/go/resourcemanager v1.0.0 - cloud.google.com/go/resourcesettings v1.0.0 - cloud.google.com/go/retail v1.0.0 - cloud.google.com/go/run v0.0.0-00010101000000-000000000000 - cloud.google.com/go/scheduler v1.0.0 - cloud.google.com/go/secretmanager v1.0.0 - cloud.google.com/go/security v1.1.1 - cloud.google.com/go/securitycenter v1.2.0 - cloud.google.com/go/servicecontrol v1.1.0 - cloud.google.com/go/servicedirectory v1.0.0 - cloud.google.com/go/servicemanagement v1.0.0 - cloud.google.com/go/serviceusage v1.0.0 - cloud.google.com/go/shell v1.0.0 - cloud.google.com/go/spanner v1.29.0 - cloud.google.com/go/speech v1.1.0 - cloud.google.com/go/storagetransfer v1.0.0 - cloud.google.com/go/talent v0.3.0 - cloud.google.com/go/texttospeech v1.1.0 - cloud.google.com/go/tpu v1.0.0 - cloud.google.com/go/trace v1.0.0 - cloud.google.com/go/translate v1.0.0 - cloud.google.com/go/video v1.0.1 - cloud.google.com/go/videointelligence v1.0.0 - cloud.google.com/go/vision v1.0.0 - cloud.google.com/go/vmmigration v0.1.0 - cloud.google.com/go/vpcaccess v1.0.0 - cloud.google.com/go/webrisk v1.0.0 - cloud.google.com/go/websecurityscanner v1.0.0 - cloud.google.com/go/workflows v1.1.0 + cloud.google.com/go/language v1.3.0 + cloud.google.com/go/lifesciences v0.4.0 + cloud.google.com/go/logging v1.5.0 + cloud.google.com/go/managedidentities v1.2.0 + cloud.google.com/go/mediatranslation v0.3.0 + cloud.google.com/go/memcache v1.3.0 + cloud.google.com/go/metastore v1.3.0 + cloud.google.com/go/monitoring v1.6.0 + cloud.google.com/go/networkconnectivity v1.2.0 + cloud.google.com/go/networkmanagement v1.3.0 + cloud.google.com/go/networksecurity v0.3.1 + cloud.google.com/go/notebooks v1.0.0 + cloud.google.com/go/optimization v1.0.0 + cloud.google.com/go/orchestration v1.2.0 + cloud.google.com/go/orgpolicy v1.3.0 + cloud.google.com/go/osconfig v1.6.0 + cloud.google.com/go/oslogin v1.3.0 + cloud.google.com/go/phishingprotection v0.4.0 + cloud.google.com/go/policytroubleshooter v1.2.0 + cloud.google.com/go/privatecatalog v0.4.0 + cloud.google.com/go/pubsub v1.24.0 + cloud.google.com/go/pubsublite v1.3.2 + cloud.google.com/go/recaptchaenterprise v1.3.1 + cloud.google.com/go/recommendationengine v0.3.0 + cloud.google.com/go/recommender v1.4.0 + cloud.google.com/go/redis v1.6.0 + cloud.google.com/go/resourcemanager v1.2.0 + cloud.google.com/go/resourcesettings v1.2.0 + cloud.google.com/go/retail v1.5.0 + cloud.google.com/go/run v0.1.1 + cloud.google.com/go/scheduler v1.3.0 + cloud.google.com/go/secretmanager v1.5.0 + cloud.google.com/go/security v1.4.1 + cloud.google.com/go/securitycenter v1.10.0 + cloud.google.com/go/servicecontrol v1.3.0 + cloud.google.com/go/servicedirectory v1.3.0 + cloud.google.com/go/servicemanagement v1.3.1 + cloud.google.com/go/serviceusage v1.2.0 + cloud.google.com/go/shell v1.2.0 + cloud.google.com/go/spanner v1.36.0 + cloud.google.com/go/speech v1.5.0 + cloud.google.com/go/storagetransfer v1.3.0 + cloud.google.com/go/talent v1.0.0 + cloud.google.com/go/texttospeech v1.3.0 + cloud.google.com/go/tpu v1.2.0 + cloud.google.com/go/trace v1.2.0 + cloud.google.com/go/translate v1.2.0 + cloud.google.com/go/video v1.7.0 + cloud.google.com/go/videointelligence v1.4.0 + cloud.google.com/go/vision v1.2.0 + cloud.google.com/go/vmmigration v1.1.0 + cloud.google.com/go/vpcaccess v1.2.0 + cloud.google.com/go/webrisk v1.3.0 + cloud.google.com/go/websecurityscanner v1.2.0 + cloud.google.com/go/workflows v1.5.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect google.golang.org/api v0.93.0 google.golang.org/genproto v0.0.0-20220819153447-c7cd466b0e09 @@ -134,9 +134,9 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect github.com/googleapis/gax-go/v2 v2.5.1 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect - golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect + golang.org/x/net v0.0.0-20220812174116-3211cb980234 // indirect + golang.org/x/oauth2 v0.0.0-20220808172628-8227340efae7 // indirect + golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/grpc v1.48.0 // indirect diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 3a1c2d78996e..71bc1333675a 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -118,8 +118,9 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220812174116-3211cb980234 h1:RDqmgfe7SvlMWoqC3xwQ2blLO3fcWcxMa3eBLRdRW7E= +golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= @@ -128,8 +129,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220808172628-8227340efae7 h1:dtndE8FcEta75/4kHF3AbpuWzV6f1LjnLrM4pe2SZrw= +golang.org/x/oauth2 v0.0.0-20220808172628-8227340efae7/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -158,8 +160,10 @@ golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 h1:Sx/u41w+OwrInGdEckYmEuU5gHoGSL4QbDz3S9s6j4U= +golang.org/x/sys v0.0.0-20220818161305-2296e01440c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DisableService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DisableService/main.go deleted file mode 100644 index 2d03486c603b..000000000000 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DisableService/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022 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 servicemanagement_v1_generated_ServiceManager_DisableService_sync] - -package main - -import ( - "context" - - servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" -) - -func main() { - ctx := context.Background() - c, err := servicemanagement.NewServiceManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &servicemanagementpb.DisableServiceRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#DisableServiceRequest. - } - op, err := c.DisableService(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END servicemanagement_v1_generated_ServiceManager_DisableService_sync] diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/EnableService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/EnableService/main.go deleted file mode 100644 index 08baac3f91bc..000000000000 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/EnableService/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022 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 servicemanagement_v1_generated_ServiceManager_EnableService_sync] - -package main - -import ( - "context" - - servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" -) - -func main() { - ctx := context.Background() - c, err := servicemanagement.NewServiceManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &servicemanagementpb.EnableServiceRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#EnableServiceRequest. - } - op, err := c.EnableService(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END servicemanagement_v1_generated_ServiceManager_EnableService_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/CreateApplication/main.go b/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/CreateApplication/main.go deleted file mode 100644 index 15143f60ee70..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/CreateApplication/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ApplicationService_CreateApplication_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewApplicationClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.CreateApplicationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateApplicationRequest. - } - resp, err := c.CreateApplication(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ApplicationService_CreateApplication_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/DeleteApplication/main.go b/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/DeleteApplication/main.go deleted file mode 100644 index 2cdad8f18b35..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/DeleteApplication/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ApplicationService_DeleteApplication_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewApplicationClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.DeleteApplicationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#DeleteApplicationRequest. - } - err = c.DeleteApplication(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END jobs_v4beta1_generated_ApplicationService_DeleteApplication_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/GetApplication/main.go b/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/GetApplication/main.go deleted file mode 100644 index 61e33653a981..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/GetApplication/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ApplicationService_GetApplication_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewApplicationClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.GetApplicationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#GetApplicationRequest. - } - resp, err := c.GetApplication(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ApplicationService_GetApplication_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/ListApplications/main.go b/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/ListApplications/main.go deleted file mode 100644 index d0911b3711a8..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/ListApplications/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ApplicationService_ListApplications_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewApplicationClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.ListApplicationsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#ListApplicationsRequest. - } - it := c.ListApplications(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END jobs_v4beta1_generated_ApplicationService_ListApplications_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/UpdateApplication/main.go b/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/UpdateApplication/main.go deleted file mode 100644 index 638a46583eba..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ApplicationClient/UpdateApplication/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ApplicationService_UpdateApplication_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewApplicationClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.UpdateApplicationRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#UpdateApplicationRequest. - } - resp, err := c.UpdateApplication(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ApplicationService_UpdateApplication_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/CreateProfile/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/CreateProfile/main.go deleted file mode 100644 index 36fbb7c8be4a..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/CreateProfile/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_CreateProfile_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.CreateProfileRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateProfileRequest. - } - resp, err := c.CreateProfile(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ProfileService_CreateProfile_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/DeleteProfile/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/DeleteProfile/main.go deleted file mode 100644 index f36d3f49e68e..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/DeleteProfile/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_DeleteProfile_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.DeleteProfileRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#DeleteProfileRequest. - } - err = c.DeleteProfile(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END jobs_v4beta1_generated_ProfileService_DeleteProfile_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/GetProfile/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/GetProfile/main.go deleted file mode 100644 index a83b202c0ccb..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/GetProfile/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_GetProfile_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.GetProfileRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#GetProfileRequest. - } - resp, err := c.GetProfile(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ProfileService_GetProfile_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/ListProfiles/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/ListProfiles/main.go deleted file mode 100644 index d71b3a867394..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/ListProfiles/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_ListProfiles_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.ListProfilesRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#ListProfilesRequest. - } - it := c.ListProfiles(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END jobs_v4beta1_generated_ProfileService_ListProfiles_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/SearchProfiles/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/SearchProfiles/main.go deleted file mode 100644 index e681a5b9d18f..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/SearchProfiles/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_SearchProfiles_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.SearchProfilesRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchProfilesRequest. - } - resp, err := c.SearchProfiles(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ProfileService_SearchProfiles_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/UpdateProfile/main.go b/internal/generated/snippets/talent/apiv4beta1/ProfileClient/UpdateProfile/main.go deleted file mode 100644 index 6a2149ef83d8..000000000000 --- a/internal/generated/snippets/talent/apiv4beta1/ProfileClient/UpdateProfile/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 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 jobs_v4beta1_generated_ProfileService_UpdateProfile_sync] - -package main - -import ( - "context" - - talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" -) - -func main() { - ctx := context.Background() - c, err := talent.NewProfileClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &talentpb.UpdateProfileRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#UpdateProfileRequest. - } - resp, err := c.UpdateProfile(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END jobs_v4beta1_generated_ProfileService_UpdateProfile_sync]