From e54989ecfcbbbe1baf7581872224ca8610827979 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:32:21 -0600 Subject: [PATCH] chore: remove old samples that no longer compile (#9510) This library has a v2, and those are the only samples we should be interested in generating. Fixes #9493 Fixes #9494 Fixes #9495 Fixes #9496 Fixes #9497 Fixes #9498 Fixes #9499 Fixes #9450 Fixes #9451 Fixes #9452 Fixes #9453 Fixes #9454 --- internal/generated/snippets/go.mod | 1 - internal/generated/snippets/go.sum | 7 --- .../apiv1/Client/AnnotateAssessment/main.go | 48 ---------------- .../apiv1/Client/CreateAssessment/main.go | 48 ---------------- .../apiv1/Client/CreateKey/main.go | 48 ---------------- .../apiv1/Client/DeleteKey/main.go | 46 ---------------- .../apiv1/Client/GetKey/main.go | 48 ---------------- .../apiv1/Client/GetMetrics/main.go | 48 ---------------- .../apiv1/Client/ListKeys/main.go | 55 ------------------- .../main.go | 55 ------------------- .../Client/ListRelatedAccountGroups/main.go | 55 ------------------- .../apiv1/Client/MigrateKey/main.go | 48 ---------------- .../main.go | 55 ------------------- .../apiv1/Client/UpdateKey/main.go | 48 ---------------- .../AnnotateAssessment/main.go | 48 ---------------- .../CreateAssessment/main.go | 48 ---------------- 16 files changed, 706 deletions(-) delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/AnnotateAssessment/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateAssessment/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateKey/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/DeleteKey/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetKey/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetMetrics/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListKeys/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroupMemberships/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroups/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/MigrateKey/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1/Client/UpdateKey/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go delete mode 100644 internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 8fdfac8837bb..f2810e56317e 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -148,7 +148,6 @@ require ( cloud.google.com/go/parallelstore v0.0.0-00010101000000-000000000000 cloud.google.com/go/policysimulator v0.0.0-00010101000000-000000000000 cloud.google.com/go/rapidmigrationassessment v0.0.0-00010101000000-000000000000 - cloud.google.com/go/recaptchaenterprise v1.3.1 cloud.google.com/go/securesourcemanager v0.0.0-00010101000000-000000000000 cloud.google.com/go/securitycentermanagement v0.0.0-00010101000000-000000000000 cloud.google.com/go/securityposture v0.0.0-00010101000000-000000000000 diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 3b424bc04d54..98e743a8f095 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -7,8 +7,6 @@ cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9 cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= cloud.google.com/go/gaming v1.10.1/go.mod h1:XQQvtfP8Rb9Rxnxm5wFVpAp9zCQkJi2bLIb7iHGwB3s= -cloud.google.com/go/recaptchaenterprise v1.3.1 h1:u6EznTGzIdsyOsvm+Xkw0aSuKFXQlyjGE9a4exk6iNQ= -cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= @@ -415,7 +413,6 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -517,7 +514,6 @@ golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -633,7 +629,6 @@ google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6 google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= -google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= @@ -675,9 +670,7 @@ google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2 google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/AnnotateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/AnnotateAssessment/main.go deleted file mode 100644 index 08cf3abfa28c..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/AnnotateAssessment/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.AnnotateAssessmentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#AnnotateAssessmentRequest. - } - resp, err := c.AnnotateAssessment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateAssessment/main.go deleted file mode 100644 index dc199ceb55c3..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateAssessment/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.CreateAssessmentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#CreateAssessmentRequest. - } - resp, err := c.CreateAssessment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateKey/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateKey/main.go deleted file mode 100644 index 250089cc6122..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/CreateKey/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.CreateKeyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#CreateKeyRequest. - } - resp, err := c.CreateKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/DeleteKey/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/DeleteKey/main.go deleted file mode 100644 index 172f9ee20200..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/DeleteKey/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.DeleteKeyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#DeleteKeyRequest. - } - err = c.DeleteKey(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetKey/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetKey/main.go deleted file mode 100644 index 456d7eba72cf..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetKey/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.GetKeyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#GetKeyRequest. - } - resp, err := c.GetKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetMetrics/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetMetrics/main.go deleted file mode 100644 index e1fd266ef473..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/GetMetrics/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.GetMetricsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#GetMetricsRequest. - } - resp, err := c.GetMetrics(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListKeys/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListKeys/main.go deleted file mode 100644 index 3a840725f2f2..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListKeys/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.ListKeysRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#ListKeysRequest. - } - it := c.ListKeys(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroupMemberships/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroupMemberships/main.go deleted file mode 100644 index 4b45dad46ec3..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroupMemberships/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.ListRelatedAccountGroupMembershipsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#ListRelatedAccountGroupMembershipsRequest. - } - it := c.ListRelatedAccountGroupMemberships(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroups/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroups/main.go deleted file mode 100644 index c892c67c26d0..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/ListRelatedAccountGroups/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.ListRelatedAccountGroupsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#ListRelatedAccountGroupsRequest. - } - it := c.ListRelatedAccountGroups(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/MigrateKey/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/MigrateKey/main.go deleted file mode 100644 index 4627acd3c205..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/MigrateKey/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.MigrateKeyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#MigrateKeyRequest. - } - resp, err := c.MigrateKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go deleted file mode 100644 index 98dd9a2320dc..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/SearchRelatedAccountGroupMemberships/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.SearchRelatedAccountGroupMembershipsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#SearchRelatedAccountGroupMembershipsRequest. - } - it := c.SearchRelatedAccountGroupMemberships(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/UpdateKey/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1/Client/UpdateKey/main.go deleted file mode 100644 index 142ce32a1a51..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1/Client/UpdateKey/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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.UpdateKeyRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1#UpdateKeyRequest. - } - resp, err := c.UpdateKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go deleted file mode 100644 index 8728c97a9669..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/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 recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1beta1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.AnnotateAssessmentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1#AnnotateAssessmentRequest. - } - resp, err := c.AnnotateAssessment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go deleted file mode 100644 index 182b4783f8a6..000000000000 --- a/internal/generated/snippets/recaptchaenterprise/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/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 recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_sync] - -package main - -import ( - "context" - - recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/apiv1beta1" - "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb" -) - -func main() { - ctx := context.Background() - c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &recaptchaenterprisepb.CreateAssessmentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1#CreateAssessmentRequest. - } - resp, err := c.CreateAssessment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_sync]