diff --git a/internal/gapicgen/generator/gapics.go b/internal/gapicgen/generator/gapics.go index 98a4d1aaf8d..fe53aafafab 100644 --- a/internal/gapicgen/generator/gapics.go +++ b/internal/gapicgen/generator/gapics.go @@ -111,7 +111,7 @@ func (g *GapicGenerator) RegenSnippets(ctx context.Context) error { return err } if err := gensnippets.Generate(g.googleCloudDir, snippetDir, apiShortnames); err != nil { - return fmt.Errorf("error generating snippets: %v", err) + log.Printf("warning: got the following non-fatal errors generating snippets: %v", err) } if err := replaceAllForSnippets(g.googleCloudDir, snippetDir); err != nil { return err diff --git a/internal/gapicgen/gensnippets/gensnippets.go b/internal/gapicgen/gensnippets/gensnippets.go index 44e1ce782d6..0c172fdc7c6 100644 --- a/internal/gapicgen/gensnippets/gensnippets.go +++ b/internal/gapicgen/gensnippets/gensnippets.go @@ -31,6 +31,8 @@ import ( "cloud.google.com/go/internal/godocfx/pkgload" "cloud.google.com/go/third_party/go/doc" "golang.org/x/sys/execabs" + "google.golang.org/genproto/googleapis/gapic/metadata" + "google.golang.org/protobuf/encoding/protojson" ) // Generate reads all modules in rootDir and outputs their examples in outDir. @@ -68,13 +70,13 @@ func Generate(rootDir, outDir string, apiShortnames map[string]string) error { return fmt.Errorf("failed to load packages: %v", err) } for _, pi := range pis { - if err := processExamples(pi.Doc, pi.Fset, trimPrefix, outDir, apiShortnames); err != nil { - errs = append(errs, fmt.Errorf("failed to process examples: %v", err)) + if eErrs := processExamples(pi.Doc, pi.Fset, trimPrefix, rootDir, outDir, apiShortnames); len(eErrs) > 0 { + errs = append(errs, fmt.Errorf("%v", eErrs)) } } } if len(errs) > 0 { - log.Fatal(errs) + return fmt.Errorf("example errors: %v", errs) } if len(dirs) > 0 { @@ -103,69 +105,90 @@ var skip = map[string]bool{ "cloud.google.com/go/translate": true, // Has newer version. } -func processExamples(pkg *doc.Package, fset *token.FileSet, trimPrefix, outDir string, apiShortnames map[string]string) error { +func processExamples(pkg *doc.Package, fset *token.FileSet, trimPrefix, rootDir, outDir string, apiShortnames map[string]string) []error { if skip[pkg.ImportPath] { return nil } trimmed := strings.TrimPrefix(pkg.ImportPath, trimPrefix) + regionTags, err := computeRegionTags(rootDir, trimmed, apiShortnames) + if err != nil { + return []error{err} + } + if len(regionTags) == 0 { + // Nothing to do. + return nil + } outDir = filepath.Join(outDir, trimmed) - shortname, ok := apiShortnames[pkg.ImportPath] - if !ok { - // Do our best to find a shortname. For example, - // cloud.google.com/go/bigtable/bttest should lead to - // cloud.google.com/go/bigtable. - bestMatch := "" - for path := range apiShortnames { - if strings.HasPrefix(pkg.ImportPath, path) { - if len(path) > len(bestMatch) { - bestMatch = path - } + // Note: only process methods because they correspond to RPCs. + + var errs []error + for _, t := range pkg.Types { + for _, m := range t.Methods { + if len(m.Examples) == 0 { + // Nothing to do for this method. + continue + } + dir := filepath.Join(outDir, t.Name, m.Name) + regionTag, ok := regionTags[t.Name][m.Name] + if !ok { + errs = append(errs, fmt.Errorf("could not find region tag for %s %s.%s", pkg.ImportPath, t.Name, m.Name)) + continue + } + if err := writeExamples(dir, m.Examples, fset, regionTag); err != nil { + errs = append(errs, err) } } - if bestMatch == "" { - return fmt.Errorf("could not find API shortname for %v", pkg.ImportPath) - } - log.Printf("The best match for %q is %q", pkg.ImportPath, bestMatch) - shortname = apiShortnames[bestMatch] } - regionTag := shortname + "_generated" + strings.ReplaceAll(trimmed, "/", "_") - - // Note: variables and constants don't have examples. + return errs +} - for _, f := range pkg.Funcs { - dir := filepath.Join(outDir, f.Name) - if err := writeExamples(dir, f.Examples, fset, regionTag); err != nil { - return err - } +// computeRegionTags gets the region tags for the given path, keyed by client name and method name. +func computeRegionTags(rootDir, path string, apiShortnames map[string]string) (regionTags map[string]map[string]string, err error) { + metadataPath := filepath.Join(rootDir, path, "gapic_metadata.json") + f, err := os.ReadFile(metadataPath) + if err != nil { + // If there is no gapic_metadata.json file, don't generate snippets. + // This isn't an error, though, because some packages aren't GAPICs and + // shouldn't get snippets in the first place. + return nil, nil + } + m := metadata.GapicMetadata{} + if err := protojson.Unmarshal(f, &m); err != nil { + return nil, err + } + shortname, ok := apiShortnames[m.GetLibraryPackage()] + if !ok { + return nil, fmt.Errorf("could not find shortname for %q", m.GetLibraryPackage()) } + protoParts := strings.Split(m.GetProtoPackage(), ".") + apiVersion := protoParts[len(protoParts)-1] - for _, t := range pkg.Types { - dir := filepath.Join(outDir, t.Name) - if err := writeExamples(dir, t.Examples, fset, regionTag); err != nil { - return err - } - for _, f := range t.Funcs { - fDir := filepath.Join(dir, f.Name) - if err := writeExamples(fDir, f.Examples, fset, regionTag); err != nil { - return err - } - } - for _, m := range t.Methods { - mDir := filepath.Join(dir, m.Name) - if err := writeExamples(mDir, m.Examples, fset, regionTag); err != nil { - return err + regionTags = map[string]map[string]string{} + for sName, s := range m.GetServices() { + for _, c := range s.GetClients() { + for rpc, methods := range c.GetRpcs() { + if len(methods.GetMethods()) != 1 { + return nil, fmt.Errorf("%s %s %s found %d methods", m.GetLibraryPackage(), sName, c.GetLibraryClient(), len(methods.GetMethods())) + } + if methods.GetMethods()[0] != rpc { + return nil, fmt.Errorf("%s %s %s %q does not match %q", m.GetLibraryPackage(), sName, c.GetLibraryClient(), methods.GetMethods()[0], rpc) + } + + // Every Go method is synchronous. + regionTag := fmt.Sprintf("%s_%s_generated_%s_%s_sync", shortname, apiVersion, sName, rpc) + + if regionTags[c.GetLibraryClient()] == nil { + regionTags[c.GetLibraryClient()] = map[string]string{} + } + regionTags[c.GetLibraryClient()][rpc] = regionTag } } } - return nil + return regionTags, nil } func writeExamples(outDir string, exs []*doc.Example, fset *token.FileSet, regionTag string) error { - if len(exs) == 0 { - // Nothing to do. - return nil - } for _, ex := range exs { dir := outDir if len(exs) > 1 { @@ -207,7 +230,12 @@ func writeExamples(outDir string, exs []*doc.Example, fset *token.FileSet, regio if _, err := f.WriteString(header()); err != nil { return err } - tag := regionTag + "_" + ex.Name + + tag := regionTag + if len(ex.Suffix) > 0 { + tag += "_" + ex.Suffix + } + // Include an extra newline to keep separate from the package declaration. if _, err := fmt.Fprintf(f, "// [START %v]\n\n", tag); err != nil { return err diff --git a/internal/gapicgen/go.mod b/internal/gapicgen/go.mod index 0210c787249..43173316bb5 100644 --- a/internal/gapicgen/go.mod +++ b/internal/gapicgen/go.mod @@ -14,6 +14,8 @@ require ( golang.org/x/oauth2 v0.0.0-20210413134643-5e61552d6c78 golang.org/x/sync v0.0.0-20210220032951-036812b2e83c golang.org/x/sys v0.0.0-20210415045647-66c3f260301c + google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1 + google.golang.org/protobuf v1.26.0 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect gopkg.in/src-d/go-git.v4 v4.13.1 gopkg.in/yaml.v2 v2.4.0 diff --git a/internal/gapicgen/go.sum b/internal/gapicgen/go.sum index d41a26d3d09..68ae59c0e02 100644 --- a/internal/gapicgen/go.sum +++ b/internal/gapicgen/go.sum @@ -477,6 +477,7 @@ google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1 h1:E7wSQBXkH3T3diucK+9Z1kjn4+/9tNG7lZLr75oOhh8= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go index 41dbb63506e..700d479bc37 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_ApproveApprovalRequest] +// [START accessapproval_v1_generated_AccessApproval_ApproveApprovalRequest_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END accessapproval_generated_accessapproval_apiv1_Client_ApproveApprovalRequest] +// [END accessapproval_v1_generated_AccessApproval_ApproveApprovalRequest_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go index 78bd17cb7e8..c6a4eb2ce92 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_DeleteAccessApprovalSettings] +// [START accessapproval_v1_generated_AccessApproval_DeleteAccessApprovalSettings_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END accessapproval_generated_accessapproval_apiv1_Client_DeleteAccessApprovalSettings] +// [END accessapproval_v1_generated_AccessApproval_DeleteAccessApprovalSettings_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go index 756043d5dc6..eaf4d4fe985 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_DismissApprovalRequest] +// [START accessapproval_v1_generated_AccessApproval_DismissApprovalRequest_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END accessapproval_generated_accessapproval_apiv1_Client_DismissApprovalRequest] +// [END accessapproval_v1_generated_AccessApproval_DismissApprovalRequest_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go index 0a205feab97..0c465c33541 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_GetAccessApprovalSettings] +// [START accessapproval_v1_generated_AccessApproval_GetAccessApprovalSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END accessapproval_generated_accessapproval_apiv1_Client_GetAccessApprovalSettings] +// [END accessapproval_v1_generated_AccessApproval_GetAccessApprovalSettings_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go index 5a67e0fe999..7837e316b7e 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_GetApprovalRequest] +// [START accessapproval_v1_generated_AccessApproval_GetApprovalRequest_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END accessapproval_generated_accessapproval_apiv1_Client_GetApprovalRequest] +// [END accessapproval_v1_generated_AccessApproval_GetApprovalRequest_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go index e5c73079ca7..7b380476813 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_ListApprovalRequests] +// [START accessapproval_v1_generated_AccessApproval_ListApprovalRequests_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END accessapproval_generated_accessapproval_apiv1_Client_ListApprovalRequests] +// [END accessapproval_v1_generated_AccessApproval_ListApprovalRequests_sync] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/NewClient/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/NewClient/main.go deleted file mode 100644 index 3f6cf956730..00000000000 --- a/internal/generated/snippets/accessapproval/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START accessapproval_generated_accessapproval_apiv1_NewClient] - -package main - -import ( - "context" - - accessapproval "cloud.google.com/go/accessapproval/apiv1" -) - -func main() { - ctx := context.Background() - c, err := accessapproval.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END accessapproval_generated_accessapproval_apiv1_NewClient] diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go index 11421ed2508..ac127432471 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START accessapproval_generated_accessapproval_apiv1_Client_UpdateAccessApprovalSettings] +// [START accessapproval_v1_generated_AccessApproval_UpdateAccessApprovalSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END accessapproval_generated_accessapproval_apiv1_Client_UpdateAccessApprovalSettings] +// [END accessapproval_v1_generated_AccessApproval_UpdateAccessApprovalSettings_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go index 476cac6ee7a..0dfbb31c40a 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_AuditUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_AuditUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go index 30ff2d59e5b..4eb88fab1a3 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchCreateUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchCreateUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go index b2c672f1d25..bbedda6b63d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchDeleteUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchDeleteUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go index 950bf982c6b..531b2f14549 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchGetUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchGetUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go index e578858b9c0..17d4f416efe 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchUpdateUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_BatchUpdateUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAndroidAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAndroidAppDataStream/main.go index 4cb40b9e531..973d66d4842 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAndroidAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAndroidAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateAndroidAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAndroidAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateAndroidAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAndroidAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go index 858d6cfee9c..4703aadb087 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateFirebaseLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateFirebaseLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go index 0c01a96c51c..e4a989b1cf9 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateGoogleAdsLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateGoogleAdsLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateIosAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateIosAppDataStream/main.go index 455b17f8454..efd03615068 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateIosAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateIosAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateIosAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateIosAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateIosAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateIosAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go index 7c358c98e64..e439775e005 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateProperty] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateProperty] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go index df5b9399644..e2ccf4683cb 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateUserLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateUserLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateWebDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateWebDataStream/main.go index de0a8cfc314..a87f951fadb 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateWebDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateWebDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateWebDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_CreateWebDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go index b19c4265527..f8ca1a4ba52 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteAccount] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteAccount] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAndroidAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAndroidAppDataStream/main.go index e846ebc31a1..c7f22dde7b4 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAndroidAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAndroidAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteAndroidAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteAndroidAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go index 1612a0e7f14..366455cc92c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteFirebaseLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteFirebaseLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go index 43f7d60fdfe..767ccb0a9f1 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteGoogleAdsLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteGoogleAdsLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteIosAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteIosAppDataStream/main.go index 4f066c798bb..0cb8fa12e6c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteIosAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteIosAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteIosAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteIosAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go index 4afb144a010..11534ae4869 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteProperty] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteProperty] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go index 475c9704491..abc4c0c7315 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteUserLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteUserLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteWebDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteWebDataStream/main.go index 431b1cd5563..56a2323d8de 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteWebDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteWebDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteWebDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_DeleteWebDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go index d1e7f8de561..18a5ade9ebf 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetAccount] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetAccount] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAndroidAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAndroidAppDataStream/main.go index 1f7139a9d43..5fa9328c3bd 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAndroidAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAndroidAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetAndroidAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetAndroidAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go index e95fa84d18e..e73a72cfbdf 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetDataSharingSettings] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetDataSharingSettings] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetEnhancedMeasurementSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetEnhancedMeasurementSettings/main.go index 23ce47b9fbb..d60b728c589 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetEnhancedMeasurementSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetEnhancedMeasurementSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetEnhancedMeasurementSettings] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetEnhancedMeasurementSettings] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go index 08eea6a7cc7..24db48c0f5d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetGlobalSiteTag] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetGlobalSiteTag] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetIosAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetIosAppDataStream/main.go index 5adde53b810..f8bf20e9d19 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetIosAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetIosAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetIosAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetIosAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go index c7e8978cecd..88da2eab7ee 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetProperty] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetProperty] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go index 3ac4a8765c5..dbc52eb458c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetUserLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetUserLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetWebDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetWebDataStream/main.go index fc1f4ab604b..a9b52be30fc 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetWebDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetWebDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetWebDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_GetWebDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go index 6fd33127231..db691fe6f12 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAccountSummaries] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAccountSummaries] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go index a063166d2e1..c3a7a6ff8a5 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAccounts] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAccounts] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAndroidAppDataStreams/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAndroidAppDataStreams/main.go index d61fc43ef1e..7cfef21bd7d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAndroidAppDataStreams/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAndroidAppDataStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAndroidAppDataStreams] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListAndroidAppDataStreams] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go index 0242f7ccaa0..12a069882db 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListFirebaseLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListFirebaseLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go index f471a5ac37d..754ad7574de 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListGoogleAdsLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListGoogleAdsLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListIosAppDataStreams/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListIosAppDataStreams/main.go index 5aae286a5da..1ad8b35de41 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListIosAppDataStreams/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListIosAppDataStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListIosAppDataStreams] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListIosAppDataStreams] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go index 33f6e397f33..389ef81589d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListProperties] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListProperties] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go index 3b567d52eec..7213434bc47 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListUserLinks] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListUserLinks] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListWebDataStreams/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListWebDataStreams/main.go index 1a6238b2a16..9ce447b1e87 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListWebDataStreams/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListWebDataStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListWebDataStreams] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ListWebDataStreams] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/NewAnalyticsAdminClient/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/NewAnalyticsAdminClient/main.go deleted file mode 100644 index 1a5175fed5d..00000000000 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/NewAnalyticsAdminClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_NewAnalyticsAdminClient] - -package main - -import ( - "context" - - admin "cloud.google.com/go/analytics/admin/apiv1alpha" -) - -func main() { - ctx := context.Background() - c, err := admin.NewAnalyticsAdminClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_NewAnalyticsAdminClient] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go index 74b8f9923ab..a8222ad8132 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ProvisionAccountTicket] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_ProvisionAccountTicket] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go index a9b110c0eca..a79fe8250b3 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateAccount] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateAccount] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAndroidAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAndroidAppDataStream/main.go index e13b24eafd7..ce235fd862e 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAndroidAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAndroidAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateAndroidAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateAndroidAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateEnhancedMeasurementSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateEnhancedMeasurementSettings/main.go index 58105e4d9c9..dc0302f7a54 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateEnhancedMeasurementSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateEnhancedMeasurementSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateEnhancedMeasurementSettings] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateEnhancedMeasurementSettings] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateFirebaseLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateFirebaseLink/main.go index d9dfe378b8a..a140dabffc0 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateFirebaseLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateFirebaseLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateFirebaseLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateFirebaseLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateFirebaseLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateFirebaseLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go index 326475ab1f2..3852b70978b 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateGoogleAdsLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateGoogleAdsLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateIosAppDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateIosAppDataStream/main.go index 686b8ed6e2f..e93c5542040 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateIosAppDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateIosAppDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateIosAppDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateIosAppDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go index 7974bb81927..81f90e50733 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateProperty] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateProperty] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go index bd75df0c33f..40d8e3cf8db 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateUserLink] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateUserLink] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_sync] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateWebDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateWebDataStream/main.go index d364d1e782e..1690a0e82c8 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateWebDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateWebDataStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateWebDataStream] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsadmin_generated_analytics_admin_apiv1alpha_AnalyticsAdminClient_UpdateWebDataStream] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunPivotReports/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunPivotReports/main.go index df7653757a2..6e606460159 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunPivotReports/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunPivotReports/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_BatchRunPivotReports] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_BatchRunPivotReports_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_BatchRunPivotReports] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_BatchRunPivotReports_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunReports/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunReports/main.go index 542ef88b9e8..85ea10f2138 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunReports/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/BatchRunReports/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_BatchRunReports] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_BatchRunReports_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_BatchRunReports] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_BatchRunReports_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/GetMetadata/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/GetMetadata/main.go index 45e3183fd5e..535d44e2487 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/GetMetadata/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/GetMetadata/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_GetMetadata] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_GetMetadata] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/NewAlphaAnalyticsDataClient/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/NewAlphaAnalyticsDataClient/main.go deleted file mode 100644 index 3b4b324cdec..00000000000 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/NewAlphaAnalyticsDataClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START analyticsdata_generated_analytics_data_apiv1alpha_NewAlphaAnalyticsDataClient] - -package main - -import ( - "context" - - data "cloud.google.com/go/analytics/data/apiv1alpha" -) - -func main() { - ctx := context.Background() - c, err := data.NewAlphaAnalyticsDataClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END analyticsdata_generated_analytics_data_apiv1alpha_NewAlphaAnalyticsDataClient] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunPivotReport/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunPivotReport/main.go index 3ddc23e4dd3..3a3d4de2a82 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunPivotReport/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunPivotReport/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunPivotReport] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunPivotReport_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunPivotReport] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunPivotReport_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunRealtimeReport/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunRealtimeReport/main.go index 97e13d76863..84bf26c2e06 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunRealtimeReport/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunRealtimeReport/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunRealtimeReport] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunRealtimeReport_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunRealtimeReport] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunRealtimeReport_sync] diff --git a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunReport/main.go b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunReport/main.go index 1929606ae0d..c8954069737 100644 --- a/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunReport/main.go +++ b/internal/generated/snippets/analytics/data/apiv1alpha/AlphaAnalyticsDataClient/RunReport/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunReport] +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END analyticsdata_generated_analytics_data_apiv1alpha_AlphaAnalyticsDataClient_RunReport] +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go index d1488e01a79..080684469db 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_CreateApi] +// [START apigateway_v1_generated_ApiGatewayService_CreateApi_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_CreateApi] +// [END apigateway_v1_generated_ApiGatewayService_CreateApi_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go index 7994249d85a..96784e11d7d 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_CreateApiConfig] +// [START apigateway_v1_generated_ApiGatewayService_CreateApiConfig_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_CreateApiConfig] +// [END apigateway_v1_generated_ApiGatewayService_CreateApiConfig_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go index dd5b96da166..864ea9f7a03 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_CreateGateway] +// [START apigateway_v1_generated_ApiGatewayService_CreateGateway_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_CreateGateway] +// [END apigateway_v1_generated_ApiGatewayService_CreateGateway_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go index 7a422f06d65..bcdf822c8f0 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_DeleteApi] +// [START apigateway_v1_generated_ApiGatewayService_DeleteApi_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_DeleteApi] +// [END apigateway_v1_generated_ApiGatewayService_DeleteApi_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go index 45774301f77..3e842fd0b58 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_DeleteApiConfig] +// [START apigateway_v1_generated_ApiGatewayService_DeleteApiConfig_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_DeleteApiConfig] +// [END apigateway_v1_generated_ApiGatewayService_DeleteApiConfig_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go index 345de8b6e62..09225e7a993 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_DeleteGateway] +// [START apigateway_v1_generated_ApiGatewayService_DeleteGateway_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_DeleteGateway] +// [END apigateway_v1_generated_ApiGatewayService_DeleteGateway_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go index 678b32ce1f8..50a3fce3194 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_GetApi] +// [START apigateway_v1_generated_ApiGatewayService_GetApi_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_GetApi] +// [END apigateway_v1_generated_ApiGatewayService_GetApi_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go index 4b598b0a059..7d29c98e948 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_GetApiConfig] +// [START apigateway_v1_generated_ApiGatewayService_GetApiConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_GetApiConfig] +// [END apigateway_v1_generated_ApiGatewayService_GetApiConfig_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go index 4bb2006101b..de30defb2f0 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_GetGateway] +// [START apigateway_v1_generated_ApiGatewayService_GetGateway_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_GetGateway] +// [END apigateway_v1_generated_ApiGatewayService_GetGateway_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go index 8c4e605cbca..217a5c2f85e 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_ListApiConfigs] +// [START apigateway_v1_generated_ApiGatewayService_ListApiConfigs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_ListApiConfigs] +// [END apigateway_v1_generated_ApiGatewayService_ListApiConfigs_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go index e5dd41dff89..23de14cb9b1 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_ListApis] +// [START apigateway_v1_generated_ApiGatewayService_ListApis_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_ListApis] +// [END apigateway_v1_generated_ApiGatewayService_ListApis_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go index 850ece291d0..fc5ed723d76 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_ListGateways] +// [START apigateway_v1_generated_ApiGatewayService_ListGateways_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END apigateway_generated_apigateway_apiv1_Client_ListGateways] +// [END apigateway_v1_generated_ApiGatewayService_ListGateways_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/NewClient/main.go b/internal/generated/snippets/apigateway/apiv1/Client/NewClient/main.go deleted file mode 100644 index 98fa69bba79..00000000000 --- a/internal/generated/snippets/apigateway/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START apigateway_generated_apigateway_apiv1_NewClient] - -package main - -import ( - "context" - - apigateway "cloud.google.com/go/apigateway/apiv1" -) - -func main() { - ctx := context.Background() - c, err := apigateway.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END apigateway_generated_apigateway_apiv1_NewClient] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go index 9e8be163f0b..62fcd941bde 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_UpdateApi] +// [START apigateway_v1_generated_ApiGatewayService_UpdateApi_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_UpdateApi] +// [END apigateway_v1_generated_ApiGatewayService_UpdateApi_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go index 2177270a191..a47d5ae8acd 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_UpdateApiConfig] +// [START apigateway_v1_generated_ApiGatewayService_UpdateApiConfig_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_UpdateApiConfig] +// [END apigateway_v1_generated_ApiGatewayService_UpdateApiConfig_sync] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go index e185baf7352..f2ba8396d44 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START apigateway_generated_apigateway_apiv1_Client_UpdateGateway] +// [START apigateway_v1_generated_ApiGatewayService_UpdateGateway_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END apigateway_generated_apigateway_apiv1_Client_UpdateGateway] +// [END apigateway_v1_generated_ApiGatewayService_UpdateGateway_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go index 7ec749cde87..8160e2240f4 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ApplicationsClient_CreateApplication] +// [START appengine_v1_generated_Applications_CreateApplication_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ApplicationsClient_CreateApplication] +// [END appengine_v1_generated_Applications_CreateApplication_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go index b8295c3fb9a..f7c5c177d1d 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ApplicationsClient_GetApplication] +// [START appengine_v1_generated_Applications_GetApplication_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ApplicationsClient_GetApplication] +// [END appengine_v1_generated_Applications_GetApplication_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/NewApplicationsClient/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/NewApplicationsClient/main.go deleted file mode 100644 index 80c42c158e3..00000000000 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/NewApplicationsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewApplicationsClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewApplicationsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewApplicationsClient] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go index ab8f315390f..4e5c66305d2 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ApplicationsClient_RepairApplication] +// [START appengine_v1_generated_Applications_RepairApplication_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ApplicationsClient_RepairApplication] +// [END appengine_v1_generated_Applications_RepairApplication_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go index 0c366240a89..40cea204966 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ApplicationsClient_UpdateApplication] +// [START appengine_v1_generated_Applications_UpdateApplication_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ApplicationsClient_UpdateApplication] +// [END appengine_v1_generated_Applications_UpdateApplication_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go index 52edee4e1f2..c0fb4be7757 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_CreateAuthorizedCertificate] +// [START appengine_v1_generated_AuthorizedCertificates_CreateAuthorizedCertificate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_CreateAuthorizedCertificate] +// [END appengine_v1_generated_AuthorizedCertificates_CreateAuthorizedCertificate_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go index b0ea2489864..17a44bbc568 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_DeleteAuthorizedCertificate] +// [START appengine_v1_generated_AuthorizedCertificates_DeleteAuthorizedCertificate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_DeleteAuthorizedCertificate] +// [END appengine_v1_generated_AuthorizedCertificates_DeleteAuthorizedCertificate_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go index 061a6db3bf6..7d13cf33c4b 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_GetAuthorizedCertificate] +// [START appengine_v1_generated_AuthorizedCertificates_GetAuthorizedCertificate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_GetAuthorizedCertificate] +// [END appengine_v1_generated_AuthorizedCertificates_GetAuthorizedCertificate_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go index fe4c014bee0..56427b5a675 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_ListAuthorizedCertificates] +// [START appengine_v1_generated_AuthorizedCertificates_ListAuthorizedCertificates_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_ListAuthorizedCertificates] +// [END appengine_v1_generated_AuthorizedCertificates_ListAuthorizedCertificates_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/NewAuthorizedCertificatesClient/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/NewAuthorizedCertificatesClient/main.go deleted file mode 100644 index 6eec52c65d3..00000000000 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/NewAuthorizedCertificatesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewAuthorizedCertificatesClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewAuthorizedCertificatesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewAuthorizedCertificatesClient] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go index 9ab41c8312c..dc641a5eed8 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_UpdateAuthorizedCertificate] +// [START appengine_v1_generated_AuthorizedCertificates_UpdateAuthorizedCertificate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_AuthorizedCertificatesClient_UpdateAuthorizedCertificate] +// [END appengine_v1_generated_AuthorizedCertificates_UpdateAuthorizedCertificate_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go index 925f042d638..c6e1f8253a8 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_AuthorizedDomainsClient_ListAuthorizedDomains] +// [START appengine_v1_generated_AuthorizedDomains_ListAuthorizedDomains_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_AuthorizedDomainsClient_ListAuthorizedDomains] +// [END appengine_v1_generated_AuthorizedDomains_ListAuthorizedDomains_sync] diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/NewAuthorizedDomainsClient/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/NewAuthorizedDomainsClient/main.go deleted file mode 100644 index 253531e45c8..00000000000 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/NewAuthorizedDomainsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewAuthorizedDomainsClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewAuthorizedDomainsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewAuthorizedDomainsClient] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go index cd449bc36fb..101dce45b2f 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_DomainMappingsClient_CreateDomainMapping] +// [START appengine_v1_generated_DomainMappings_CreateDomainMapping_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_DomainMappingsClient_CreateDomainMapping] +// [END appengine_v1_generated_DomainMappings_CreateDomainMapping_sync] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go index 741da663906..74d7d7b4f0f 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_DomainMappingsClient_DeleteDomainMapping] +// [START appengine_v1_generated_DomainMappings_DeleteDomainMapping_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_DomainMappingsClient_DeleteDomainMapping] +// [END appengine_v1_generated_DomainMappings_DeleteDomainMapping_sync] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go index 1f323fe19f0..ab0156fa9e1 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_DomainMappingsClient_GetDomainMapping] +// [START appengine_v1_generated_DomainMappings_GetDomainMapping_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_DomainMappingsClient_GetDomainMapping] +// [END appengine_v1_generated_DomainMappings_GetDomainMapping_sync] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go index 6c1b2e8a7b0..85d7ffec7a4 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_DomainMappingsClient_ListDomainMappings] +// [START appengine_v1_generated_DomainMappings_ListDomainMappings_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_DomainMappingsClient_ListDomainMappings] +// [END appengine_v1_generated_DomainMappings_ListDomainMappings_sync] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/NewDomainMappingsClient/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/NewDomainMappingsClient/main.go deleted file mode 100644 index 1a5cac543d4..00000000000 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/NewDomainMappingsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewDomainMappingsClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewDomainMappingsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewDomainMappingsClient] diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go index 35b825f2563..5a645f9ab0a 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_DomainMappingsClient_UpdateDomainMapping] +// [START appengine_v1_generated_DomainMappings_UpdateDomainMapping_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_DomainMappingsClient_UpdateDomainMapping] +// [END appengine_v1_generated_DomainMappings_UpdateDomainMapping_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go index 985f856221c..fcef3ff65cc 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_BatchUpdateIngressRules] +// [START appengine_v1_generated_Firewall_BatchUpdateIngressRules_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_FirewallClient_BatchUpdateIngressRules] +// [END appengine_v1_generated_Firewall_BatchUpdateIngressRules_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go index e4c9ba45ec8..7f0e6bd1b75 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_CreateIngressRule] +// [START appengine_v1_generated_Firewall_CreateIngressRule_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_FirewallClient_CreateIngressRule] +// [END appengine_v1_generated_Firewall_CreateIngressRule_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go index 43c2eed7424..acf11621a35 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_DeleteIngressRule] +// [START appengine_v1_generated_Firewall_DeleteIngressRule_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_FirewallClient_DeleteIngressRule] +// [END appengine_v1_generated_Firewall_DeleteIngressRule_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go index 838e03a6977..8bb987a2f71 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_GetIngressRule] +// [START appengine_v1_generated_Firewall_GetIngressRule_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_FirewallClient_GetIngressRule] +// [END appengine_v1_generated_Firewall_GetIngressRule_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go index 49e83dc121a..d1010773111 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_ListIngressRules] +// [START appengine_v1_generated_Firewall_ListIngressRules_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_FirewallClient_ListIngressRules] +// [END appengine_v1_generated_Firewall_ListIngressRules_sync] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/NewFirewallClient/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/NewFirewallClient/main.go deleted file mode 100644 index 8f77b6bc396..00000000000 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/NewFirewallClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewFirewallClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewFirewallClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewFirewallClient] diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go index 760f0601f80..f1e08d8f37a 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_FirewallClient_UpdateIngressRule] +// [START appengine_v1_generated_Firewall_UpdateIngressRule_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_FirewallClient_UpdateIngressRule] +// [END appengine_v1_generated_Firewall_UpdateIngressRule_sync] diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go index 3a1f4b3ed54..d96a2f2d200 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_InstancesClient_DebugInstance] +// [START appengine_v1_generated_Instances_DebugInstance_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_InstancesClient_DebugInstance] +// [END appengine_v1_generated_Instances_DebugInstance_sync] diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go index ae16b2f4c7b..1384152b406 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_InstancesClient_DeleteInstance] +// [START appengine_v1_generated_Instances_DeleteInstance_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_InstancesClient_DeleteInstance] +// [END appengine_v1_generated_Instances_DeleteInstance_sync] diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go index 51639f46a33..789c30b81df 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_InstancesClient_GetInstance] +// [START appengine_v1_generated_Instances_GetInstance_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_InstancesClient_GetInstance] +// [END appengine_v1_generated_Instances_GetInstance_sync] diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go index 314d67635bf..564af05b91c 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_InstancesClient_ListInstances] +// [START appengine_v1_generated_Instances_ListInstances_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_InstancesClient_ListInstances] +// [END appengine_v1_generated_Instances_ListInstances_sync] diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/NewInstancesClient/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/NewInstancesClient/main.go deleted file mode 100644 index 3d29e7cc93a..00000000000 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/NewInstancesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewInstancesClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewInstancesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewInstancesClient] diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go index f9616075ff2..cb25fffb6df 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ServicesClient_DeleteService] +// [START appengine_v1_generated_Services_DeleteService_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_ServicesClient_DeleteService] +// [END appengine_v1_generated_Services_DeleteService_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go index 72063118b05..8aab7bc5407 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ServicesClient_GetService] +// [START appengine_v1_generated_Services_GetService_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ServicesClient_GetService] +// [END appengine_v1_generated_Services_GetService_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go index bc7644b465e..4a97a61ad4b 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ServicesClient_ListServices] +// [START appengine_v1_generated_Services_ListServices_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_ServicesClient_ListServices] +// [END appengine_v1_generated_Services_ListServices_sync] diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/NewServicesClient/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/NewServicesClient/main.go deleted file mode 100644 index 686424ef4ae..00000000000 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/NewServicesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewServicesClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewServicesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewServicesClient] diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go index ed3efde974f..9f60ffef273 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_ServicesClient_UpdateService] +// [START appengine_v1_generated_Services_UpdateService_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_ServicesClient_UpdateService] +// [END appengine_v1_generated_Services_UpdateService_sync] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go index b1ecf629097..dcc4759010b 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_VersionsClient_CreateVersion] +// [START appengine_v1_generated_Versions_CreateVersion_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_VersionsClient_CreateVersion] +// [END appengine_v1_generated_Versions_CreateVersion_sync] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go index 0785cb83caa..d1eb55a24a2 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_VersionsClient_DeleteVersion] +// [START appengine_v1_generated_Versions_DeleteVersion_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_VersionsClient_DeleteVersion] +// [END appengine_v1_generated_Versions_DeleteVersion_sync] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go index 6187941e6f0..f9564703133 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_VersionsClient_GetVersion] +// [START appengine_v1_generated_Versions_GetVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_VersionsClient_GetVersion] +// [END appengine_v1_generated_Versions_GetVersion_sync] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go index 9f7cff81719..7240821b0b4 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_VersionsClient_ListVersions] +// [START appengine_v1_generated_Versions_ListVersions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END appengine_generated_appengine_apiv1_VersionsClient_ListVersions] +// [END appengine_v1_generated_Versions_ListVersions_sync] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/NewVersionsClient/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/NewVersionsClient/main.go deleted file mode 100644 index 453f203b969..00000000000 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/NewVersionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START appengine_generated_appengine_apiv1_NewVersionsClient] - -package main - -import ( - "context" - - appengine "cloud.google.com/go/appengine/apiv1" -) - -func main() { - ctx := context.Background() - c, err := appengine.NewVersionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END appengine_generated_appengine_apiv1_NewVersionsClient] diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go index 2a1477fb331..b3bfd97bde8 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START appengine_generated_appengine_apiv1_VersionsClient_UpdateVersion] +// [START appengine_v1_generated_Versions_UpdateVersion_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END appengine_generated_appengine_apiv1_VersionsClient_UpdateVersion] +// [END appengine_v1_generated_Versions_UpdateVersion_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go index 2006f78dfff..abfab3b85af 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_BatchCreateRows] +// [START area120tables_v1alpha1_generated_TablesService_BatchCreateRows_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_BatchCreateRows] +// [END area120tables_v1alpha1_generated_TablesService_BatchCreateRows_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go index 659fd68fe52..03b8622ebe6 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_BatchDeleteRows] +// [START area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_BatchDeleteRows] +// [END area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go index 9fa23cbe1f4..70c6a7e72e9 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_BatchUpdateRows] +// [START area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_BatchUpdateRows] +// [END area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go index bbef2b7eaaa..e0652dcb5d1 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_CreateRow] +// [START area120tables_v1alpha1_generated_TablesService_CreateRow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_CreateRow] +// [END area120tables_v1alpha1_generated_TablesService_CreateRow_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go index cc8e23ec1a5..23a4bf956c1 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_DeleteRow] +// [START area120tables_v1alpha1_generated_TablesService_DeleteRow_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_DeleteRow] +// [END area120tables_v1alpha1_generated_TablesService_DeleteRow_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go index 83df0346f53..92eb875c5b2 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_GetRow] +// [START area120tables_v1alpha1_generated_TablesService_GetRow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_GetRow] +// [END area120tables_v1alpha1_generated_TablesService_GetRow_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go index 01ba44455c2..f2a2e26c50f 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_GetTable] +// [START area120tables_v1alpha1_generated_TablesService_GetTable_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_GetTable] +// [END area120tables_v1alpha1_generated_TablesService_GetTable_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go index 533bcddacf5..cdfa0d49554 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_GetWorkspace] +// [START area120tables_v1alpha1_generated_TablesService_GetWorkspace_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_GetWorkspace] +// [END area120tables_v1alpha1_generated_TablesService_GetWorkspace_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go index 868b4cc3cf6..d8f76834914 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_ListRows] +// [START area120tables_v1alpha1_generated_TablesService_ListRows_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_ListRows] +// [END area120tables_v1alpha1_generated_TablesService_ListRows_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go index e065d42c6fc..45e24f0ff14 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_ListTables] +// [START area120tables_v1alpha1_generated_TablesService_ListTables_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_ListTables] +// [END area120tables_v1alpha1_generated_TablesService_ListTables_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go index b556dbc43cb..68a974f722f 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_ListWorkspaces] +// [START area120tables_v1alpha1_generated_TablesService_ListWorkspaces_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_ListWorkspaces] +// [END area120tables_v1alpha1_generated_TablesService_ListWorkspaces_sync] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/NewClient/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/NewClient/main.go deleted file mode 100644 index 46fd05eb4fa..00000000000 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START area120tables_generated_area120_tables_apiv1alpha1_NewClient] - -package main - -import ( - "context" - - tables "cloud.google.com/go/area120/tables/apiv1alpha1" -) - -func main() { - ctx := context.Background() - c, err := tables.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END area120tables_generated_area120_tables_apiv1alpha1_NewClient] diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go index 081587b16b5..f543aced256 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START area120tables_generated_area120_tables_apiv1alpha1_Client_UpdateRow] +// [START area120tables_v1alpha1_generated_TablesService_UpdateRow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END area120tables_generated_area120_tables_apiv1alpha1_Client_UpdateRow] +// [END area120tables_v1alpha1_generated_TablesService_UpdateRow_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go index a9908c73f84..64a8c67631c 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_CreateRepository] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_CreateRepository_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_CreateRepository] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_CreateRepository_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go index 76c5b363864..b84738f18df 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_CreateTag] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_CreateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_CreateTag] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_CreateTag_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go index 901ed26054f..da31ea8b0c4 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeletePackage] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeletePackage_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeletePackage] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_DeletePackage_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go index 355b663d752..621a207f02e 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteRepository] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteRepository_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteRepository] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteRepository_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go index adad025bada..09bb1c3dace 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteTag] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteTag_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteTag] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteTag_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go index c520d5cdc1a..713e97186aa 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteVersion] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteVersion_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_DeleteVersion] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteVersion_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go index eb83220bb55..ec4ed52d136 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetFile] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetFile_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetFile] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetFile_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go index 76572176845..27acdd9aa38 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetIamPolicy] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetIamPolicy] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetIamPolicy_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go index 25d3447f314..8951a8b00dd 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetPackage] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetPackage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetPackage] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetPackage_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go index 81f5a732b9d..c49f7066633 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetRepository] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetRepository_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetRepository] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetRepository_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go index c3e3b94c8f2..7ddeb06fb3c 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetTag] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetTag] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetTag_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go index 151fbefb917..d85f6ed782d 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetVersion] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_GetVersion] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_GetVersion_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go index 9abc2d8b12e..6ef020909f3 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListFiles] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListFiles_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListFiles] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_ListFiles_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go index a055131e03d..dd826dcd9b7 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListPackages] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListPackages_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListPackages] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_ListPackages_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go index d41f25a608a..a0dca71c6b9 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListRepositories] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListRepositories_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListRepositories] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_ListRepositories_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go index ba2df6cc110..0ae334b56b7 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListTags] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListTags_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListTags] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_ListTags_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go index 4cad25e0eae..309d5e9eadc 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListVersions] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListVersions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_ListVersions] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_ListVersions_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/NewClient/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/NewClient/main.go deleted file mode 100644 index 17de31354d5..00000000000 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START artifactregistry_generated_artifactregistry_apiv1beta2_NewClient] - -package main - -import ( - "context" - - artifactregistry "cloud.google.com/go/artifactregistry/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := artifactregistry.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END artifactregistry_generated_artifactregistry_apiv1beta2_NewClient] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go index 8dc7694c314..b2f01105fa5 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_SetIamPolicy] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_SetIamPolicy] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_SetIamPolicy_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go index 56e3dabc7ab..9110afa0969 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_TestIamPermissions] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_TestIamPermissions] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_TestIamPermissions_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go index e2a725c4fa3..3a0acb37dd4 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_UpdateRepository] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateRepository_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_UpdateRepository] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateRepository_sync] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go index cea749ebea6..0c6b1953bdb 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START artifactregistry_generated_artifactregistry_apiv1beta2_Client_UpdateTag] +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END artifactregistry_generated_artifactregistry_apiv1beta2_Client_UpdateTag] +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateTag_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go index ee77a6275d7..f6a2caaa164 100644 --- a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_AnalyzeIamPolicy] +// [START cloudasset_v1_generated_AssetService_AnalyzeIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_AnalyzeIamPolicy] +// [END cloudasset_v1_generated_AssetService_AnalyzeIamPolicy_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go index 2c0bc504d9a..9d5868c88a7 100644 --- a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_AnalyzeIamPolicyLongrunning] +// [START cloudasset_v1_generated_AssetService_AnalyzeIamPolicyLongrunning_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_AnalyzeIamPolicyLongrunning] +// [END cloudasset_v1_generated_AssetService_AnalyzeIamPolicyLongrunning_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go b/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go index 46f3d9de0b9..cfd80a2e10e 100644 --- a/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_BatchGetAssetsHistory] +// [START cloudasset_v1_generated_AssetService_BatchGetAssetsHistory_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_BatchGetAssetsHistory] +// [END cloudasset_v1_generated_AssetService_BatchGetAssetsHistory_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go index 4eb4cacfb35..69d19093a62 100644 --- a/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_CreateFeed] +// [START cloudasset_v1_generated_AssetService_CreateFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_CreateFeed] +// [END cloudasset_v1_generated_AssetService_CreateFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go index 652e532b97c..f93f72c5175 100644 --- a/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_DeleteFeed] +// [START cloudasset_v1_generated_AssetService_DeleteFeed_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudasset_generated_asset_apiv1_Client_DeleteFeed] +// [END cloudasset_v1_generated_AssetService_DeleteFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go b/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go index 17a4dcbfff7..66ac2cda9df 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_ExportAssets] +// [START cloudasset_v1_generated_AssetService_ExportAssets_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_ExportAssets] +// [END cloudasset_v1_generated_AssetService_ExportAssets_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go index 42dec170c51..fcc299bbcc9 100644 --- a/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_GetFeed] +// [START cloudasset_v1_generated_AssetService_GetFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_GetFeed] +// [END cloudasset_v1_generated_AssetService_GetFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go b/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go index 66ff2b9a3d4..6b7d959d54a 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_ListFeeds] +// [START cloudasset_v1_generated_AssetService_ListFeeds_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_ListFeeds] +// [END cloudasset_v1_generated_AssetService_ListFeeds_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/NewClient/main.go b/internal/generated/snippets/asset/apiv1/Client/NewClient/main.go deleted file mode 100644 index 8c551fa5909..00000000000 --- a/internal/generated/snippets/asset/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudasset_generated_asset_apiv1_NewClient] - -package main - -import ( - "context" - - asset "cloud.google.com/go/asset/apiv1" -) - -func main() { - ctx := context.Background() - c, err := asset.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudasset_generated_asset_apiv1_NewClient] diff --git a/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go b/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go index ebb7375ba53..b4c57a5d773 100644 --- a/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_SearchAllIamPolicies] +// [START cloudasset_v1_generated_AssetService_SearchAllIamPolicies_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudasset_generated_asset_apiv1_Client_SearchAllIamPolicies] +// [END cloudasset_v1_generated_AssetService_SearchAllIamPolicies_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go b/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go index 70fcc9fc3bd..22392285b69 100644 --- a/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_SearchAllResources] +// [START cloudasset_v1_generated_AssetService_SearchAllResources_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudasset_generated_asset_apiv1_Client_SearchAllResources] +// [END cloudasset_v1_generated_AssetService_SearchAllResources_sync] diff --git a/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go index 64c2880511c..869c02aafd1 100644 --- a/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1_Client_UpdateFeed] +// [START cloudasset_v1_generated_AssetService_UpdateFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1_Client_UpdateFeed] +// [END cloudasset_v1_generated_AssetService_UpdateFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go index f3d646a1fe6..b6a504f483c 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p2beta1_Client_CreateFeed] +// [START cloudasset_v1p2beta1_generated_AssetService_CreateFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1p2beta1_Client_CreateFeed] +// [END cloudasset_v1p2beta1_generated_AssetService_CreateFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go index f3a9c9b4576..04d14e16279 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p2beta1_Client_DeleteFeed] +// [START cloudasset_v1p2beta1_generated_AssetService_DeleteFeed_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudasset_generated_asset_apiv1p2beta1_Client_DeleteFeed] +// [END cloudasset_v1p2beta1_generated_AssetService_DeleteFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go index 746a011f7bc..1a22853fbd9 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p2beta1_Client_GetFeed] +// [START cloudasset_v1p2beta1_generated_AssetService_GetFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1p2beta1_Client_GetFeed] +// [END cloudasset_v1p2beta1_generated_AssetService_GetFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go index a70f9b61686..d33428ba5fb 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p2beta1_Client_ListFeeds] +// [START cloudasset_v1p2beta1_generated_AssetService_ListFeeds_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1p2beta1_Client_ListFeeds] +// [END cloudasset_v1p2beta1_generated_AssetService_ListFeeds_sync] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/NewClient/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/NewClient/main.go deleted file mode 100644 index fe910e32042..00000000000 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudasset_generated_asset_apiv1p2beta1_NewClient] - -package main - -import ( - "context" - - asset "cloud.google.com/go/asset/apiv1p2beta1" -) - -func main() { - ctx := context.Background() - c, err := asset.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudasset_generated_asset_apiv1p2beta1_NewClient] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go index 1036340274d..281b749c23e 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p2beta1_Client_UpdateFeed] +// [START cloudasset_v1p2beta1_generated_AssetService_UpdateFeed_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudasset_generated_asset_apiv1p2beta1_Client_UpdateFeed] +// [END cloudasset_v1p2beta1_generated_AssetService_UpdateFeed_sync] diff --git a/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go b/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go index cad60444720..181e68b7af2 100644 --- a/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go +++ b/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudasset_generated_asset_apiv1p5beta1_Client_ListAssets] +// [START cloudasset_v1p5beta1_generated_AssetService_ListAssets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudasset_generated_asset_apiv1p5beta1_Client_ListAssets] +// [END cloudasset_v1p5beta1_generated_AssetService_ListAssets_sync] diff --git a/internal/generated/snippets/asset/apiv1p5beta1/Client/NewClient/main.go b/internal/generated/snippets/asset/apiv1p5beta1/Client/NewClient/main.go deleted file mode 100644 index 7d25a286e44..00000000000 --- a/internal/generated/snippets/asset/apiv1p5beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudasset_generated_asset_apiv1p5beta1_NewClient] - -package main - -import ( - "context" - - asset "cloud.google.com/go/asset/apiv1p5beta1" -) - -func main() { - ctx := context.Background() - c, err := asset.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudasset_generated_asset_apiv1p5beta1_NewClient] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go index 27564c20590..b31f90054a5 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_CreateWorkload] +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_CreateWorkload] +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_sync] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go index b65a27e96af..37b9280f386 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_DeleteWorkload] +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_DeleteWorkload_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_DeleteWorkload] +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_DeleteWorkload_sync] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go index 6b1f91ffd57..f059f210d44 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_GetWorkload] +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_GetWorkload_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_GetWorkload] +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_GetWorkload_sync] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go index fcd399de9dd..c575454e54c 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_ListWorkloads] +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_ListWorkloads] +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_sync] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index 5ed774e812d..00000000000 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_NewClient] - -package main - -import ( - "context" - - assuredworkloads "cloud.google.com/go/assuredworkloads/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := assuredworkloads.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go index 0a190bd540d..b56ed034326 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_UpdateWorkload] +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_UpdateWorkload_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END assuredworkloads_generated_assuredworkloads_apiv1beta1_Client_UpdateWorkload] +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_UpdateWorkload_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go index 8d7cb090e6c..f09ffa3bcfb 100644 --- a/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_CreateDataset] +// [START automl_v1_generated_AutoMl_CreateDataset_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_CreateDataset] +// [END automl_v1_generated_AutoMl_CreateDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go b/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go index ab4d5720dcc..e1b0b60e7a2 100644 --- a/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_CreateModel] +// [START automl_v1_generated_AutoMl_CreateModel_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_CreateModel] +// [END automl_v1_generated_AutoMl_CreateModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go index d30e8062293..cc0e5fe22f1 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_DeleteDataset] +// [START automl_v1_generated_AutoMl_DeleteDataset_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_DeleteDataset] +// [END automl_v1_generated_AutoMl_DeleteDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go b/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go index 1bb6adfe97a..83bf2817df9 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_DeleteModel] +// [START automl_v1_generated_AutoMl_DeleteModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_DeleteModel] +// [END automl_v1_generated_AutoMl_DeleteModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go b/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go index 64828086398..65d57339be7 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_DeployModel] +// [START automl_v1_generated_AutoMl_DeployModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_DeployModel] +// [END automl_v1_generated_AutoMl_DeployModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go b/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go index 894ae1483ec..c779d8157b6 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ExportData] +// [START automl_v1_generated_AutoMl_ExportData_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ExportData] +// [END automl_v1_generated_AutoMl_ExportData_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go b/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go index 8d88bb09fbe..38c6fe86b77 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ExportModel] +// [START automl_v1_generated_AutoMl_ExportModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ExportModel] +// [END automl_v1_generated_AutoMl_ExportModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go b/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go index 3096e9285d5..e30a5884561 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_GetAnnotationSpec] +// [START automl_v1_generated_AutoMl_GetAnnotationSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_GetAnnotationSpec] +// [END automl_v1_generated_AutoMl_GetAnnotationSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go index ee79cbf330a..44ad32fa35b 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_GetDataset] +// [START automl_v1_generated_AutoMl_GetDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_GetDataset] +// [END automl_v1_generated_AutoMl_GetDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go b/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go index 11545cb39eb..7e595086f08 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_GetModel] +// [START automl_v1_generated_AutoMl_GetModel_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_GetModel] +// [END automl_v1_generated_AutoMl_GetModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go b/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go index ce415bb9718..252e287dd37 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_GetModelEvaluation] +// [START automl_v1_generated_AutoMl_GetModelEvaluation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_GetModelEvaluation] +// [END automl_v1_generated_AutoMl_GetModelEvaluation_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go b/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go index 548e7e30643..d7f4a7d0157 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ImportData] +// [START automl_v1_generated_AutoMl_ImportData_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ImportData] +// [END automl_v1_generated_AutoMl_ImportData_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go b/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go index 60d99debf2a..43f4b0b7436 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ListDatasets] +// [START automl_v1_generated_AutoMl_ListDatasets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ListDatasets] +// [END automl_v1_generated_AutoMl_ListDatasets_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go b/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go index eab70f98507..c4ea216f97c 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ListModelEvaluations] +// [START automl_v1_generated_AutoMl_ListModelEvaluations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ListModelEvaluations] +// [END automl_v1_generated_AutoMl_ListModelEvaluations_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go b/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go index 289c661ef93..142a744da0d 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_ListModels] +// [START automl_v1_generated_AutoMl_ListModels_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_ListModels] +// [END automl_v1_generated_AutoMl_ListModels_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/NewClient/main.go b/internal/generated/snippets/automl/apiv1/Client/NewClient/main.go deleted file mode 100644 index 1a5914651cd..00000000000 --- a/internal/generated/snippets/automl/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START automl_generated_automl_apiv1_NewClient] - -package main - -import ( - "context" - - automl "cloud.google.com/go/automl/apiv1" -) - -func main() { - ctx := context.Background() - c, err := automl.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END automl_generated_automl_apiv1_NewClient] diff --git a/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go b/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go index 72766ab1203..f5410aed46f 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_UndeployModel] +// [START automl_v1_generated_AutoMl_UndeployModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1_Client_UndeployModel] +// [END automl_v1_generated_AutoMl_UndeployModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go index 5bd269db8a7..39ff4ee4dd8 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_UpdateDataset] +// [START automl_v1_generated_AutoMl_UpdateDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_UpdateDataset] +// [END automl_v1_generated_AutoMl_UpdateDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go b/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go index 71df5da390d..8fd95806f41 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_Client_UpdateModel] +// [START automl_v1_generated_AutoMl_UpdateModel_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_Client_UpdateModel] +// [END automl_v1_generated_AutoMl_UpdateModel_sync] diff --git a/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go b/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go index 00803d44cb2..06851d12803 100644 --- a/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go +++ b/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_PredictionClient_BatchPredict] +// [START automl_v1_generated_PredictionService_BatchPredict_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_PredictionClient_BatchPredict] +// [END automl_v1_generated_PredictionService_BatchPredict_sync] diff --git a/internal/generated/snippets/automl/apiv1/PredictionClient/NewPredictionClient/main.go b/internal/generated/snippets/automl/apiv1/PredictionClient/NewPredictionClient/main.go deleted file mode 100644 index b487b69ac5c..00000000000 --- a/internal/generated/snippets/automl/apiv1/PredictionClient/NewPredictionClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START automl_generated_automl_apiv1_NewPredictionClient] - -package main - -import ( - "context" - - automl "cloud.google.com/go/automl/apiv1" -) - -func main() { - ctx := context.Background() - c, err := automl.NewPredictionClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END automl_generated_automl_apiv1_NewPredictionClient] diff --git a/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go b/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go index 2af07e03282..77cb3c60d70 100644 --- a/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1_PredictionClient_Predict] +// [START automl_v1_generated_PredictionService_Predict_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1_PredictionClient_Predict] +// [END automl_v1_generated_PredictionService_Predict_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go index 414de035e59..43245c40c08 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_CreateDataset] +// [START automl_v1beta1_generated_AutoMl_CreateDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_CreateDataset] +// [END automl_v1beta1_generated_AutoMl_CreateDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go index a46edeb39d4..2a228ba936f 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_CreateModel] +// [START automl_v1beta1_generated_AutoMl_CreateModel_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_CreateModel] +// [END automl_v1beta1_generated_AutoMl_CreateModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go index 3b7d2043ca7..2ddaef2c04d 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_DeleteDataset] +// [START automl_v1beta1_generated_AutoMl_DeleteDataset_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_DeleteDataset] +// [END automl_v1beta1_generated_AutoMl_DeleteDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go index aef1c6bd0c7..882a22c113d 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_DeleteModel] +// [START automl_v1beta1_generated_AutoMl_DeleteModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_DeleteModel] +// [END automl_v1beta1_generated_AutoMl_DeleteModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go index bf67e43351c..5656a8ac01e 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_DeployModel] +// [START automl_v1beta1_generated_AutoMl_DeployModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_DeployModel] +// [END automl_v1beta1_generated_AutoMl_DeployModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go index e6bbcb827c3..f36bbc9a4d3 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ExportData] +// [START automl_v1beta1_generated_AutoMl_ExportData_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ExportData] +// [END automl_v1beta1_generated_AutoMl_ExportData_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go index 269d19969e1..adabc7c4c26 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ExportEvaluatedExamples] +// [START automl_v1beta1_generated_AutoMl_ExportEvaluatedExamples_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ExportEvaluatedExamples] +// [END automl_v1beta1_generated_AutoMl_ExportEvaluatedExamples_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go index 8e2d24b26a4..44ec29c94ff 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ExportModel] +// [START automl_v1beta1_generated_AutoMl_ExportModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ExportModel] +// [END automl_v1beta1_generated_AutoMl_ExportModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go index 05fd1f7f4ea..652cf588e30 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetAnnotationSpec] +// [START automl_v1beta1_generated_AutoMl_GetAnnotationSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetAnnotationSpec] +// [END automl_v1beta1_generated_AutoMl_GetAnnotationSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go index 6632311ab69..6cca054b1a6 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetColumnSpec] +// [START automl_v1beta1_generated_AutoMl_GetColumnSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetColumnSpec] +// [END automl_v1beta1_generated_AutoMl_GetColumnSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go index 55945956400..e011cbb755b 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetDataset] +// [START automl_v1beta1_generated_AutoMl_GetDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetDataset] +// [END automl_v1beta1_generated_AutoMl_GetDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go index b5a4bfc83a7..a52311ee065 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetModel] +// [START automl_v1beta1_generated_AutoMl_GetModel_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetModel] +// [END automl_v1beta1_generated_AutoMl_GetModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go index 67622cacf99..847dd359410 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetModelEvaluation] +// [START automl_v1beta1_generated_AutoMl_GetModelEvaluation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetModelEvaluation] +// [END automl_v1beta1_generated_AutoMl_GetModelEvaluation_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go index 8b688166d32..18f6fb615cc 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_GetTableSpec] +// [START automl_v1beta1_generated_AutoMl_GetTableSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_GetTableSpec] +// [END automl_v1beta1_generated_AutoMl_GetTableSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go index 135a65e277e..ca44622e3a1 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ImportData] +// [START automl_v1beta1_generated_AutoMl_ImportData_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ImportData] +// [END automl_v1beta1_generated_AutoMl_ImportData_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go index 5ee67a64713..0bd4cceb6d2 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ListColumnSpecs] +// [START automl_v1beta1_generated_AutoMl_ListColumnSpecs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ListColumnSpecs] +// [END automl_v1beta1_generated_AutoMl_ListColumnSpecs_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go index 32dd231bd10..1182ae50182 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ListDatasets] +// [START automl_v1beta1_generated_AutoMl_ListDatasets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ListDatasets] +// [END automl_v1beta1_generated_AutoMl_ListDatasets_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go index f95b381f54a..ab380087575 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ListModelEvaluations] +// [START automl_v1beta1_generated_AutoMl_ListModelEvaluations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ListModelEvaluations] +// [END automl_v1beta1_generated_AutoMl_ListModelEvaluations_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go index 016ba4a3fb7..e278ec5fbc8 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ListModels] +// [START automl_v1beta1_generated_AutoMl_ListModels_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ListModels] +// [END automl_v1beta1_generated_AutoMl_ListModels_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go index 6553175a7cc..e411c4b5b50 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_ListTableSpecs] +// [START automl_v1beta1_generated_AutoMl_ListTableSpecs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_ListTableSpecs] +// [END automl_v1beta1_generated_AutoMl_ListTableSpecs_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index fb1da5a7439..00000000000 --- a/internal/generated/snippets/automl/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START automl_generated_automl_apiv1beta1_NewClient] - -package main - -import ( - "context" - - automl "cloud.google.com/go/automl/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := automl.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END automl_generated_automl_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go index ae361390372..6b05a2de234 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_UndeployModel] +// [START automl_v1beta1_generated_AutoMl_UndeployModel_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END automl_generated_automl_apiv1beta1_Client_UndeployModel] +// [END automl_v1beta1_generated_AutoMl_UndeployModel_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go index f17dc4b4e91..23b3d58d5ef 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_UpdateColumnSpec] +// [START automl_v1beta1_generated_AutoMl_UpdateColumnSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_UpdateColumnSpec] +// [END automl_v1beta1_generated_AutoMl_UpdateColumnSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go index 2cc313d27f6..cd16a2fd86b 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_UpdateDataset] +// [START automl_v1beta1_generated_AutoMl_UpdateDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_UpdateDataset] +// [END automl_v1beta1_generated_AutoMl_UpdateDataset_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go index 80172a8b167..0720723469b 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_Client_UpdateTableSpec] +// [START automl_v1beta1_generated_AutoMl_UpdateTableSpec_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_Client_UpdateTableSpec] +// [END automl_v1beta1_generated_AutoMl_UpdateTableSpec_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go index b2ec4d60759..cc1eb6d8c1d 100644 --- a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_PredictionClient_BatchPredict] +// [START automl_v1beta1_generated_PredictionService_BatchPredict_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_PredictionClient_BatchPredict] +// [END automl_v1beta1_generated_PredictionService_BatchPredict_sync] diff --git a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/NewPredictionClient/main.go b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/NewPredictionClient/main.go deleted file mode 100644 index 68e22d42145..00000000000 --- a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/NewPredictionClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START automl_generated_automl_apiv1beta1_NewPredictionClient] - -package main - -import ( - "context" - - automl "cloud.google.com/go/automl/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := automl.NewPredictionClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END automl_generated_automl_apiv1beta1_NewPredictionClient] diff --git a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go index 7d5f941b593..466d4da3a00 100644 --- a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START automl_generated_automl_apiv1beta1_PredictionClient_Predict] +// [START automl_v1beta1_generated_PredictionService_Predict_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END automl_generated_automl_apiv1beta1_PredictionClient_Predict] +// [END automl_v1beta1_generated_PredictionService_Predict_sync] diff --git a/internal/generated/snippets/bigquery/Client/Dataset/main.go b/internal/generated/snippets/bigquery/Client/Dataset/main.go deleted file mode 100644 index 6de99d0ceb3..00000000000 --- a/internal/generated/snippets/bigquery/Client/Dataset/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Dataset] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - fmt.Println(ds) -} - -// [END bigquery_generated_bigquery_Client_Dataset] diff --git a/internal/generated/snippets/bigquery/Client/DatasetInProject/main.go b/internal/generated/snippets/bigquery/Client/DatasetInProject/main.go deleted file mode 100644 index 0a19f28dbc3..00000000000 --- a/internal/generated/snippets/bigquery/Client/DatasetInProject/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_DatasetInProject] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.DatasetInProject("their-project-id", "their-dataset") - fmt.Println(ds) -} - -// [END bigquery_generated_bigquery_Client_DatasetInProject] diff --git a/internal/generated/snippets/bigquery/Client/Datasets/main.go b/internal/generated/snippets/bigquery/Client/Datasets/main.go deleted file mode 100644 index b2527311981..00000000000 --- a/internal/generated/snippets/bigquery/Client/Datasets/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Datasets] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Datasets(ctx) - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Client_Datasets] diff --git a/internal/generated/snippets/bigquery/Client/DatasetsInProject/main.go b/internal/generated/snippets/bigquery/Client/DatasetsInProject/main.go deleted file mode 100644 index 578edd1b01e..00000000000 --- a/internal/generated/snippets/bigquery/Client/DatasetsInProject/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_DatasetsInProject] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.DatasetsInProject(ctx, "their-project-id") - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Client_DatasetsInProject] diff --git a/internal/generated/snippets/bigquery/Client/JobFromID/main.go b/internal/generated/snippets/bigquery/Client/JobFromID/main.go deleted file mode 100644 index 6e505ce482b..00000000000 --- a/internal/generated/snippets/bigquery/Client/JobFromID/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_JobFromID] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func getJobID() string { return "" } - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - jobID := getJobID() // Get a job ID using Job.ID, the console or elsewhere. - job, err := client.JobFromID(ctx, jobID) - if err != nil { - // TODO: Handle error. - } - fmt.Println(job.LastStatus()) // Display the job's status. -} - -// [END bigquery_generated_bigquery_Client_JobFromID] diff --git a/internal/generated/snippets/bigquery/Client/Jobs/main.go b/internal/generated/snippets/bigquery/Client/Jobs/main.go deleted file mode 100644 index dd792a81415..00000000000 --- a/internal/generated/snippets/bigquery/Client/Jobs/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Jobs] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Jobs(ctx) - it.State = bigquery.Running // list only running jobs. - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Client_Jobs] diff --git a/internal/generated/snippets/bigquery/Client/NewClient/main.go b/internal/generated/snippets/bigquery/Client/NewClient/main.go deleted file mode 100644 index 97c71da458e..00000000000 --- a/internal/generated/snippets/bigquery/Client/NewClient/main.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_NewClient] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - _ = client // TODO: Use client. -} - -// [END bigquery_generated_bigquery_NewClient] diff --git a/internal/generated/snippets/bigquery/Client/Query/encryptionKey/main.go b/internal/generated/snippets/bigquery/Client/Query/encryptionKey/main.go deleted file mode 100644 index a444f6b45c2..00000000000 --- a/internal/generated/snippets/bigquery/Client/Query/encryptionKey/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Query_encryptionKey] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select name, num from t1") - // TODO: Replace this key with a key you have created in Cloud KMS. - keyName := "projects/P/locations/L/keyRings/R/cryptoKeys/K" - q.DestinationEncryptionConfig = &bigquery.EncryptionConfig{KMSKeyName: keyName} - // TODO: set other options on the Query. - // TODO: Call Query.Run or Query.Read. -} - -// [END bigquery_generated_bigquery_Client_Query_encryptionKey] diff --git a/internal/generated/snippets/bigquery/Client/Query/main.go b/internal/generated/snippets/bigquery/Client/Query/main.go deleted file mode 100644 index 8a8803cfea4..00000000000 --- a/internal/generated/snippets/bigquery/Client/Query/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Query] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select name, num from t1") - q.DefaultProjectID = "project-id" - // TODO: set other options on the Query. - // TODO: Call Query.Run or Query.Read. -} - -// [END bigquery_generated_bigquery_Client_Query] diff --git a/internal/generated/snippets/bigquery/Client/Query/parameters/main.go b/internal/generated/snippets/bigquery/Client/Query/parameters/main.go deleted file mode 100644 index 62ec340a612..00000000000 --- a/internal/generated/snippets/bigquery/Client/Query/parameters/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Client_Query_parameters] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select num from t1 where name = @user") - q.Parameters = []bigquery.QueryParameter{ - {Name: "user", Value: "Elizabeth"}, - } - // TODO: set other options on the Query. - // TODO: Call Query.Run or Query.Read. -} - -// [END bigquery_generated_bigquery_Client_Query_parameters] diff --git a/internal/generated/snippets/bigquery/Dataset/Create/main.go b/internal/generated/snippets/bigquery/Dataset/Create/main.go deleted file mode 100644 index 240e511b07f..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Create/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Create] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - if err := ds.Create(ctx, &bigquery.DatasetMetadata{Location: "EU"}); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Dataset_Create] diff --git a/internal/generated/snippets/bigquery/Dataset/Delete/main.go b/internal/generated/snippets/bigquery/Dataset/Delete/main.go deleted file mode 100644 index 8f6be454207..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Delete/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Delete] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - if err := client.Dataset("my_dataset").Delete(ctx); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Dataset_Delete] diff --git a/internal/generated/snippets/bigquery/Dataset/Metadata/main.go b/internal/generated/snippets/bigquery/Dataset/Metadata/main.go deleted file mode 100644 index 9011e3d1701..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Metadata/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Metadata] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - md, err := client.Dataset("my_dataset").Metadata(ctx) - if err != nil { - // TODO: Handle error. - } - fmt.Println(md) -} - -// [END bigquery_generated_bigquery_Dataset_Metadata] diff --git a/internal/generated/snippets/bigquery/Dataset/Table/main.go b/internal/generated/snippets/bigquery/Dataset/Table/main.go deleted file mode 100644 index 83c5537b892..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Table/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Table] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - // Table creates a reference to the table. It does not create the actual - // table in BigQuery; to do so, use Table.Create. - t := client.Dataset("my_dataset").Table("my_table") - fmt.Println(t) -} - -// [END bigquery_generated_bigquery_Dataset_Table] diff --git a/internal/generated/snippets/bigquery/Dataset/Tables/main.go b/internal/generated/snippets/bigquery/Dataset/Tables/main.go deleted file mode 100644 index 4c7b48c6e24..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Tables/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Tables] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Dataset("my_dataset").Tables(ctx) - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Dataset_Tables] diff --git a/internal/generated/snippets/bigquery/Dataset/Update/blindWrite/main.go b/internal/generated/snippets/bigquery/Dataset/Update/blindWrite/main.go deleted file mode 100644 index f856ac46f94..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Update/blindWrite/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Update_blindWrite] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - md, err := client.Dataset("my_dataset").Update(ctx, bigquery.DatasetMetadataToUpdate{Name: "blind"}, "") - if err != nil { - // TODO: Handle error. - } - fmt.Println(md) -} - -// [END bigquery_generated_bigquery_Dataset_Update_blindWrite] diff --git a/internal/generated/snippets/bigquery/Dataset/Update/readModifyWrite/main.go b/internal/generated/snippets/bigquery/Dataset/Update/readModifyWrite/main.go deleted file mode 100644 index f3f6e010c0d..00000000000 --- a/internal/generated/snippets/bigquery/Dataset/Update/readModifyWrite/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Dataset_Update_readModifyWrite] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - md, err := ds.Metadata(ctx) - if err != nil { - // TODO: Handle error. - } - md2, err := ds.Update(ctx, - bigquery.DatasetMetadataToUpdate{Name: "new " + md.Name}, - md.ETag) - if err != nil { - // TODO: Handle error. - } - fmt.Println(md2) -} - -// [END bigquery_generated_bigquery_Dataset_Update_readModifyWrite] diff --git a/internal/generated/snippets/bigquery/DatasetIterator/Next/main.go b/internal/generated/snippets/bigquery/DatasetIterator/Next/main.go deleted file mode 100644 index 6ea2d305362..00000000000 --- a/internal/generated/snippets/bigquery/DatasetIterator/Next/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_DatasetIterator_Next] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Datasets(ctx) - for { - ds, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(ds) - } -} - -// [END bigquery_generated_bigquery_DatasetIterator_Next] diff --git a/internal/generated/snippets/bigquery/GCSReference/NewGCSReference/main.go b/internal/generated/snippets/bigquery/GCSReference/NewGCSReference/main.go deleted file mode 100644 index 5d1179f9e78..00000000000 --- a/internal/generated/snippets/bigquery/GCSReference/NewGCSReference/main.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_NewGCSReference] - -package main - -import ( - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - gcsRef := bigquery.NewGCSReference("gs://my-bucket/my-object") - fmt.Println(gcsRef) -} - -// [END bigquery_generated_bigquery_NewGCSReference] diff --git a/internal/generated/snippets/bigquery/Inserter/Put/main.go b/internal/generated/snippets/bigquery/Inserter/Put/main.go deleted file mode 100644 index 1040177ad01..00000000000 --- a/internal/generated/snippets/bigquery/Inserter/Put/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Inserter_Put] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -type Item struct { - Name string - Size float64 - Count int -} - -// Save implements the ValueSaver interface. -func (i *Item) Save() (map[string]bigquery.Value, string, error) { - return map[string]bigquery.Value{ - "Name": i.Name, - "Size": i.Size, - "Count": i.Count, - }, "", nil -} - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - // Item implements the ValueSaver interface. - items := []*Item{ - {Name: "n1", Size: 32.6, Count: 7}, - {Name: "n2", Size: 4, Count: 2}, - {Name: "n3", Size: 101.5, Count: 1}, - } - if err := ins.Put(ctx, items); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Inserter_Put] diff --git a/internal/generated/snippets/bigquery/Inserter/Put/struct/main.go b/internal/generated/snippets/bigquery/Inserter/Put/struct/main.go deleted file mode 100644 index 1b10af1c897..00000000000 --- a/internal/generated/snippets/bigquery/Inserter/Put/struct/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Inserter_Put_struct] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - - type score struct { - Name string - Num int - } - scores := []score{ - {Name: "n1", Num: 12}, - {Name: "n2", Num: 31}, - {Name: "n3", Num: 7}, - } - // Schema is inferred from the score type. - if err := ins.Put(ctx, scores); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Inserter_Put_struct] diff --git a/internal/generated/snippets/bigquery/Inserter/Put/structSaver/main.go b/internal/generated/snippets/bigquery/Inserter/Put/structSaver/main.go deleted file mode 100644 index 650253fb843..00000000000 --- a/internal/generated/snippets/bigquery/Inserter/Put/structSaver/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Inserter_Put_structSaver] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -var schema bigquery.Schema - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - - type score struct { - Name string - Num int - } - - // Assume schema holds the table's schema. - savers := []*bigquery.StructSaver{ - {Struct: score{Name: "n1", Num: 12}, Schema: schema, InsertID: "id1"}, - {Struct: score{Name: "n2", Num: 31}, Schema: schema, InsertID: "id2"}, - {Struct: score{Name: "n3", Num: 7}, Schema: schema, InsertID: "id3"}, - } - if err := ins.Put(ctx, savers); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Inserter_Put_structSaver] diff --git a/internal/generated/snippets/bigquery/Inserter/Put/valuesSaver/main.go b/internal/generated/snippets/bigquery/Inserter/Put/valuesSaver/main.go deleted file mode 100644 index 2c5e228812a..00000000000 --- a/internal/generated/snippets/bigquery/Inserter/Put/valuesSaver/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Inserter_Put_valuesSaver] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -var schema bigquery.Schema - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - - var vss []*bigquery.ValuesSaver - for i, name := range []string{"n1", "n2", "n3"} { - // Assume schema holds the table's schema. - vss = append(vss, &bigquery.ValuesSaver{ - Schema: schema, - InsertID: name, - Row: []bigquery.Value{name, int64(i)}, - }) - } - - if err := ins.Put(ctx, vss); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Inserter_Put_valuesSaver] diff --git a/internal/generated/snippets/bigquery/Job/Config/main.go b/internal/generated/snippets/bigquery/Job/Config/main.go deleted file mode 100644 index e34c41436e7..00000000000 --- a/internal/generated/snippets/bigquery/Job/Config/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Job_Config] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - job, err := ds.Table("t1").CopierFrom(ds.Table("t2")).Run(ctx) - if err != nil { - // TODO: Handle error. - } - jc, err := job.Config() - if err != nil { - // TODO: Handle error. - } - copyConfig := jc.(*bigquery.CopyConfig) - fmt.Println(copyConfig.Dst, copyConfig.CreateDisposition) -} - -// [END bigquery_generated_bigquery_Job_Config] diff --git a/internal/generated/snippets/bigquery/Job/Read/main.go b/internal/generated/snippets/bigquery/Job/Read/main.go deleted file mode 100644 index f02e0dbbcc7..00000000000 --- a/internal/generated/snippets/bigquery/Job/Read/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Job_Read] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select name, num from t1") - // Call Query.Run to get a Job, then call Read on the job. - // Note: Query.Read is a shorthand for this. - job, err := q.Run(ctx) - if err != nil { - // TODO: Handle error. - } - it, err := job.Read(ctx) - if err != nil { - // TODO: Handle error. - } - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Job_Read] diff --git a/internal/generated/snippets/bigquery/Job/Wait/main.go b/internal/generated/snippets/bigquery/Job/Wait/main.go deleted file mode 100644 index dfaf29bfad2..00000000000 --- a/internal/generated/snippets/bigquery/Job/Wait/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Job_Wait] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - job, err := ds.Table("t1").CopierFrom(ds.Table("t2")).Run(ctx) - if err != nil { - // TODO: Handle error. - } - status, err := job.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - if status.Err() != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Job_Wait] diff --git a/internal/generated/snippets/bigquery/Query/Read/main.go b/internal/generated/snippets/bigquery/Query/Read/main.go deleted file mode 100644 index b5d5c7dc7b1..00000000000 --- a/internal/generated/snippets/bigquery/Query/Read/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Query_Read] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select name, num from t1") - it, err := q.Read(ctx) - if err != nil { - // TODO: Handle error. - } - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Query_Read] diff --git a/internal/generated/snippets/bigquery/RowIterator/Next/main.go b/internal/generated/snippets/bigquery/RowIterator/Next/main.go deleted file mode 100644 index 0f293132fe6..00000000000 --- a/internal/generated/snippets/bigquery/RowIterator/Next/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_RowIterator_Next] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - q := client.Query("select name, num from t1") - it, err := q.Read(ctx) - if err != nil { - // TODO: Handle error. - } - for { - var row []bigquery.Value - err := it.Next(&row) - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(row) - } -} - -// [END bigquery_generated_bigquery_RowIterator_Next] diff --git a/internal/generated/snippets/bigquery/RowIterator/Next/struct/main.go b/internal/generated/snippets/bigquery/RowIterator/Next/struct/main.go deleted file mode 100644 index 68b8900aa6e..00000000000 --- a/internal/generated/snippets/bigquery/RowIterator/Next/struct/main.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_RowIterator_Next_struct] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - type score struct { - Name string - Num int - } - - q := client.Query("select name, num from t1") - it, err := q.Read(ctx) - if err != nil { - // TODO: Handle error. - } - for { - var s score - err := it.Next(&s) - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(s) - } -} - -// [END bigquery_generated_bigquery_RowIterator_Next_struct] diff --git a/internal/generated/snippets/bigquery/Schema/InferSchema/main.go b/internal/generated/snippets/bigquery/Schema/InferSchema/main.go deleted file mode 100644 index 2e02e3b3bb5..00000000000 --- a/internal/generated/snippets/bigquery/Schema/InferSchema/main.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_InferSchema] - -package main - -import ( - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - type Item struct { - Name string - Size float64 - Count int - } - schema, err := bigquery.InferSchema(Item{}) - if err != nil { - fmt.Println(err) - // TODO: Handle error. - } - for _, fs := range schema { - fmt.Println(fs.Name, fs.Type) - } -} - -// [END bigquery_generated_bigquery_InferSchema] diff --git a/internal/generated/snippets/bigquery/Schema/InferSchema/tags/main.go b/internal/generated/snippets/bigquery/Schema/InferSchema/tags/main.go deleted file mode 100644 index 0f4cc4363ea..00000000000 --- a/internal/generated/snippets/bigquery/Schema/InferSchema/tags/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_InferSchema_tags] - -package main - -import ( - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - type Item struct { - Name string - Size float64 - Count int `bigquery:"number"` - Secret []byte `bigquery:"-"` - Optional bigquery.NullBool - OptBytes []byte `bigquery:",nullable"` - } - schema, err := bigquery.InferSchema(Item{}) - if err != nil { - fmt.Println(err) - // TODO: Handle error. - } - for _, fs := range schema { - fmt.Println(fs.Name, fs.Type, fs.Required) - } -} - -// [END bigquery_generated_bigquery_InferSchema_tags] diff --git a/internal/generated/snippets/bigquery/Table/CopierFrom/main.go b/internal/generated/snippets/bigquery/Table/CopierFrom/main.go deleted file mode 100644 index b4d52f093bd..00000000000 --- a/internal/generated/snippets/bigquery/Table/CopierFrom/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_CopierFrom] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ds := client.Dataset("my_dataset") - c := ds.Table("combined").CopierFrom(ds.Table("t1"), ds.Table("t2")) - c.WriteDisposition = bigquery.WriteTruncate - // TODO: set other options on the Copier. - job, err := c.Run(ctx) - if err != nil { - // TODO: Handle error. - } - status, err := job.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - if status.Err() != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Table_CopierFrom] diff --git a/internal/generated/snippets/bigquery/Table/Create/encryptionKey/main.go b/internal/generated/snippets/bigquery/Table/Create/encryptionKey/main.go deleted file mode 100644 index 1f9976e6479..00000000000 --- a/internal/generated/snippets/bigquery/Table/Create/encryptionKey/main.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Create_encryptionKey] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - // Infer table schema from a Go type. - schema, err := bigquery.InferSchema(Item{}) - if err != nil { - // TODO: Handle error. - } - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - t := client.Dataset("my_dataset").Table("new-table") - - // TODO: Replace this key with a key you have created in Cloud KMS. - keyName := "projects/P/locations/L/keyRings/R/cryptoKeys/K" - if err := t.Create(ctx, - &bigquery.TableMetadata{ - Name: "My New Table", - Schema: schema, - EncryptionConfig: &bigquery.EncryptionConfig{KMSKeyName: keyName}, - }); err != nil { - // TODO: Handle error. - } -} - -type Item struct { - Name string - Size float64 - Count int -} - -// Save implements the ValueSaver interface. -func (i *Item) Save() (map[string]bigquery.Value, string, error) { - return map[string]bigquery.Value{ - "Name": i.Name, - "Size": i.Size, - "Count": i.Count, - }, "", nil -} - -// [END bigquery_generated_bigquery_Table_Create_encryptionKey] diff --git a/internal/generated/snippets/bigquery/Table/Create/initialize/main.go b/internal/generated/snippets/bigquery/Table/Create/initialize/main.go deleted file mode 100644 index 17ada83af26..00000000000 --- a/internal/generated/snippets/bigquery/Table/Create/initialize/main.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Create_initialize] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - // Infer table schema from a Go type. - schema, err := bigquery.InferSchema(Item{}) - if err != nil { - // TODO: Handle error. - } - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - t := client.Dataset("my_dataset").Table("new-table") - if err := t.Create(ctx, - &bigquery.TableMetadata{ - Name: "My New Table", - Schema: schema, - ExpirationTime: time.Now().Add(24 * time.Hour), - }); err != nil { - // TODO: Handle error. - } -} - -type Item struct { - Name string - Size float64 - Count int -} - -// Save implements the ValueSaver interface. -func (i *Item) Save() (map[string]bigquery.Value, string, error) { - return map[string]bigquery.Value{ - "Name": i.Name, - "Size": i.Size, - "Count": i.Count, - }, "", nil -} - -// [END bigquery_generated_bigquery_Table_Create_initialize] diff --git a/internal/generated/snippets/bigquery/Table/Create/main.go b/internal/generated/snippets/bigquery/Table/Create/main.go deleted file mode 100644 index f35ed734a4e..00000000000 --- a/internal/generated/snippets/bigquery/Table/Create/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Create] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - t := client.Dataset("my_dataset").Table("new-table") - if err := t.Create(ctx, nil); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Table_Create] diff --git a/internal/generated/snippets/bigquery/Table/Delete/main.go b/internal/generated/snippets/bigquery/Table/Delete/main.go deleted file mode 100644 index 408242c965a..00000000000 --- a/internal/generated/snippets/bigquery/Table/Delete/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Delete] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - if err := client.Dataset("my_dataset").Table("my_table").Delete(ctx); err != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Table_Delete] diff --git a/internal/generated/snippets/bigquery/Table/ExtractorTo/main.go b/internal/generated/snippets/bigquery/Table/ExtractorTo/main.go deleted file mode 100644 index defcf696f03..00000000000 --- a/internal/generated/snippets/bigquery/Table/ExtractorTo/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_ExtractorTo] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - gcsRef := bigquery.NewGCSReference("gs://my-bucket/my-object") - gcsRef.FieldDelimiter = ":" - // TODO: set other options on the GCSReference. - ds := client.Dataset("my_dataset") - extractor := ds.Table("my_table").ExtractorTo(gcsRef) - extractor.DisableHeader = true - // TODO: set other options on the Extractor. - job, err := extractor.Run(ctx) - if err != nil { - // TODO: Handle error. - } - status, err := job.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - if status.Err() != nil { - // TODO: Handle error. - } -} - -// [END bigquery_generated_bigquery_Table_ExtractorTo] diff --git a/internal/generated/snippets/bigquery/Table/Inserter/main.go b/internal/generated/snippets/bigquery/Table/Inserter/main.go deleted file mode 100644 index e225dccc5d1..00000000000 --- a/internal/generated/snippets/bigquery/Table/Inserter/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Inserter] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - _ = ins // TODO: Use ins. -} - -// [END bigquery_generated_bigquery_Table_Inserter] diff --git a/internal/generated/snippets/bigquery/Table/Inserter/options/main.go b/internal/generated/snippets/bigquery/Table/Inserter/options/main.go deleted file mode 100644 index e8a6d7fdf51..00000000000 --- a/internal/generated/snippets/bigquery/Table/Inserter/options/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Inserter_options] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - ins := client.Dataset("my_dataset").Table("my_table").Inserter() - ins.SkipInvalidRows = true - ins.IgnoreUnknownValues = true - _ = ins // TODO: Use ins. -} - -// [END bigquery_generated_bigquery_Table_Inserter_options] diff --git a/internal/generated/snippets/bigquery/Table/LoaderFrom/main.go b/internal/generated/snippets/bigquery/Table/LoaderFrom/main.go deleted file mode 100644 index e28dd764a31..00000000000 --- a/internal/generated/snippets/bigquery/Table/LoaderFrom/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_LoaderFrom] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - gcsRef := bigquery.NewGCSReference("gs://my-bucket/my-object") - gcsRef.AllowJaggedRows = true - gcsRef.MaxBadRecords = 5 - gcsRef.Schema = schema - // TODO: set other options on the GCSReference. - ds := client.Dataset("my_dataset") - loader := ds.Table("my_table").LoaderFrom(gcsRef) - loader.CreateDisposition = bigquery.CreateNever - // TODO: set other options on the Loader. - job, err := loader.Run(ctx) - if err != nil { - // TODO: Handle error. - } - status, err := job.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - if status.Err() != nil { - // TODO: Handle error. - } -} - -var schema bigquery.Schema - -// [END bigquery_generated_bigquery_Table_LoaderFrom] diff --git a/internal/generated/snippets/bigquery/Table/LoaderFrom/reader/main.go b/internal/generated/snippets/bigquery/Table/LoaderFrom/reader/main.go deleted file mode 100644 index b9228a3fd53..00000000000 --- a/internal/generated/snippets/bigquery/Table/LoaderFrom/reader/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_LoaderFrom_reader] - -package main - -import ( - "context" - "os" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - f, err := os.Open("data.csv") - if err != nil { - // TODO: Handle error. - } - rs := bigquery.NewReaderSource(f) - rs.AllowJaggedRows = true - rs.MaxBadRecords = 5 - rs.Schema = schema - // TODO: set other options on the GCSReference. - ds := client.Dataset("my_dataset") - loader := ds.Table("my_table").LoaderFrom(rs) - loader.CreateDisposition = bigquery.CreateNever - // TODO: set other options on the Loader. - job, err := loader.Run(ctx) - if err != nil { - // TODO: Handle error. - } - status, err := job.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - if status.Err() != nil { - // TODO: Handle error. - } -} - -var schema bigquery.Schema - -// [END bigquery_generated_bigquery_Table_LoaderFrom_reader] diff --git a/internal/generated/snippets/bigquery/Table/Metadata/main.go b/internal/generated/snippets/bigquery/Table/Metadata/main.go deleted file mode 100644 index 88770d6e113..00000000000 --- a/internal/generated/snippets/bigquery/Table/Metadata/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Metadata] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - md, err := client.Dataset("my_dataset").Table("my_table").Metadata(ctx) - if err != nil { - // TODO: Handle error. - } - fmt.Println(md) -} - -// [END bigquery_generated_bigquery_Table_Metadata] diff --git a/internal/generated/snippets/bigquery/Table/Read/main.go b/internal/generated/snippets/bigquery/Table/Read/main.go deleted file mode 100644 index 1e6aa0f7d52..00000000000 --- a/internal/generated/snippets/bigquery/Table/Read/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Read] - -package main - -import ( - "context" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Dataset("my_dataset").Table("my_table").Read(ctx) - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END bigquery_generated_bigquery_Table_Read] diff --git a/internal/generated/snippets/bigquery/Table/Update/blindWrite/main.go b/internal/generated/snippets/bigquery/Table/Update/blindWrite/main.go deleted file mode 100644 index b97fac78196..00000000000 --- a/internal/generated/snippets/bigquery/Table/Update/blindWrite/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Update_blindWrite] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - t := client.Dataset("my_dataset").Table("my_table") - tm, err := t.Update(ctx, bigquery.TableMetadataToUpdate{ - Description: "my favorite table", - }, "") - if err != nil { - // TODO: Handle error. - } - fmt.Println(tm) -} - -// [END bigquery_generated_bigquery_Table_Update_blindWrite] diff --git a/internal/generated/snippets/bigquery/Table/Update/readModifyWrite/main.go b/internal/generated/snippets/bigquery/Table/Update/readModifyWrite/main.go deleted file mode 100644 index 241f0d49d5a..00000000000 --- a/internal/generated/snippets/bigquery/Table/Update/readModifyWrite/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_Table_Update_readModifyWrite] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - t := client.Dataset("my_dataset").Table("my_table") - md, err := t.Metadata(ctx) - if err != nil { - // TODO: Handle error. - } - md2, err := t.Update(ctx, - bigquery.TableMetadataToUpdate{Name: "new " + md.Name}, - md.ETag) - if err != nil { - // TODO: Handle error. - } - fmt.Println(md2) -} - -// [END bigquery_generated_bigquery_Table_Update_readModifyWrite] diff --git a/internal/generated/snippets/bigquery/TableIterator/Next/main.go b/internal/generated/snippets/bigquery/TableIterator/Next/main.go deleted file mode 100644 index 5a1c8395adc..00000000000 --- a/internal/generated/snippets/bigquery/TableIterator/Next/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquery_generated_bigquery_TableIterator_Next] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/bigquery" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := bigquery.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Dataset("my_dataset").Tables(ctx) - for { - t, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(t) - } -} - -// [END bigquery_generated_bigquery_TableIterator_Next] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go index 977e82668f2..6d8dec9e075 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_CreateConnection] +// [START bigqueryconnection_v1_generated_ConnectionService_CreateConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_CreateConnection] +// [END bigqueryconnection_v1_generated_ConnectionService_CreateConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go index 70fb499f247..e220f530da8 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_DeleteConnection] +// [START bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_DeleteConnection] +// [END bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go index 3f863908975..8322041e217 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_GetConnection] +// [START bigqueryconnection_v1_generated_ConnectionService_GetConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_GetConnection] +// [END bigqueryconnection_v1_generated_ConnectionService_GetConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go index 60953fb63dd..fd5c940d759 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_GetIamPolicy] +// [START bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_GetIamPolicy] +// [END bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go index 1bad3c80be1..4a4e2d537f5 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_ListConnections] +// [START bigqueryconnection_v1_generated_ConnectionService_ListConnections_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_ListConnections] +// [END bigqueryconnection_v1_generated_ConnectionService_ListConnections_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/NewClient/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/NewClient/main.go deleted file mode 100644 index 6c822eb35bc..00000000000 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigqueryconnection_generated_bigquery_connection_apiv1_NewClient] - -package main - -import ( - "context" - - connection "cloud.google.com/go/bigquery/connection/apiv1" -) - -func main() { - ctx := context.Background() - c, err := connection.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigqueryconnection_generated_bigquery_connection_apiv1_NewClient] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go index 0c1049d76cb..e3e1acb41fb 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_SetIamPolicy] +// [START bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_SetIamPolicy] +// [END bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go index d3bc03cccb7..a0ad4f894db 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_TestIamPermissions] +// [START bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_TestIamPermissions] +// [END bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go index e7e43a31e52..d03c2364f73 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1_Client_UpdateConnection] +// [START bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1_Client_UpdateConnection] +// [END bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go index d31e0dbba4a..df7fcc4c0b9 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_CreateConnection] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_CreateConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_CreateConnection] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_CreateConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go index 1a5bbc7a171..11f35367242 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_DeleteConnection] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_DeleteConnection_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_DeleteConnection] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_DeleteConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go index e4efa9e8b12..94d9ee0a1bc 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_GetConnection] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_GetConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_GetConnection] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_GetConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go index e8c54b85c63..b5cdb879f9a 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_GetIamPolicy] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_GetIamPolicy] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go index 6bc6c6f272e..80ddcb6a99d 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_ListConnections] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_ListConnections_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_ListConnections] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_ListConnections_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index 5fac66085fc..00000000000 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_NewClient] - -package main - -import ( - "context" - - connection "cloud.google.com/go/bigquery/connection/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := connection.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go index df6691768e8..2e6cdd070b6 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_SetIamPolicy] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_SetIamPolicy] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go index 24f9adc6235..48325facbdd 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_TestIamPermissions] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_TestIamPermissions] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go index 308ef79f30d..c7274905ca8 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_UpdateConnection] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnection_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_UpdateConnection] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnection_sync] diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go index 7fed8acdd6e..142e0cf32ad 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_UpdateConnectionCredential] +// [START bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnectionCredential_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryconnection_generated_bigquery_connection_apiv1beta1_Client_UpdateConnectionCredential] +// [END bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnectionCredential_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go index b017c6d2284..0e94d06ba72 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_CheckValidCreds] +// [START bigquerydatatransfer_v1_generated_DataTransferService_CheckValidCreds_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_CheckValidCreds] +// [END bigquerydatatransfer_v1_generated_DataTransferService_CheckValidCreds_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go index ea30c909d1d..3e4fcfbe8a8 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_CreateTransferConfig] +// [START bigquerydatatransfer_v1_generated_DataTransferService_CreateTransferConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_CreateTransferConfig] +// [END bigquerydatatransfer_v1_generated_DataTransferService_CreateTransferConfig_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go index 7dd5ef35f82..1ef786286ae 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_DeleteTransferConfig] +// [START bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferConfig_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_DeleteTransferConfig] +// [END bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferConfig_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go index ed0b777856b..65c2a97a3ba 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_DeleteTransferRun] +// [START bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferRun_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_DeleteTransferRun] +// [END bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferRun_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go index 604d1cb5d22..a63aa1368d6 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetDataSource] +// [START bigquerydatatransfer_v1_generated_DataTransferService_GetDataSource_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetDataSource] +// [END bigquerydatatransfer_v1_generated_DataTransferService_GetDataSource_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go index e07cc37f676..df9f1b96f19 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetTransferConfig] +// [START bigquerydatatransfer_v1_generated_DataTransferService_GetTransferConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetTransferConfig] +// [END bigquerydatatransfer_v1_generated_DataTransferService_GetTransferConfig_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go index 24256cb39f8..3b29f19bd2c 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetTransferRun] +// [START bigquerydatatransfer_v1_generated_DataTransferService_GetTransferRun_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_GetTransferRun] +// [END bigquerydatatransfer_v1_generated_DataTransferService_GetTransferRun_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go index c87541eb842..cf19e5876ef 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListDataSources] +// [START bigquerydatatransfer_v1_generated_DataTransferService_ListDataSources_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListDataSources] +// [END bigquerydatatransfer_v1_generated_DataTransferService_ListDataSources_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go index 5ec4790bf1c..c278216f840 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferConfigs] +// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferConfigs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferConfigs] +// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferConfigs_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go index 6cf6c2c260f..02aa5739798 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferLogs] +// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferLogs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferLogs] +// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferLogs_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go index 554acf8b6e7..9d0eed155b0 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferRuns] +// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferRuns_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ListTransferRuns] +// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferRuns_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/NewClient/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/NewClient/main.go deleted file mode 100644 index 32e46c3357a..00000000000 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_NewClient] - -package main - -import ( - "context" - - datatransfer "cloud.google.com/go/bigquery/datatransfer/apiv1" -) - -func main() { - ctx := context.Background() - c, err := datatransfer.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_NewClient] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go index f1aae7e73c0..5f0dfcb0991 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ScheduleTransferRuns] +// [START bigquerydatatransfer_v1_generated_DataTransferService_ScheduleTransferRuns_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_ScheduleTransferRuns] +// [END bigquerydatatransfer_v1_generated_DataTransferService_ScheduleTransferRuns_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go index 26f722b1551..324b76652bb 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_StartManualTransferRuns] +// [START bigquerydatatransfer_v1_generated_DataTransferService_StartManualTransferRuns_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_StartManualTransferRuns] +// [END bigquerydatatransfer_v1_generated_DataTransferService_StartManualTransferRuns_sync] diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go index 09085e037a9..dee3639664c 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_UpdateTransferConfig] +// [START bigquerydatatransfer_v1_generated_DataTransferService_UpdateTransferConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerydatatransfer_generated_bigquery_datatransfer_apiv1_Client_UpdateTransferConfig] +// [END bigquerydatatransfer_v1_generated_DataTransferService_UpdateTransferConfig_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go index 4d116ecbcc5..16a515a7282 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateAssignment] +// [START bigqueryreservation_v1_generated_ReservationService_CreateAssignment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateAssignment] +// [END bigqueryreservation_v1_generated_ReservationService_CreateAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go index 142fe183e2d..cf88d1ec7b0 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateCapacityCommitment] +// [START bigqueryreservation_v1_generated_ReservationService_CreateCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateCapacityCommitment] +// [END bigqueryreservation_v1_generated_ReservationService_CreateCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go index 9a02bbaaeb6..137bfeee57c 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateReservation] +// [START bigqueryreservation_v1_generated_ReservationService_CreateReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_CreateReservation] +// [END bigqueryreservation_v1_generated_ReservationService_CreateReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go index 74753951140..18acdbcabd7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteAssignment] +// [START bigqueryreservation_v1_generated_ReservationService_DeleteAssignment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteAssignment] +// [END bigqueryreservation_v1_generated_ReservationService_DeleteAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go index ad21025f716..5981be6e8b7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteCapacityCommitment] +// [START bigqueryreservation_v1_generated_ReservationService_DeleteCapacityCommitment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteCapacityCommitment] +// [END bigqueryreservation_v1_generated_ReservationService_DeleteCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go index 4118ce4328d..7b403d61f04 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteReservation] +// [START bigqueryreservation_v1_generated_ReservationService_DeleteReservation_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_DeleteReservation] +// [END bigqueryreservation_v1_generated_ReservationService_DeleteReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go index 1a3760499fc..4c44f2afd6e 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetBiReservation] +// [START bigqueryreservation_v1_generated_ReservationService_GetBiReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetBiReservation] +// [END bigqueryreservation_v1_generated_ReservationService_GetBiReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go index 58fe7bc7074..496e1972470 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetCapacityCommitment] +// [START bigqueryreservation_v1_generated_ReservationService_GetCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetCapacityCommitment] +// [END bigqueryreservation_v1_generated_ReservationService_GetCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go index 60b478902c0..20992142f5e 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetReservation] +// [START bigqueryreservation_v1_generated_ReservationService_GetReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_GetReservation] +// [END bigqueryreservation_v1_generated_ReservationService_GetReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go index 89b0a7fc915..b83710492fa 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListAssignments] +// [START bigqueryreservation_v1_generated_ReservationService_ListAssignments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListAssignments] +// [END bigqueryreservation_v1_generated_ReservationService_ListAssignments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go index 19dfdb56993..54b93777a41 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListCapacityCommitments] +// [START bigqueryreservation_v1_generated_ReservationService_ListCapacityCommitments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListCapacityCommitments] +// [END bigqueryreservation_v1_generated_ReservationService_ListCapacityCommitments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go index f96becbe81a..1bb04875bdf 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListReservations] +// [START bigqueryreservation_v1_generated_ReservationService_ListReservations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_ListReservations] +// [END bigqueryreservation_v1_generated_ReservationService_ListReservations_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go index e247459757f..9bc18c96905 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_MergeCapacityCommitments] +// [START bigqueryreservation_v1_generated_ReservationService_MergeCapacityCommitments_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_MergeCapacityCommitments] +// [END bigqueryreservation_v1_generated_ReservationService_MergeCapacityCommitments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go index f8d03b18805..d7347f2b17d 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_MoveAssignment] +// [START bigqueryreservation_v1_generated_ReservationService_MoveAssignment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_MoveAssignment] +// [END bigqueryreservation_v1_generated_ReservationService_MoveAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/NewClient/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/NewClient/main.go deleted file mode 100644 index 857faf4b475..00000000000 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_NewClient] - -package main - -import ( - "context" - - reservation "cloud.google.com/go/bigquery/reservation/apiv1" -) - -func main() { - ctx := context.Background() - c, err := reservation.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_NewClient] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go index 53c7ea4dfa1..f6469cda1a4 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_SearchAssignments] +// [START bigqueryreservation_v1_generated_ReservationService_SearchAssignments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_SearchAssignments] +// [END bigqueryreservation_v1_generated_ReservationService_SearchAssignments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go index 7f9ddbf9fbc..98cfa6acb35 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_SplitCapacityCommitment] +// [START bigqueryreservation_v1_generated_ReservationService_SplitCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_SplitCapacityCommitment] +// [END bigqueryreservation_v1_generated_ReservationService_SplitCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go index eaf46f0c220..3f5bb205dce 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateBiReservation] +// [START bigqueryreservation_v1_generated_ReservationService_UpdateBiReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateBiReservation] +// [END bigqueryreservation_v1_generated_ReservationService_UpdateBiReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go index 72ea1f18b55..7f361382b80 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateCapacityCommitment] +// [START bigqueryreservation_v1_generated_ReservationService_UpdateCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateCapacityCommitment] +// [END bigqueryreservation_v1_generated_ReservationService_UpdateCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go index 3a53423369d..c64c8c104e6 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateReservation] +// [START bigqueryreservation_v1_generated_ReservationService_UpdateReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1_Client_UpdateReservation] +// [END bigqueryreservation_v1_generated_ReservationService_UpdateReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go index e528bf7ea68..719c32bdb1f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateAssignment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_CreateAssignment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateAssignment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_CreateAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go index 5e26ad0581b..b7b11b548cc 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateCapacityCommitment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_CreateCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateCapacityCommitment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_CreateCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go index b3a9d110377..f547ffa0932 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_CreateReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_CreateReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_CreateReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go index 37a0f12bd5b..d94957cfb00 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteAssignment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_DeleteAssignment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteAssignment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_DeleteAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go index 2dd2b7e5e50..f4f6f32bf0a 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteCapacityCommitment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_DeleteCapacityCommitment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteCapacityCommitment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_DeleteCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go index 16bc73d4a81..306cae1526a 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_DeleteReservation_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_DeleteReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_DeleteReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go index 7f2da0a4950..6be1b8efc81 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetBiReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_GetBiReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetBiReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_GetBiReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go index 06490979ebb..4a7e540ed2b 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetCapacityCommitment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_GetCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetCapacityCommitment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_GetCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go index 81fb3ccee00..4b5cc42aa66 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_GetReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_GetReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_GetReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go index 49d916b2d3c..2ad627ae684 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListAssignments] +// [START bigqueryreservation_v1beta1_generated_ReservationService_ListAssignments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListAssignments] +// [END bigqueryreservation_v1beta1_generated_ReservationService_ListAssignments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go index 74279c7fce1..b650a402f80 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListCapacityCommitments] +// [START bigqueryreservation_v1beta1_generated_ReservationService_ListCapacityCommitments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListCapacityCommitments] +// [END bigqueryreservation_v1beta1_generated_ReservationService_ListCapacityCommitments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go index c88f152192f..dd8ed48a63d 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListReservations] +// [START bigqueryreservation_v1beta1_generated_ReservationService_ListReservations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_ListReservations] +// [END bigqueryreservation_v1beta1_generated_ReservationService_ListReservations_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go index 2ceb07d9d37..e0e317078f8 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_MergeCapacityCommitments] +// [START bigqueryreservation_v1beta1_generated_ReservationService_MergeCapacityCommitments_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_MergeCapacityCommitments] +// [END bigqueryreservation_v1beta1_generated_ReservationService_MergeCapacityCommitments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go index 8e51faa2bf1..e1d684e999e 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_MoveAssignment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_MoveAssignment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_MoveAssignment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_MoveAssignment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index ff1409576f5..00000000000 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_NewClient] - -package main - -import ( - "context" - - reservation "cloud.google.com/go/bigquery/reservation/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := reservation.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go index fb44f0f5370..82a466a1c66 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_SearchAssignments] +// [START bigqueryreservation_v1beta1_generated_ReservationService_SearchAssignments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_SearchAssignments] +// [END bigqueryreservation_v1beta1_generated_ReservationService_SearchAssignments_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go index aff5ba6ea44..a73018e1d44 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_SplitCapacityCommitment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_SplitCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_SplitCapacityCommitment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_SplitCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go index 9a99e26ba8b..a36a19dc7a2 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateBiReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_UpdateBiReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateBiReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_UpdateBiReservation_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go index 4126fe33dbc..67e64bda57e 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateCapacityCommitment] +// [START bigqueryreservation_v1beta1_generated_ReservationService_UpdateCapacityCommitment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateCapacityCommitment] +// [END bigqueryreservation_v1beta1_generated_ReservationService_UpdateCapacityCommitment_sync] diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go index 38fefda0354..da03446966a 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateReservation] +// [START bigqueryreservation_v1beta1_generated_ReservationService_UpdateReservation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigqueryreservation_generated_bigquery_reservation_apiv1beta1_Client_UpdateReservation] +// [END bigqueryreservation_v1beta1_generated_ReservationService_UpdateReservation_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go index adb791868b7..874c24d4201 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1_BigQueryReadClient_CreateReadSession] +// [START bigquerystorage_v1_generated_BigQueryRead_CreateReadSession_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1_BigQueryReadClient_CreateReadSession] +// [END bigquerystorage_v1_generated_BigQueryRead_CreateReadSession_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/NewBigQueryReadClient/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/NewBigQueryReadClient/main.go deleted file mode 100644 index 08b38d8482f..00000000000 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/NewBigQueryReadClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerystorage_generated_bigquery_storage_apiv1_NewBigQueryReadClient] - -package main - -import ( - "context" - - storage "cloud.google.com/go/bigquery/storage/apiv1" -) - -func main() { - ctx := context.Background() - c, err := storage.NewBigQueryReadClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerystorage_generated_bigquery_storage_apiv1_NewBigQueryReadClient] diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go index 22b7c5a02e7..a21835851be 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1_BigQueryReadClient_SplitReadStream] +// [START bigquerystorage_v1_generated_BigQueryRead_SplitReadStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1_BigQueryReadClient_SplitReadStream] +// [END bigquerystorage_v1_generated_BigQueryRead_SplitReadStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/AppendRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/AppendRows/main.go index 8479131823a..44c08a84a39 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/AppendRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/AppendRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_AppendRows] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_AppendRows_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_AppendRows] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_AppendRows_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/BatchCommitWriteStreams/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/BatchCommitWriteStreams/main.go index 61f109d24ef..683c6c5cb06 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/BatchCommitWriteStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/BatchCommitWriteStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_BatchCommitWriteStreams] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_BatchCommitWriteStreams_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_BatchCommitWriteStreams] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_BatchCommitWriteStreams_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/CreateWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/CreateWriteStream/main.go index 5872cf23d8a..44c580f2e45 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/CreateWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/CreateWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_CreateWriteStream] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_CreateWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_CreateWriteStream] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_CreateWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FinalizeWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FinalizeWriteStream/main.go index b2f38d05df3..33d1665856a 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FinalizeWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FinalizeWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_FinalizeWriteStream] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_FinalizeWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_FinalizeWriteStream] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_FinalizeWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FlushRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FlushRows/main.go index ffe0b472c19..0566a4a85cb 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FlushRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/FlushRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_FlushRows] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_FlushRows_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_FlushRows] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_FlushRows_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/GetWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/GetWriteStream/main.go index d0d772d6c15..2fdda90d94e 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/GetWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/GetWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_GetWriteStream] +// [START bigquerystorage_v1alpha2_generated_BigQueryWrite_GetWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_BigQueryWriteClient_GetWriteStream] +// [END bigquerystorage_v1alpha2_generated_BigQueryWrite_GetWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/NewBigQueryWriteClient/main.go b/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/NewBigQueryWriteClient/main.go deleted file mode 100644 index 8388d97b615..00000000000 --- a/internal/generated/snippets/bigquery/storage/apiv1alpha2/BigQueryWriteClient/NewBigQueryWriteClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerystorage_generated_bigquery_storage_apiv1alpha2_NewBigQueryWriteClient] - -package main - -import ( - "context" - - storage "cloud.google.com/go/bigquery/storage/apiv1alpha2" -) - -func main() { - ctx := context.Background() - c, err := storage.NewBigQueryWriteClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerystorage_generated_bigquery_storage_apiv1alpha2_NewBigQueryWriteClient] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go index cfc22ae5d1f..6e9ef43aae9 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_BatchCreateReadSessionStreams] +// [START bigquerystorage_v1beta1_generated_BigQueryStorage_BatchCreateReadSessionStreams_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_BatchCreateReadSessionStreams] +// [END bigquerystorage_v1beta1_generated_BigQueryStorage_BatchCreateReadSessionStreams_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go index 02376d40383..0264799daf5 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_CreateReadSession] +// [START bigquerystorage_v1beta1_generated_BigQueryStorage_CreateReadSession_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_CreateReadSession] +// [END bigquerystorage_v1beta1_generated_BigQueryStorage_CreateReadSession_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go index d8d12462a36..1fff731fe46 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_FinalizeStream] +// [START bigquerystorage_v1beta1_generated_BigQueryStorage_FinalizeStream_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_FinalizeStream] +// [END bigquerystorage_v1beta1_generated_BigQueryStorage_FinalizeStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/NewBigQueryStorageClient/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/NewBigQueryStorageClient/main.go deleted file mode 100644 index c83942c167f..00000000000 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/NewBigQueryStorageClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerystorage_generated_bigquery_storage_apiv1beta1_NewBigQueryStorageClient] - -package main - -import ( - "context" - - storage "cloud.google.com/go/bigquery/storage/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := storage.NewBigQueryStorageClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerystorage_generated_bigquery_storage_apiv1beta1_NewBigQueryStorageClient] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go index 10b241954d1..1029bd4d9bc 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_SplitReadStream] +// [START bigquerystorage_v1beta1_generated_BigQueryStorage_SplitReadStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta1_BigQueryStorageClient_SplitReadStream] +// [END bigquerystorage_v1beta1_generated_BigQueryStorage_SplitReadStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go index 4109b715c12..53dac5ce020 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryReadClient_CreateReadSession] +// [START bigquerystorage_v1beta2_generated_BigQueryRead_CreateReadSession_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryReadClient_CreateReadSession] +// [END bigquerystorage_v1beta2_generated_BigQueryRead_CreateReadSession_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/NewBigQueryReadClient/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/NewBigQueryReadClient/main.go deleted file mode 100644 index f90b0525c57..00000000000 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/NewBigQueryReadClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_NewBigQueryReadClient] - -package main - -import ( - "context" - - storage "cloud.google.com/go/bigquery/storage/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := storage.NewBigQueryReadClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_NewBigQueryReadClient] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go index 29d29061697..f7dd5513a19 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryReadClient_SplitReadStream] +// [START bigquerystorage_v1beta2_generated_BigQueryRead_SplitReadStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryReadClient_SplitReadStream] +// [END bigquerystorage_v1beta2_generated_BigQueryRead_SplitReadStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go index d2ef0b6714b..2d1b25d44e6 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_AppendRows] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_AppendRows_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_AppendRows] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_AppendRows_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go index 2d577da10c9..5c81857e5c6 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_BatchCommitWriteStreams] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_BatchCommitWriteStreams_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_BatchCommitWriteStreams] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_BatchCommitWriteStreams_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go index b2e520a3e22..f76bf5dfd8e 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_CreateWriteStream] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_CreateWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_CreateWriteStream] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_CreateWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go index 4f82a3f5462..465bf16672f 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_FinalizeWriteStream] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_FinalizeWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_FinalizeWriteStream] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_FinalizeWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go index 5b58814bc79..7f119149459 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_FlushRows] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_FlushRows_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_FlushRows] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_FlushRows_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go index 45c633157f3..a7c55e68a54 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_GetWriteStream] +// [START bigquerystorage_v1beta2_generated_BigQueryWrite_GetWriteStream_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_BigQueryWriteClient_GetWriteStream] +// [END bigquerystorage_v1beta2_generated_BigQueryWrite_GetWriteStream_sync] diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/NewBigQueryWriteClient/main.go b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/NewBigQueryWriteClient/main.go deleted file mode 100644 index 07d45a249fa..00000000000 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/NewBigQueryWriteClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigquerystorage_generated_bigquery_storage_apiv1beta2_NewBigQueryWriteClient] - -package main - -import ( - "context" - - storage "cloud.google.com/go/bigquery/storage/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := storage.NewBigQueryWriteClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END bigquerystorage_generated_bigquery_storage_apiv1beta2_NewBigQueryWriteClient] diff --git a/internal/generated/snippets/bigtable/bttest/Server/NewServer/main.go b/internal/generated/snippets/bigtable/bttest/Server/NewServer/main.go deleted file mode 100644 index 2eb1ae53cf8..00000000000 --- a/internal/generated/snippets/bigtable/bttest/Server/NewServer/main.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START bigtable_generated_bigtable_bttest_NewServer] - -package main - -import ( - "context" - "fmt" - "log" - - "cloud.google.com/go/bigtable" - "cloud.google.com/go/bigtable/bttest" - "google.golang.org/api/option" - "google.golang.org/grpc" -) - -func main() { - - srv, err := bttest.NewServer("localhost:0") - - if err != nil { - log.Fatalln(err) - } - - ctx := context.Background() - - conn, err := grpc.Dial(srv.Addr, grpc.WithInsecure()) - if err != nil { - log.Fatalln(err) - } - - proj, instance := "proj", "instance" - - adminClient, err := bigtable.NewAdminClient(ctx, proj, instance, option.WithGRPCConn(conn)) - if err != nil { - log.Fatalln(err) - } - - if err = adminClient.CreateTable(ctx, "example"); err != nil { - log.Fatalln(err) - } - - if err = adminClient.CreateColumnFamily(ctx, "example", "links"); err != nil { - log.Fatalln(err) - } - - client, err := bigtable.NewClient(ctx, proj, instance, option.WithGRPCConn(conn)) - if err != nil { - log.Fatalln(err) - } - tbl := client.Open("example") - - mut := bigtable.NewMutation() - mut.Set("links", "golang.org", bigtable.Now(), []byte("Gophers!")) - if err = tbl.Apply(ctx, "com.google.cloud", mut); err != nil { - log.Fatalln(err) - } - - if row, err := tbl.ReadRow(ctx, "com.google.cloud"); err != nil { - log.Fatalln(err) - } else { - for _, column := range row["links"] { - fmt.Println(column.Column) - fmt.Println(string(column.Value)) - } - } - -} - -// [END bigtable_generated_bigtable_bttest_NewServer] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go index 757897ca923..3f0b3b0e949 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_CreateBillingAccount] +// [START cloudbilling_v1_generated_CloudBilling_CreateBillingAccount_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_CreateBillingAccount] +// [END cloudbilling_v1_generated_CloudBilling_CreateBillingAccount_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go index fab7e771ac7..bdc31e403ca 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_GetBillingAccount] +// [START cloudbilling_v1_generated_CloudBilling_GetBillingAccount_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_GetBillingAccount] +// [END cloudbilling_v1_generated_CloudBilling_GetBillingAccount_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go index effd70381c5..ce01cfa8628 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_GetIamPolicy] +// [START cloudbilling_v1_generated_CloudBilling_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_GetIamPolicy] +// [END cloudbilling_v1_generated_CloudBilling_GetIamPolicy_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go index 523afde1de9..b83a7cebcd2 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_GetProjectBillingInfo] +// [START cloudbilling_v1_generated_CloudBilling_GetProjectBillingInfo_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_GetProjectBillingInfo] +// [END cloudbilling_v1_generated_CloudBilling_GetProjectBillingInfo_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go index d97cc61922f..7f817b2b849 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_ListBillingAccounts] +// [START cloudbilling_v1_generated_CloudBilling_ListBillingAccounts_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_ListBillingAccounts] +// [END cloudbilling_v1_generated_CloudBilling_ListBillingAccounts_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go index a27231001bc..5bdb9e893be 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_ListProjectBillingInfo] +// [START cloudbilling_v1_generated_CloudBilling_ListProjectBillingInfo_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_ListProjectBillingInfo] +// [END cloudbilling_v1_generated_CloudBilling_ListProjectBillingInfo_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/NewCloudBillingClient/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/NewCloudBillingClient/main.go deleted file mode 100644 index 8494b5b76fe..00000000000 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/NewCloudBillingClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudbilling_generated_billing_apiv1_NewCloudBillingClient] - -package main - -import ( - "context" - - billing "cloud.google.com/go/billing/apiv1" -) - -func main() { - ctx := context.Background() - c, err := billing.NewCloudBillingClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudbilling_generated_billing_apiv1_NewCloudBillingClient] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go index ef7f02ef90d..6cf77ce44d9 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_SetIamPolicy] +// [START cloudbilling_v1_generated_CloudBilling_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_SetIamPolicy] +// [END cloudbilling_v1_generated_CloudBilling_SetIamPolicy_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go index 26485eb8b7b..eb53cfe5e82 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_TestIamPermissions] +// [START cloudbilling_v1_generated_CloudBilling_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_TestIamPermissions] +// [END cloudbilling_v1_generated_CloudBilling_TestIamPermissions_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go index e4cd67bf8b3..68576dcdaf8 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_UpdateBillingAccount] +// [START cloudbilling_v1_generated_CloudBilling_UpdateBillingAccount_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_UpdateBillingAccount] +// [END cloudbilling_v1_generated_CloudBilling_UpdateBillingAccount_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go index f3033ae81d7..ddbfdcef891 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudBillingClient_UpdateProjectBillingInfo] +// [START cloudbilling_v1_generated_CloudBilling_UpdateProjectBillingInfo_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbilling_generated_billing_apiv1_CloudBillingClient_UpdateProjectBillingInfo] +// [END cloudbilling_v1_generated_CloudBilling_UpdateProjectBillingInfo_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go index c4d73611644..9aeaef1c842 100644 --- a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudCatalogClient_ListServices] +// [START cloudbilling_v1_generated_CloudCatalog_ListServices_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbilling_generated_billing_apiv1_CloudCatalogClient_ListServices] +// [END cloudbilling_v1_generated_CloudCatalog_ListServices_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go index 16adee12592..89bb0d99bae 100644 --- a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbilling_generated_billing_apiv1_CloudCatalogClient_ListSkus] +// [START cloudbilling_v1_generated_CloudCatalog_ListSkus_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbilling_generated_billing_apiv1_CloudCatalogClient_ListSkus] +// [END cloudbilling_v1_generated_CloudCatalog_ListSkus_sync] diff --git a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/NewCloudCatalogClient/main.go b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/NewCloudCatalogClient/main.go deleted file mode 100644 index daa007a21d3..00000000000 --- a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/NewCloudCatalogClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudbilling_generated_billing_apiv1_NewCloudCatalogClient] - -package main - -import ( - "context" - - billing "cloud.google.com/go/billing/apiv1" -) - -func main() { - ctx := context.Background() - c, err := billing.NewCloudCatalogClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudbilling_generated_billing_apiv1_NewCloudCatalogClient] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go index b4604d3018c..309e73ab56e 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1_BudgetClient_CreateBudget] +// [START billingbudgets_v1_generated_BudgetService_CreateBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1_BudgetClient_CreateBudget] +// [END billingbudgets_v1_generated_BudgetService_CreateBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go index e0815aa378d..86cffc22bdd 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1_BudgetClient_DeleteBudget] +// [START billingbudgets_v1_generated_BudgetService_DeleteBudget_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END billingbudgets_generated_billing_budgets_apiv1_BudgetClient_DeleteBudget] +// [END billingbudgets_v1_generated_BudgetService_DeleteBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go index 6ee7b982a73..bdaa1f0f7e3 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1_BudgetClient_GetBudget] +// [START billingbudgets_v1_generated_BudgetService_GetBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1_BudgetClient_GetBudget] +// [END billingbudgets_v1_generated_BudgetService_GetBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go index b9544b2e1ca..649781cdb86 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1_BudgetClient_ListBudgets] +// [START billingbudgets_v1_generated_BudgetService_ListBudgets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END billingbudgets_generated_billing_budgets_apiv1_BudgetClient_ListBudgets] +// [END billingbudgets_v1_generated_BudgetService_ListBudgets_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/NewBudgetClient/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/NewBudgetClient/main.go deleted file mode 100644 index 1010d8c2eb8..00000000000 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/NewBudgetClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START billingbudgets_generated_billing_budgets_apiv1_NewBudgetClient] - -package main - -import ( - "context" - - budgets "cloud.google.com/go/billing/budgets/apiv1" -) - -func main() { - ctx := context.Background() - c, err := budgets.NewBudgetClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END billingbudgets_generated_billing_budgets_apiv1_NewBudgetClient] diff --git a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go index 4d2c97980fc..3d996b8cfc3 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1_BudgetClient_UpdateBudget] +// [START billingbudgets_v1_generated_BudgetService_UpdateBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1_BudgetClient_UpdateBudget] +// [END billingbudgets_v1_generated_BudgetService_UpdateBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go index 567e1040ae1..b28380bd0e8 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_CreateBudget] +// [START billingbudgets_v1beta1_generated_BudgetService_CreateBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_CreateBudget] +// [END billingbudgets_v1beta1_generated_BudgetService_CreateBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go index 5a4de348d45..722e82ab1e0 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_DeleteBudget] +// [START billingbudgets_v1beta1_generated_BudgetService_DeleteBudget_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_DeleteBudget] +// [END billingbudgets_v1beta1_generated_BudgetService_DeleteBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go index 0929b18e444..02d6ecb1a6d 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_GetBudget] +// [START billingbudgets_v1beta1_generated_BudgetService_GetBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_GetBudget] +// [END billingbudgets_v1beta1_generated_BudgetService_GetBudget_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go index 4eca2c160df..9e2cf21db6d 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_ListBudgets] +// [START billingbudgets_v1beta1_generated_BudgetService_ListBudgets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_ListBudgets] +// [END billingbudgets_v1beta1_generated_BudgetService_ListBudgets_sync] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/NewBudgetClient/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/NewBudgetClient/main.go deleted file mode 100644 index e004581bbcc..00000000000 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/NewBudgetClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START billingbudgets_generated_billing_budgets_apiv1beta1_NewBudgetClient] - -package main - -import ( - "context" - - budgets "cloud.google.com/go/billing/budgets/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := budgets.NewBudgetClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END billingbudgets_generated_billing_budgets_apiv1beta1_NewBudgetClient] diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go index 0edf2d464c0..ebd8ed28d10 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_UpdateBudget] +// [START billingbudgets_v1beta1_generated_BudgetService_UpdateBudget_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END billingbudgets_generated_billing_budgets_apiv1beta1_BudgetClient_UpdateBudget] +// [END billingbudgets_v1beta1_generated_BudgetService_UpdateBudget_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go index 9a4ffa74976..7105b35f889 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_CreateAttestor] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_CreateAttestor] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go index e1b695ac2d9..7df05a4e396 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_DeleteAttestor] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_DeleteAttestor] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go index c9fd6b2b319..97466646c80 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_GetAttestor] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_GetAttestor] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go index 267c12d4c48..6e2bcac4197 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_GetPolicy] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_GetPolicy] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go index 0b7850f802f..00310b06c6f 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_ListAttestors] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_ListAttestors_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_ListAttestors] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_ListAttestors_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/NewBinauthzManagementServiceV1Beta1Client/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/NewBinauthzManagementServiceV1Beta1Client/main.go deleted file mode 100644 index 2f45d7d0a7c..00000000000 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/NewBinauthzManagementServiceV1Beta1Client/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_NewBinauthzManagementServiceV1Beta1Client] - -package main - -import ( - "context" - - binaryauthorization "cloud.google.com/go/binaryauthorization/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_NewBinauthzManagementServiceV1Beta1Client] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go index 4f5c937d705..ad0bb07dc8a 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_UpdateAttestor] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdateAttestor_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_UpdateAttestor] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdateAttestor_sync] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go index d0c365c2859..c3519b3fc0e 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_UpdatePolicy] +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdatePolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END binaryauthorization_generated_binaryauthorization_apiv1beta1_BinauthzManagementServiceV1Beta1Client_UpdatePolicy] +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdatePolicy_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go index ae050f55ec0..dab3548535a 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ActivateEntitlement] +// [START cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ActivateEntitlement] +// [END cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go index 7dc12f673b6..2670c200a99 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_CancelEntitlement] +// [START cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_CancelEntitlement] +// [END cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go index 1d99191a99c..82f86fcdb90 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeOffer] +// [START cloudchannel_v1_generated_CloudChannelService_ChangeOffer_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeOffer] +// [END cloudchannel_v1_generated_CloudChannelService_ChangeOffer_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go index e82eb9da4d5..ceda0c91316 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeParameters] +// [START cloudchannel_v1_generated_CloudChannelService_ChangeParameters_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeParameters] +// [END cloudchannel_v1_generated_CloudChannelService_ChangeParameters_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go index d0c5633030c..d6b14dd4461 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeRenewalSettings] +// [START cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ChangeRenewalSettings] +// [END cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go index f4a8bf112b3..9a568421141 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_CheckCloudIdentityAccountsExist] +// [START cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_CheckCloudIdentityAccountsExist] +// [END cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go index be359e43a7a..6f0b3d0ffbb 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateChannelPartnerLink] +// [START cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateChannelPartnerLink] +// [END cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go index fd606acbcfb..ba3cdd14328 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateCustomer] +// [START cloudchannel_v1_generated_CloudChannelService_CreateCustomer_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateCustomer] +// [END cloudchannel_v1_generated_CloudChannelService_CreateCustomer_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go index be577056e6c..a5ba134f08a 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateEntitlement] +// [START cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_CreateEntitlement] +// [END cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go index 6b3e96ebcb6..198a15db350 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_DeleteCustomer] +// [START cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_DeleteCustomer] +// [END cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go index 30f83b0c9d9..2c2582c1524 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_GetChannelPartnerLink] +// [START cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_GetChannelPartnerLink] +// [END cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go index ef2875d61f2..bdbebeba0f2 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_GetCustomer] +// [START cloudchannel_v1_generated_CloudChannelService_GetCustomer_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_GetCustomer] +// [END cloudchannel_v1_generated_CloudChannelService_GetCustomer_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go index dd51d645074..fad0a3b46e4 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_GetEntitlement] +// [START cloudchannel_v1_generated_CloudChannelService_GetEntitlement_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_GetEntitlement] +// [END cloudchannel_v1_generated_CloudChannelService_GetEntitlement_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go index 1e1e8679b32..3e2c5e9114c 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListChannelPartnerLinks] +// [START cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListChannelPartnerLinks] +// [END cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go index bfefd595b75..3988a08f4bb 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListCustomers] +// [START cloudchannel_v1_generated_CloudChannelService_ListCustomers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListCustomers] +// [END cloudchannel_v1_generated_CloudChannelService_ListCustomers_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go index d2c130630fd..a799250ac97 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListEntitlements] +// [START cloudchannel_v1_generated_CloudChannelService_ListEntitlements_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListEntitlements] +// [END cloudchannel_v1_generated_CloudChannelService_ListEntitlements_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go index 65dc313fc81..2dd513023cb 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListOffers] +// [START cloudchannel_v1_generated_CloudChannelService_ListOffers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListOffers] +// [END cloudchannel_v1_generated_CloudChannelService_ListOffers_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go index 28a408f36d6..753f0e93c76 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListProducts] +// [START cloudchannel_v1_generated_CloudChannelService_ListProducts_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListProducts] +// [END cloudchannel_v1_generated_CloudChannelService_ListProducts_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go index 0bd75cf3d77..2c1b2b5cb12 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListPurchasableOffers] +// [START cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListPurchasableOffers] +// [END cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go index aea9faeef3e..f3741d378d8 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListPurchasableSkus] +// [START cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListPurchasableSkus] +// [END cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go index f3d0afd7eec..226ae5b0521 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListSkus] +// [START cloudchannel_v1_generated_CloudChannelService_ListSkus_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListSkus] +// [END cloudchannel_v1_generated_CloudChannelService_ListSkus_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go index f3940264d61..236dcada726 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListSubscribers] +// [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListSubscribers] +// [END cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go index c03bbffca35..6f0d61000df 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListTransferableOffers] +// [START cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListTransferableOffers] +// [END cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go index eafcc343d7f..587cdc4af5b 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ListTransferableSkus] +// [START cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ListTransferableSkus] +// [END cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/NewCloudChannelClient/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/NewCloudChannelClient/main.go deleted file mode 100644 index 3f37733744c..00000000000 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/NewCloudChannelClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudchannel_generated_channel_apiv1_NewCloudChannelClient] - -package main - -import ( - "context" - - channel "cloud.google.com/go/channel/apiv1" -) - -func main() { - ctx := context.Background() - c, err := channel.NewCloudChannelClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudchannel_generated_channel_apiv1_NewCloudChannelClient] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go index 8b876e87cb3..526dd88599e 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_ProvisionCloudIdentity] +// [START cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_ProvisionCloudIdentity] +// [END cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go index b4e7730f436..a148d20acd5 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_RegisterSubscriber] +// [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_RegisterSubscriber] +// [END cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go index 3af8a5513ff..262bf5bf70d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_StartPaidService] +// [START cloudchannel_v1_generated_CloudChannelService_StartPaidService_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_StartPaidService] +// [END cloudchannel_v1_generated_CloudChannelService_StartPaidService_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go index ebcb773b82b..b996e83b447 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_SuspendEntitlement] +// [START cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_SuspendEntitlement] +// [END cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go index ba319572de7..8a95a4df888 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_TransferEntitlements] +// [START cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_TransferEntitlements] +// [END cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go index 8818893e39f..e412482a8ac 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_TransferEntitlementsToGoogle] +// [START cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_TransferEntitlementsToGoogle] +// [END cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go index ab6ac7eec42..0dc375c1808 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_UnregisterSubscriber] +// [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_UnregisterSubscriber] +// [END cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go index 03f35eaa785..16cd778d0c4 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_UpdateChannelPartnerLink] +// [START cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_UpdateChannelPartnerLink] +// [END cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_sync] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go index e785d8598d1..41a68cc5097 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudchannel_generated_channel_apiv1_CloudChannelClient_UpdateCustomer] +// [START cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudchannel_generated_channel_apiv1_CloudChannelClient_UpdateCustomer] +// [END cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go index d05a9d115ec..c3c233ef07a 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_CancelBuild] +// [START cloudbuild_v1_generated_CloudBuild_CancelBuild_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_CancelBuild] +// [END cloudbuild_v1_generated_CloudBuild_CancelBuild_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go index 1627181890f..5976abf4ff6 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateBuild] +// [START cloudbuild_v1_generated_CloudBuild_CreateBuild_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateBuild] +// [END cloudbuild_v1_generated_CloudBuild_CreateBuild_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go index e3c31285ccf..601b4266162 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateBuildTrigger] +// [START cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateBuildTrigger] +// [END cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go index f8de64474d5..1e707beb232 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateWorkerPool] +// [START cloudbuild_v1_generated_CloudBuild_CreateWorkerPool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_CreateWorkerPool] +// [END cloudbuild_v1_generated_CloudBuild_CreateWorkerPool_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go index 0acb2689603..db9657b706e 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_DeleteBuildTrigger] +// [START cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_DeleteBuildTrigger] +// [END cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go index 79784f7a413..e1499f252ad 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_DeleteWorkerPool] +// [START cloudbuild_v1_generated_CloudBuild_DeleteWorkerPool_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_DeleteWorkerPool] +// [END cloudbuild_v1_generated_CloudBuild_DeleteWorkerPool_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go index f4f73cceaa3..ca1dedd1545 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetBuild] +// [START cloudbuild_v1_generated_CloudBuild_GetBuild_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetBuild] +// [END cloudbuild_v1_generated_CloudBuild_GetBuild_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go index 6e8caf88d7b..665d89c8806 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetBuildTrigger] +// [START cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetBuildTrigger] +// [END cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go index c1ec6b35374..bc61c3cde3c 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetWorkerPool] +// [START cloudbuild_v1_generated_CloudBuild_GetWorkerPool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_GetWorkerPool] +// [END cloudbuild_v1_generated_CloudBuild_GetWorkerPool_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go index 091731e3f38..f6d4c9a2871 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListBuildTriggers] +// [START cloudbuild_v1_generated_CloudBuild_ListBuildTriggers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListBuildTriggers] +// [END cloudbuild_v1_generated_CloudBuild_ListBuildTriggers_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go index b453ce7492c..42ac2e14e60 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListBuilds] +// [START cloudbuild_v1_generated_CloudBuild_ListBuilds_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListBuilds] +// [END cloudbuild_v1_generated_CloudBuild_ListBuilds_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go index 6b67ced5dd7..0a24c3fdc53 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListWorkerPools] +// [START cloudbuild_v1_generated_CloudBuild_ListWorkerPools_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_ListWorkerPools] +// [END cloudbuild_v1_generated_CloudBuild_ListWorkerPools_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/NewClient/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/NewClient/main.go deleted file mode 100644 index 8f9116e13e6..00000000000 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudbuild_generated_cloudbuild_apiv1_v2_NewClient] - -package main - -import ( - "context" - - cloudbuild "cloud.google.com/go/cloudbuild/apiv1/v2" -) - -func main() { - ctx := context.Background() - c, err := cloudbuild.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudbuild_generated_cloudbuild_apiv1_v2_NewClient] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go index 04d4f840246..59e1388eb77 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_ReceiveTriggerWebhook] +// [START cloudbuild_v1_generated_CloudBuild_ReceiveTriggerWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_ReceiveTriggerWebhook] +// [END cloudbuild_v1_generated_CloudBuild_ReceiveTriggerWebhook_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go index fc3593cad05..0c9663c9e2d 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_RetryBuild] +// [START cloudbuild_v1_generated_CloudBuild_RetryBuild_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_RetryBuild] +// [END cloudbuild_v1_generated_CloudBuild_RetryBuild_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go index f20c9d54633..2a685c8e07e 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_RunBuildTrigger] +// [START cloudbuild_v1_generated_CloudBuild_RunBuildTrigger_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_RunBuildTrigger] +// [END cloudbuild_v1_generated_CloudBuild_RunBuildTrigger_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go index 5ef49ffb12b..ebb63b61b28 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_UpdateBuildTrigger] +// [START cloudbuild_v1_generated_CloudBuild_UpdateBuildTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_UpdateBuildTrigger] +// [END cloudbuild_v1_generated_CloudBuild_UpdateBuildTrigger_sync] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go index 3bcaf878728..2c20a16252c 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudbuild_generated_cloudbuild_apiv1_v2_Client_UpdateWorkerPool] +// [START cloudbuild_v1_generated_CloudBuild_UpdateWorkerPool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudbuild_generated_cloudbuild_apiv1_v2_Client_UpdateWorkerPool] +// [END cloudbuild_v1_generated_CloudBuild_UpdateWorkerPool_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go index 6246957f7a1..a4437152a11 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_CreateQueue] +// [START cloudtasks_v2_generated_CloudTasks_CreateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_CreateQueue] +// [END cloudtasks_v2_generated_CloudTasks_CreateQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go index ac16d638fbf..0a642dddffd 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_CreateTask] +// [START cloudtasks_v2_generated_CloudTasks_CreateTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_CreateTask] +// [END cloudtasks_v2_generated_CloudTasks_CreateTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go index 6b74ba3c45b..a4fbf8157aa 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_DeleteQueue] +// [START cloudtasks_v2_generated_CloudTasks_DeleteQueue_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_DeleteQueue] +// [END cloudtasks_v2_generated_CloudTasks_DeleteQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go index a4263c65e0a..f6555c58f6d 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_DeleteTask] +// [START cloudtasks_v2_generated_CloudTasks_DeleteTask_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_DeleteTask] +// [END cloudtasks_v2_generated_CloudTasks_DeleteTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go index 667078891e9..3d348b16f11 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_GetIamPolicy] +// [START cloudtasks_v2_generated_CloudTasks_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_GetIamPolicy] +// [END cloudtasks_v2_generated_CloudTasks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go index eb39a62fcba..689e9c8a925 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_GetQueue] +// [START cloudtasks_v2_generated_CloudTasks_GetQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_GetQueue] +// [END cloudtasks_v2_generated_CloudTasks_GetQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go index 6bc7cc8a854..35cabd28fc6 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_GetTask] +// [START cloudtasks_v2_generated_CloudTasks_GetTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_GetTask] +// [END cloudtasks_v2_generated_CloudTasks_GetTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go index 9e6d82bd799..560fc3194e0 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_ListQueues] +// [START cloudtasks_v2_generated_CloudTasks_ListQueues_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_ListQueues] +// [END cloudtasks_v2_generated_CloudTasks_ListQueues_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go index c10a1aed1d9..f6570a6ea20 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_ListTasks] +// [START cloudtasks_v2_generated_CloudTasks_ListTasks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_ListTasks] +// [END cloudtasks_v2_generated_CloudTasks_ListTasks_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/NewClient/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/NewClient/main.go deleted file mode 100644 index 8f87fec6787..00000000000 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudtasks_generated_cloudtasks_apiv2_NewClient] - -package main - -import ( - "context" - - cloudtasks "cloud.google.com/go/cloudtasks/apiv2" -) - -func main() { - ctx := context.Background() - c, err := cloudtasks.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudtasks_generated_cloudtasks_apiv2_NewClient] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go index b1ea6122d7d..cfaa7297c15 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_PauseQueue] +// [START cloudtasks_v2_generated_CloudTasks_PauseQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_PauseQueue] +// [END cloudtasks_v2_generated_CloudTasks_PauseQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go index 416235245be..a6ae1503a50 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_PurgeQueue] +// [START cloudtasks_v2_generated_CloudTasks_PurgeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_PurgeQueue] +// [END cloudtasks_v2_generated_CloudTasks_PurgeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go index 659b48d28d3..5dff3597057 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_ResumeQueue] +// [START cloudtasks_v2_generated_CloudTasks_ResumeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_ResumeQueue] +// [END cloudtasks_v2_generated_CloudTasks_ResumeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go index 3c58c5f82c2..8b0c788821e 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_RunTask] +// [START cloudtasks_v2_generated_CloudTasks_RunTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_RunTask] +// [END cloudtasks_v2_generated_CloudTasks_RunTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go index 3dc80a1b0b6..c979bee6f9c 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_SetIamPolicy] +// [START cloudtasks_v2_generated_CloudTasks_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_SetIamPolicy] +// [END cloudtasks_v2_generated_CloudTasks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go index 545fc7ec781..3fb675bedb5 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_TestIamPermissions] +// [START cloudtasks_v2_generated_CloudTasks_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_TestIamPermissions] +// [END cloudtasks_v2_generated_CloudTasks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go index 1b301d3f620..3585aefa0e0 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2_Client_UpdateQueue] +// [START cloudtasks_v2_generated_CloudTasks_UpdateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2_Client_UpdateQueue] +// [END cloudtasks_v2_generated_CloudTasks_UpdateQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go index 010f066fa96..49e03f4eb81 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_AcknowledgeTask] +// [START cloudtasks_v2beta2_generated_CloudTasks_AcknowledgeTask_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_AcknowledgeTask] +// [END cloudtasks_v2beta2_generated_CloudTasks_AcknowledgeTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go index 9d75caf33c9..ff870ca8601 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_CancelLease] +// [START cloudtasks_v2beta2_generated_CloudTasks_CancelLease_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_CancelLease] +// [END cloudtasks_v2beta2_generated_CloudTasks_CancelLease_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go index 1afd2396702..2ecf65cc15c 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_CreateQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_CreateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_CreateQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_CreateQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go index f0b52cf7975..c35eb2dbf4b 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_CreateTask] +// [START cloudtasks_v2beta2_generated_CloudTasks_CreateTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_CreateTask] +// [END cloudtasks_v2beta2_generated_CloudTasks_CreateTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go index 6a078614535..93b076e98f2 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_DeleteQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_DeleteQueue_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_DeleteQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_DeleteQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go index 262e062c157..eb155084e36 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_DeleteTask] +// [START cloudtasks_v2beta2_generated_CloudTasks_DeleteTask_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_DeleteTask] +// [END cloudtasks_v2beta2_generated_CloudTasks_DeleteTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go index 44875fb2b28..e2d62d85fdc 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetIamPolicy] +// [START cloudtasks_v2beta2_generated_CloudTasks_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetIamPolicy] +// [END cloudtasks_v2beta2_generated_CloudTasks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go index a67971c56e2..4a8466ae779 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_GetQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_GetQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go index 7ba5d7f2132..7cbd2de9e1b 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetTask] +// [START cloudtasks_v2beta2_generated_CloudTasks_GetTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_GetTask] +// [END cloudtasks_v2beta2_generated_CloudTasks_GetTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go index 8a9f7ee85e8..32a7f807665 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_LeaseTasks] +// [START cloudtasks_v2beta2_generated_CloudTasks_LeaseTasks_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_LeaseTasks] +// [END cloudtasks_v2beta2_generated_CloudTasks_LeaseTasks_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go index 0349fbeaeb6..ee25ba0d1e2 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_ListQueues] +// [START cloudtasks_v2beta2_generated_CloudTasks_ListQueues_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_ListQueues] +// [END cloudtasks_v2beta2_generated_CloudTasks_ListQueues_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go index 3fbe65f257e..7942089f279 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_ListTasks] +// [START cloudtasks_v2beta2_generated_CloudTasks_ListTasks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_ListTasks] +// [END cloudtasks_v2beta2_generated_CloudTasks_ListTasks_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/NewClient/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/NewClient/main.go deleted file mode 100644 index 8edeb737d25..00000000000 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudtasks_generated_cloudtasks_apiv2beta2_NewClient] - -package main - -import ( - "context" - - cloudtasks "cloud.google.com/go/cloudtasks/apiv2beta2" -) - -func main() { - ctx := context.Background() - c, err := cloudtasks.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudtasks_generated_cloudtasks_apiv2beta2_NewClient] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go index 4b529c62295..6f94730f169 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_PauseQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_PauseQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_PauseQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_PauseQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go index 04929d76c66..9d4083a618f 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_PurgeQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_PurgeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_PurgeQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_PurgeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go index dae256a7145..0a79856ced8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_RenewLease] +// [START cloudtasks_v2beta2_generated_CloudTasks_RenewLease_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_RenewLease] +// [END cloudtasks_v2beta2_generated_CloudTasks_RenewLease_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go index f146c50725b..f8298c6459e 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_ResumeQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_ResumeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_ResumeQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_ResumeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go index 5ac81b2c4cd..b51c7d43eeb 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_RunTask] +// [START cloudtasks_v2beta2_generated_CloudTasks_RunTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_RunTask] +// [END cloudtasks_v2beta2_generated_CloudTasks_RunTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go index 702327f3711..b521dbd8cc8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_SetIamPolicy] +// [START cloudtasks_v2beta2_generated_CloudTasks_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_SetIamPolicy] +// [END cloudtasks_v2beta2_generated_CloudTasks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go index 1feae87d67b..4b5a8cd8a44 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_TestIamPermissions] +// [START cloudtasks_v2beta2_generated_CloudTasks_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_TestIamPermissions] +// [END cloudtasks_v2beta2_generated_CloudTasks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go index 307f31a6f86..f774dd42e26 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta2_Client_UpdateQueue] +// [START cloudtasks_v2beta2_generated_CloudTasks_UpdateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta2_Client_UpdateQueue] +// [END cloudtasks_v2beta2_generated_CloudTasks_UpdateQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go index 0ad9cc2e76d..8220d15fdd3 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_CreateQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_CreateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_CreateQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_CreateQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go index 7eee5662a6a..c67f7f448de 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_CreateTask] +// [START cloudtasks_v2beta3_generated_CloudTasks_CreateTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_CreateTask] +// [END cloudtasks_v2beta3_generated_CloudTasks_CreateTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go index 86af15d050e..5098d291af8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_DeleteQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_DeleteQueue_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_DeleteQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_DeleteQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go index 371292decc5..b0477a85973 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_DeleteTask] +// [START cloudtasks_v2beta3_generated_CloudTasks_DeleteTask_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_DeleteTask] +// [END cloudtasks_v2beta3_generated_CloudTasks_DeleteTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go index 56f49621de0..8d358fddcd6 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetIamPolicy] +// [START cloudtasks_v2beta3_generated_CloudTasks_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetIamPolicy] +// [END cloudtasks_v2beta3_generated_CloudTasks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go index 128b31f2e52..4e7268d87eb 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_GetQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_GetQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go index 3694011fbd9..5265a7fde23 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetTask] +// [START cloudtasks_v2beta3_generated_CloudTasks_GetTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_GetTask] +// [END cloudtasks_v2beta3_generated_CloudTasks_GetTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go index 8a2e5f22a73..58bcd00bc9f 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_ListQueues] +// [START cloudtasks_v2beta3_generated_CloudTasks_ListQueues_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_ListQueues] +// [END cloudtasks_v2beta3_generated_CloudTasks_ListQueues_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go index c59c31151e2..cf4b9f6a5c6 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_ListTasks] +// [START cloudtasks_v2beta3_generated_CloudTasks_ListTasks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_ListTasks] +// [END cloudtasks_v2beta3_generated_CloudTasks_ListTasks_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/NewClient/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/NewClient/main.go deleted file mode 100644 index 99aed62cfce..00000000000 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudtasks_generated_cloudtasks_apiv2beta3_NewClient] - -package main - -import ( - "context" - - cloudtasks "cloud.google.com/go/cloudtasks/apiv2beta3" -) - -func main() { - ctx := context.Background() - c, err := cloudtasks.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudtasks_generated_cloudtasks_apiv2beta3_NewClient] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go index b85f3fcea85..2b67116d85d 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_PauseQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_PauseQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_PauseQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_PauseQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go index 3c842556c64..2d1f279800e 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_PurgeQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_PurgeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_PurgeQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_PurgeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go index f42dd2782bc..90ccfab354d 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_ResumeQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_ResumeQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_ResumeQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_ResumeQueue_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go index afc85fdd62c..dcac56dd9e7 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_RunTask] +// [START cloudtasks_v2beta3_generated_CloudTasks_RunTask_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_RunTask] +// [END cloudtasks_v2beta3_generated_CloudTasks_RunTask_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go index ca5a2ba910d..192a3b4d9a1 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_SetIamPolicy] +// [START cloudtasks_v2beta3_generated_CloudTasks_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_SetIamPolicy] +// [END cloudtasks_v2beta3_generated_CloudTasks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go index dab1034d9a9..dd7d0ca3c94 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_TestIamPermissions] +// [START cloudtasks_v2beta3_generated_CloudTasks_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_TestIamPermissions] +// [END cloudtasks_v2beta3_generated_CloudTasks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go index b9ba6c788db..5576ff2b98a 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudtasks_generated_cloudtasks_apiv2beta3_Client_UpdateQueue] +// [START cloudtasks_v2beta3_generated_CloudTasks_UpdateQueue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudtasks_generated_cloudtasks_apiv2beta3_Client_UpdateQueue] +// [END cloudtasks_v2beta3_generated_CloudTasks_UpdateQueue_sync] diff --git a/internal/generated/snippets/compute/metadata/Client/NewClient/main.go b/internal/generated/snippets/compute/metadata/Client/NewClient/main.go deleted file mode 100644 index f56088a9e98..00000000000 --- a/internal/generated/snippets/compute/metadata/Client/NewClient/main.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START compute_generated_compute_metadata_NewClient] - -package main - -import ( - "net/http" - - "cloud.google.com/go/compute/metadata" -) - -// This example demonstrates how to use your own transport when using this package. -func main() { - c := metadata.NewClient(&http.Client{Transport: userAgentTransport{ - userAgent: "my-user-agent", - base: http.DefaultTransport, - }}) - p, err := c.ProjectID() - if err != nil { - // TODO: Handle error. - } - _ = p // TODO: Use p. -} - -// userAgentTransport sets the User-Agent header before calling base. -type userAgentTransport struct { - userAgent string - base http.RoundTripper -} - -// RoundTrip implements the http.RoundTripper interface. -func (t userAgentTransport) RoundTrip(req *http.Request) (*http.Response, error) { - req.Header.Set("User-Agent", t.userAgent) - return t.base.RoundTrip(req) -} - -// [END compute_generated_compute_metadata_NewClient] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go index b10f189cab2..f70b5899b74 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_CancelOperation] +// [START container_v1_generated_ClusterManager_CancelOperation_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END container_generated_container_apiv1_ClusterManagerClient_CancelOperation] +// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go index 2ad163b9334..739bcaa0d53 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_CompleteIPRotation] +// [START container_v1_generated_ClusterManager_CompleteIPRotation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_CompleteIPRotation] +// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go index 5a6593af9a6..da4bf996347 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_CreateCluster] +// [START container_v1_generated_ClusterManager_CreateCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_CreateCluster] +// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go index bc756ba6a49..fbd474d3412 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_CreateNodePool] +// [START container_v1_generated_ClusterManager_CreateNodePool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_CreateNodePool] +// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go index 659bc561b02..bf0bf5682bb 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_DeleteCluster] +// [START container_v1_generated_ClusterManager_DeleteCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_DeleteCluster] +// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go index 9860806fccc..19b628fd6b5 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_DeleteNodePool] +// [START container_v1_generated_ClusterManager_DeleteNodePool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_DeleteNodePool] +// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go index 2aa951f8ba6..2790c01b953 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_GetCluster] +// [START container_v1_generated_ClusterManager_GetCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_GetCluster] +// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go index 46a5e6227b3..03ff2ebc081 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_GetJSONWebKeys] +// [START container_v1_generated_ClusterManager_GetJSONWebKeys_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_GetJSONWebKeys] +// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go index 5db7491efa6..8d8e7a4264a 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_GetNodePool] +// [START container_v1_generated_ClusterManager_GetNodePool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_GetNodePool] +// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go index e318d75ea9e..efcf2464275 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_GetOperation] +// [START container_v1_generated_ClusterManager_GetOperation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_GetOperation] +// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go index 92bde6e2ae5..a2fe4ad5200 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_GetServerConfig] +// [START container_v1_generated_ClusterManager_GetServerConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_GetServerConfig] +// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go index 4683ae7cbad..599364cdd2e 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_ListClusters] +// [START container_v1_generated_ClusterManager_ListClusters_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_ListClusters] +// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go index f69e1cd2534..05fe77730b5 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_ListNodePools] +// [START container_v1_generated_ClusterManager_ListNodePools_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_ListNodePools] +// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go index 8648c02d1d8..ea180764675 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_ListOperations] +// [START container_v1_generated_ClusterManager_ListOperations_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_ListOperations] +// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go index 9a0cedba271..bf071f641ee 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_ListUsableSubnetworks] +// [START container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END container_generated_container_apiv1_ClusterManagerClient_ListUsableSubnetworks] +// [END container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/NewClusterManagerClient/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/NewClusterManagerClient/main.go deleted file mode 100644 index c434b4aaa93..00000000000 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/NewClusterManagerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START container_generated_container_apiv1_NewClusterManagerClient] - -package main - -import ( - "context" - - container "cloud.google.com/go/container/apiv1" -) - -func main() { - ctx := context.Background() - c, err := container.NewClusterManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END container_generated_container_apiv1_NewClusterManagerClient] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go index 9c890681408..6113829a4de 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_RollbackNodePoolUpgrade] +// [START container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_RollbackNodePoolUpgrade] +// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go index a3c5751e4e2..5b7457ec7bb 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetAddonsConfig] +// [START container_v1_generated_ClusterManager_SetAddonsConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetAddonsConfig] +// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go index 8f769d20137..d882b7d8f91 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetLabels] +// [START container_v1_generated_ClusterManager_SetLabels_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetLabels] +// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go index 22eb8463397..b377cee7fba 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetLegacyAbac] +// [START container_v1_generated_ClusterManager_SetLegacyAbac_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetLegacyAbac] +// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go index 011d973e6d3..52cdfa14478 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetLocations] +// [START container_v1_generated_ClusterManager_SetLocations_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetLocations] +// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go index 67ed6d1ef06..23ba0b76a12 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetLoggingService] +// [START container_v1_generated_ClusterManager_SetLoggingService_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetLoggingService] +// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go index a942ed66936..c62a980e25d 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetMaintenancePolicy] +// [START container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetMaintenancePolicy] +// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go index bf37f9e347d..b48163b2757 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetMasterAuth] +// [START container_v1_generated_ClusterManager_SetMasterAuth_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetMasterAuth] +// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go index b89f272a32b..28a52fa3862 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetMonitoringService] +// [START container_v1_generated_ClusterManager_SetMonitoringService_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetMonitoringService] +// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go index aca94150e44..5d22c09425b 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetNetworkPolicy] +// [START container_v1_generated_ClusterManager_SetNetworkPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetNetworkPolicy] +// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go index 46c0dfd31cc..be6f930bb88 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetNodePoolAutoscaling] +// [START container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetNodePoolAutoscaling] +// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go index 60123861c84..78fb775a147 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetNodePoolManagement] +// [START container_v1_generated_ClusterManager_SetNodePoolManagement_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetNodePoolManagement] +// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go index 81b7004c81c..fe35ba8b293 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_SetNodePoolSize] +// [START container_v1_generated_ClusterManager_SetNodePoolSize_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_SetNodePoolSize] +// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go index 5b336d3cbcd..a2538e489e9 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_StartIPRotation] +// [START container_v1_generated_ClusterManager_StartIPRotation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_StartIPRotation] +// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go index 862dcbcee8b..885f24402fe 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_UpdateCluster] +// [START container_v1_generated_ClusterManager_UpdateCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_UpdateCluster] +// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go index ccf48efbc03..5e2fdb56524 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_UpdateMaster] +// [START container_v1_generated_ClusterManager_UpdateMaster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_UpdateMaster] +// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go index c52b21bab2e..f1689673051 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START container_generated_container_apiv1_ClusterManagerClient_UpdateNodePool] +// [START container_v1_generated_ClusterManager_UpdateNodePool_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END container_generated_container_apiv1_ClusterManagerClient_UpdateNodePool] +// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetIamPolicy/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetIamPolicy/main.go deleted file mode 100644 index 011c6c3006d..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetIamPolicy/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_GetIamPolicy] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - iampb "google.golang.org/genproto/googleapis/iam/v1" -) - -func main() { - // import iampb "google.golang.org/genproto/googleapis/iam/v1" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &iampb.GetIamPolicyRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetIamPolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_GetIamPolicy] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetScanConfig/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetScanConfig/main.go deleted file mode 100644 index 0c22d5ffd0a..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/GetScanConfig/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_GetScanConfig] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" -) - -func main() { - // import containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &containeranalysispb.GetScanConfigRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetScanConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_GetScanConfig] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/ListScanConfigs/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/ListScanConfigs/main.go deleted file mode 100644 index 0af00a15e15..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/ListScanConfigs/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_ListScanConfigs] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - "google.golang.org/api/iterator" - containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" -) - -func main() { - // import containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" - // import "google.golang.org/api/iterator" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &containeranalysispb.ListScanConfigsRequest{ - // TODO: Fill request struct fields. - } - it := c.ListScanConfigs(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_ListScanConfigs] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/NewContainerAnalysisV1Beta1Client/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/NewContainerAnalysisV1Beta1Client/main.go deleted file mode 100644 index 700a218b9c6..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/NewContainerAnalysisV1Beta1Client/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_NewContainerAnalysisV1Beta1Client] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_NewContainerAnalysisV1Beta1Client] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/SetIamPolicy/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/SetIamPolicy/main.go deleted file mode 100644 index eac34117da1..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/SetIamPolicy/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_SetIamPolicy] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - iampb "google.golang.org/genproto/googleapis/iam/v1" -) - -func main() { - // import iampb "google.golang.org/genproto/googleapis/iam/v1" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &iampb.SetIamPolicyRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.SetIamPolicy(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_SetIamPolicy] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/TestIamPermissions/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/TestIamPermissions/main.go deleted file mode 100644 index c6ab11fb39b..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/TestIamPermissions/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_TestIamPermissions] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - iampb "google.golang.org/genproto/googleapis/iam/v1" -) - -func main() { - // import iampb "google.golang.org/genproto/googleapis/iam/v1" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &iampb.TestIamPermissionsRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.TestIamPermissions(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_TestIamPermissions] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/UpdateScanConfig/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/UpdateScanConfig/main.go deleted file mode 100644 index 147fadca4cb..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/ContainerAnalysisV1Beta1Client/UpdateScanConfig/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_UpdateScanConfig] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" - containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" -) - -func main() { - // import containeranalysispb "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" - - ctx := context.Background() - c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &containeranalysispb.UpdateScanConfigRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.UpdateScanConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_ContainerAnalysisV1Beta1Client_UpdateScanConfig] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go index 5776e573aa6..91c656b84d1 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_BatchCreateNotes] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_BatchCreateNotes] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go index 4d412d0172a..88b10fedd49 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_BatchCreateOccurrences] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_BatchCreateOccurrences] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go index 9f40a9e9d87..79d19222942 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_CreateNote] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_CreateNote] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go index 34a1401a477..2237a54d284 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_CreateOccurrence] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_CreateOccurrence] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go index b6ec4265cb1..d4af6d512a1 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_DeleteNote] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_DeleteNote] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go index 48c4145e239..bb6faf7a25f 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_DeleteOccurrence] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_DeleteOccurrence] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go index e1dadaa1f5a..6b974219c3e 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetNote] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetNote] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go index 49d31f1c199..1bdfb9244b2 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetOccurrence] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetOccurrence] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go index 5d0f7d11a61..b2a213ce0c6 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetOccurrenceNote] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetOccurrenceNote] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go index 590e7681c1e..4e1b37480bd 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetVulnerabilityOccurrencesSummary] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_GetVulnerabilityOccurrencesSummary] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go index 067849e278c..d9dfbf0457c 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListNoteOccurrences] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListNoteOccurrences] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go index 26c663070d6..d4be57eaf75 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListNotes] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListNotes] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go index e96b1ee022d..c4a6c6aaf26 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListOccurrences] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_ListOccurrences] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/NewGrafeasV1Beta1Client/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/NewGrafeasV1Beta1Client/main.go deleted file mode 100644 index c4ab3f2d636..00000000000 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/NewGrafeasV1Beta1Client/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START containeranalysis_generated_containeranalysis_apiv1beta1_NewGrafeasV1Beta1Client] - -package main - -import ( - "context" - - containeranalysis "cloud.google.com/go/containeranalysis/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END containeranalysis_generated_containeranalysis_apiv1beta1_NewGrafeasV1Beta1Client] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go index a5d8ab931a8..271ddbaab54 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_UpdateNote] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_UpdateNote] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_sync] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go index 4ac14e02528..ac1e5518b53 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_UpdateOccurrence] +// [START containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END containeranalysis_generated_containeranalysis_apiv1beta1_GrafeasV1Beta1Client_UpdateOccurrence] +// [END containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go index b79b059a328..a3c1dc906c6 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_CreateEntry] +// [START datacatalog_v1_generated_DataCatalog_CreateEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_CreateEntry] +// [END datacatalog_v1_generated_DataCatalog_CreateEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go index 22027aa076a..a5e4ffaba8c 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_CreateEntryGroup] +// [START datacatalog_v1_generated_DataCatalog_CreateEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_CreateEntryGroup] +// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go index 95952ce96a3..e4365efdbdb 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_CreateTag] +// [START datacatalog_v1_generated_DataCatalog_CreateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_CreateTag] +// [END datacatalog_v1_generated_DataCatalog_CreateTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go index bbac610a23e..5ce2a175ec3 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_CreateTagTemplate] +// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_CreateTagTemplate] +// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go index 67190f5551a..176c1b0763f 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_CreateTagTemplateField] +// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_CreateTagTemplateField] +// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go index 393483c0b18..f2c8b0dc073 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_DeleteEntry] +// [START datacatalog_v1_generated_DataCatalog_DeleteEntry_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_DeleteEntry] +// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go index a6d61aad123..797c6018a6c 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_DeleteEntryGroup] +// [START datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_DeleteEntryGroup] +// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go index 2412b14fcd2..fe794d32d9e 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_DeleteTag] +// [START datacatalog_v1_generated_DataCatalog_DeleteTag_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_DeleteTag] +// [END datacatalog_v1_generated_DataCatalog_DeleteTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go index e0d396df8df..b2c7b20eb76 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_DeleteTagTemplate] +// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_DeleteTagTemplate] +// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go index 6124ae2cd00..765f0174ed9 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_DeleteTagTemplateField] +// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_DeleteTagTemplateField] +// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go index 65d69496109..19115e76e13 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_GetEntry] +// [START datacatalog_v1_generated_DataCatalog_GetEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_GetEntry] +// [END datacatalog_v1_generated_DataCatalog_GetEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go index 0d35253924c..574aded9e4d 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_GetEntryGroup] +// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_GetEntryGroup] +// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go index 24816d5c597..52d337d0fc7 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_GetIamPolicy] +// [START datacatalog_v1_generated_DataCatalog_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_GetIamPolicy] +// [END datacatalog_v1_generated_DataCatalog_GetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go index 93feb4b686f..cb8e53630c7 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_GetTagTemplate] +// [START datacatalog_v1_generated_DataCatalog_GetTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_GetTagTemplate] +// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go index 22a6a302a4a..712d024144f 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_ListEntries] +// [START datacatalog_v1_generated_DataCatalog_ListEntries_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_ListEntries] +// [END datacatalog_v1_generated_DataCatalog_ListEntries_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go index 72b42449ba3..3ec9ccd78ba 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_ListEntryGroups] +// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_ListEntryGroups] +// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go index a0c8654a872..bf1468b21d4 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_ListTags] +// [START datacatalog_v1_generated_DataCatalog_ListTags_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_ListTags] +// [END datacatalog_v1_generated_DataCatalog_ListTags_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go index 8fa87ac2ef7..1d03f6e6ad7 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_LookupEntry] +// [START datacatalog_v1_generated_DataCatalog_LookupEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_LookupEntry] +// [END datacatalog_v1_generated_DataCatalog_LookupEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/NewClient/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/NewClient/main.go deleted file mode 100644 index 282e9ce7035..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1_NewClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1_NewClient] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go index 1981009a353..f65a9316aac 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_RenameTagTemplateField] +// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_RenameTagTemplateField] +// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go index 414f5998536..69d766781e6 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_RenameTagTemplateFieldEnumValue] +// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_RenameTagTemplateFieldEnumValue] +// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go index 43b4ecfd023..d9a4feedf47 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_SearchCatalog] +// [START datacatalog_v1_generated_DataCatalog_SearchCatalog_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_Client_SearchCatalog] +// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go index ded4f4d95cc..8026f4e230d 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_SetIamPolicy] +// [START datacatalog_v1_generated_DataCatalog_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_SetIamPolicy] +// [END datacatalog_v1_generated_DataCatalog_SetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go index bca3f8fc128..3209fe81275 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_TestIamPermissions] +// [START datacatalog_v1_generated_DataCatalog_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_TestIamPermissions] +// [END datacatalog_v1_generated_DataCatalog_TestIamPermissions_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go index c82b0b5978f..1951f8f9dcf 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_UpdateEntry] +// [START datacatalog_v1_generated_DataCatalog_UpdateEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_UpdateEntry] +// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go index 27c3baf2953..ea900462ef1 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_UpdateEntryGroup] +// [START datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_UpdateEntryGroup] +// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go index 0321703d7a6..bb333fa164a 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_UpdateTag] +// [START datacatalog_v1_generated_DataCatalog_UpdateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_UpdateTag] +// [END datacatalog_v1_generated_DataCatalog_UpdateTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go index affe685289e..75051a4e4a8 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_UpdateTagTemplate] +// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_UpdateTagTemplate] +// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go index 5628fa8b13e..defef4c7e90 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_Client_UpdateTagTemplateField] +// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_Client_UpdateTagTemplateField] +// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go index 85e1d707445..0460a48db9b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_CreatePolicyTag] +// [START datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_CreatePolicyTag] +// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go index e5cf9c5421e..ebbb3bd95f2 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_CreateTaxonomy] +// [START datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_CreateTaxonomy] +// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go index 1b652ffe227..1aa198055cd 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_DeletePolicyTag] +// [START datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_DeletePolicyTag] +// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go index bc5f568d84b..87791c808a1 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_DeleteTaxonomy] +// [START datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_DeleteTaxonomy] +// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go index 8fc3006d48c..19614a0282f 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetIamPolicy] +// [START datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetIamPolicy] +// [END datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go index 1cfa600f538..c419bbbb687 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetPolicyTag] +// [START datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetPolicyTag] +// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go index 1c1371f949c..d44d15d35f6 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetTaxonomy] +// [START datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_GetTaxonomy] +// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go index 77fe7192b11..78f50c137f7 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_ListPolicyTags] +// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_ListPolicyTags] +// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go index f26b02e0ae8..b882963dd23 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_ListTaxonomies] +// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_ListTaxonomies] +// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go deleted file mode 100644 index 612271ae6e5..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1_NewPolicyTagManagerClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewPolicyTagManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1_NewPolicyTagManagerClient] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go index f6c701d96f3..1042820c982 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_SetIamPolicy] +// [START datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_SetIamPolicy] +// [END datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go index 15ef857c472..234c2d6ba62 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_TestIamPermissions] +// [START datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_TestIamPermissions] +// [END datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go index a44d3da053f..46a86900c73 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_UpdatePolicyTag] +// [START datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_UpdatePolicyTag] +// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go index 0c287ee06dd..3188761d27d 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_UpdateTaxonomy] +// [START datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerClient_UpdateTaxonomy] +// [END datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go index 876c3bcb703..d2e517f72c2 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerSerializationClient_ExportTaxonomies] +// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerSerializationClient_ExportTaxonomies] +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go index b326fd1738a..a771b6d2ac0 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1_PolicyTagManagerSerializationClient_ImportTaxonomies] +// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1_PolicyTagManagerSerializationClient_ImportTaxonomies] +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go deleted file mode 100644 index 9e5f8fa1789..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1_NewPolicyTagManagerSerializationClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1_NewPolicyTagManagerSerializationClient] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go index 131f8ca5a1e..611a2d0b855 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_CreateEntry] +// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_CreateEntry] +// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go index 4113ee0f2f5..aaeb05025d6 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_CreateEntryGroup] +// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_CreateEntryGroup] +// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go index 791bad0860c..8e102c2da88 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTag] +// [START datacatalog_v1beta1_generated_DataCatalog_CreateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTag] +// [END datacatalog_v1beta1_generated_DataCatalog_CreateTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go index 4e6f3db1674..766863b0062 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTagTemplate] +// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTagTemplate] +// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go index 938ce9a731f..d9fdacf4f9e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTagTemplateField] +// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_CreateTagTemplateField] +// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go index 4fddedf9679..0c57c44272f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteEntry] +// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteEntry] +// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go index 2efbea6a08c..ad7ac0c5d47 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteEntryGroup] +// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteEntryGroup] +// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go index c9b3b3835c5..eaee889ee42 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTag] +// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTag_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTag] +// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go index 7071170c607..75a5bf30937 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTagTemplate] +// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTagTemplate] +// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go index 4c628d4549c..27c7e905597 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTagTemplateField] +// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_DeleteTagTemplateField] +// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go index 3c892271ed8..9d56c101faa 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_GetEntry] +// [START datacatalog_v1beta1_generated_DataCatalog_GetEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_GetEntry] +// [END datacatalog_v1beta1_generated_DataCatalog_GetEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go index 33fe382410b..7ce0befaaac 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_GetEntryGroup] +// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_GetEntryGroup] +// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go index a3ab77e6477..11cb9328bf6 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_GetIamPolicy] +// [START datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_GetIamPolicy] +// [END datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go index 8218d4f3c64..8bd493a2b69 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_GetTagTemplate] +// [START datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_GetTagTemplate] +// [END datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go index 144ad173f06..6dedcba3c5e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_ListEntries] +// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_ListEntries] +// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go index 7e26ac70887..25ce077a3dc 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_ListEntryGroups] +// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_ListEntryGroups] +// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go index 6e38e3397a5..9f281c3550f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_ListTags] +// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_ListTags] +// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go index fdd844cf01b..0dd34133b4b 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_LookupEntry] +// [START datacatalog_v1beta1_generated_DataCatalog_LookupEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_LookupEntry] +// [END datacatalog_v1beta1_generated_DataCatalog_LookupEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index 9110eda7150..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1beta1_NewClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go index 64b3416545b..523f065a4b5 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_RenameTagTemplateField] +// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_RenameTagTemplateField] +// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go index d1d04ba2a22..9e4dfa47cd3 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_SearchCatalog] +// [START datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_SearchCatalog] +// [END datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go index 12de18c1236..c13cd4b763e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_SetIamPolicy] +// [START datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_SetIamPolicy] +// [END datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go index 9538742dfca..136cddb1436 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_TestIamPermissions] +// [START datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_TestIamPermissions] +// [END datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go index 126b0c9260c..8bbc857270a 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateEntry] +// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateEntry] +// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go index db190baef89..017d4bc9cc4 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateEntryGroup] +// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateEntryGroup] +// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go index 428feaa15ca..32297eddeb2 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTag] +// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTag] +// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go index c8d1d51b416..3548f370b31 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTagTemplate] +// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTagTemplate] +// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go index 34da8398d54..eb3a757cc86 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTagTemplateField] +// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_Client_UpdateTagTemplateField] +// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go index ee56b9441b6..9d72ab9689e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_CreatePolicyTag] +// [START datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_CreatePolicyTag] +// [END datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go index 15640d236d6..0979759d1dd 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_CreateTaxonomy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_CreateTaxonomy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go index 05507f4bed2..9f7862c8e7e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_DeletePolicyTag] +// [START datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_DeletePolicyTag] +// [END datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go index 31d13041358..f6aacb2842f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_DeleteTaxonomy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_DeleteTaxonomy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go index b311ee5bbde..1b37dea6e5c 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetIamPolicy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetIamPolicy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go index 33ce2a59785..94ca71d84b4 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetPolicyTag] +// [START datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetPolicyTag] +// [END datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go index 62edb6a09a9..5ded5a8f04f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetTaxonomy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_GetTaxonomy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go index 3a199c5def8..fa402ab5c57 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_ListPolicyTags] +// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_ListPolicyTags] +// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go index 863f94299bc..adf6e058f02 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_ListTaxonomies] +// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_ListTaxonomies] +// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go deleted file mode 100644 index 44da7820041..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/NewPolicyTagManagerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1beta1_NewPolicyTagManagerClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewPolicyTagManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1beta1_NewPolicyTagManagerClient] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go index 9f66e6d7db2..9b96d3b2757 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_SetIamPolicy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_SetIamPolicy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go index 37f541101f9..51d4717296e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_TestIamPermissions] +// [START datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_TestIamPermissions] +// [END datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go index c7d50a4fd02..7cb18d02978 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_UpdatePolicyTag] +// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_UpdatePolicyTag] +// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go index 79c110187bf..def78a9dd67 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_UpdateTaxonomy] +// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerClient_UpdateTaxonomy] +// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go index d636041e050..2286cc49d74 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerSerializationClient_ExportTaxonomies] +// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerSerializationClient_ExportTaxonomies] +// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go index 968a3c67e61..a5d1270c90b 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerSerializationClient_ImportTaxonomies] +// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datacatalog_generated_datacatalog_apiv1beta1_PolicyTagManagerSerializationClient_ImportTaxonomies] +// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go deleted file mode 100644 index f96236413b3..00000000000 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/NewPolicyTagManagerSerializationClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datacatalog_generated_datacatalog_apiv1beta1_NewPolicyTagManagerSerializationClient] - -package main - -import ( - "context" - - datacatalog "cloud.google.com/go/datacatalog/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datacatalog_generated_datacatalog_apiv1beta1_NewPolicyTagManagerSerializationClient] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go index b7dd42b48a5..d8922650ee7 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_CreateAnnotationSpecSet] +// [START datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_CreateAnnotationSpecSet] +// [END datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go index 1f6d1b5df6e..4f65de48ca2 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_CreateDataset] +// [START datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_CreateDataset] +// [END datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go index ab5bd7900f8..356e4d2e418 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_CreateEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_CreateEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go index 0ab1e09cbaa..e040495cf8c 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_CreateInstruction] +// [START datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_CreateInstruction] +// [END datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go index 91465353b68..a23ca5a08d5 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteAnnotatedDataset] +// [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteAnnotatedDataset] +// [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go index 7700c141dad..db56f9a43b3 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteAnnotationSpecSet] +// [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteAnnotationSpecSet] +// [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go index 0be1bd5e981..99504698904 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteDataset] +// [START datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteDataset] +// [END datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go index 293ba77c207..a19247ea8b6 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go index c7466b21529..5f86c6894d1 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteInstruction] +// [START datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_DeleteInstruction] +// [END datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go index 685ad16e25c..5091e44b6b6 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ExportData] +// [START datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ExportData] +// [END datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go index 3e49ab67d1b..f8c57aeb2ea 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetAnnotatedDataset] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetAnnotatedDataset] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go index 2da569cf7ae..c11b642ef12 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetAnnotationSpecSet] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetAnnotationSpecSet] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go index d718e109857..aa62c3638e1 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetDataItem] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetDataItem] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go index d15e7b9f49c..05552a552a2 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetDataset] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetDataset] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go index 7f18690a33d..bcc8b6b5631 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetEvaluation] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetEvaluation] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go index 92de778f8d9..2d02e47b98c 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go index 061121792e9..5c1e8664e84 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetExample] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetExample] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go index a090428c324..7a710e99d1f 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_GetInstruction] +// [START datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_GetInstruction] +// [END datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go index ee43877604e..4a8097df55e 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ImportData] +// [START datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ImportData] +// [END datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go index 56261d06285..ecf130ce769 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_LabelImage] +// [START datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_LabelImage] +// [END datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go index 376b32a3ded..70eb8bbc75d 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_LabelText] +// [START datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_LabelText] +// [END datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go index c95ce0cd48b..4615af65d9c 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_LabelVideo] +// [START datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_LabelVideo] +// [END datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go index 98f628bb9a7..cb74b708add 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListAnnotatedDatasets] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListAnnotatedDatasets] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go index 3b96a6ab666..03c4be87f5b 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListAnnotationSpecSets] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListAnnotationSpecSets] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go index 50b1bb8772a..eebde4cc8f2 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListDataItems] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListDataItems] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go index 77a2680fd41..29a39a69046 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListDatasets] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListDatasets] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go index 711271b4187..38bd598da64 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListEvaluationJobs] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListEvaluationJobs] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go index 4f4ef747e5a..bbcfd75508f 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListExamples] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListExamples] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go index 48ae6e5a954..5ad680ac69f 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ListInstructions] +// [START datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ListInstructions] +// [END datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index 4db8b3cf3c6..00000000000 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datalabeling_generated_datalabeling_apiv1beta1_NewClient] - -package main - -import ( - "context" - - datalabeling "cloud.google.com/go/datalabeling/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := datalabeling.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datalabeling_generated_datalabeling_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go index cb091c84115..dc0f4ef37e7 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_PauseEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_PauseEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go index 72fbf9aefc4..b5d118f5e36 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_ResumeEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_ResumeEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go index f0abddd196a..9f7fdc6e167 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_SearchEvaluations] +// [START datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_SearchEvaluations] +// [END datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go index 41dcf4a4a5f..7a95811745d 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_SearchExampleComparisons] +// [START datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_SearchExampleComparisons] +// [END datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go index 6f912ede399..a6556720c1b 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datalabeling_generated_datalabeling_apiv1beta1_Client_UpdateEvaluationJob] +// [START datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datalabeling_generated_datalabeling_apiv1beta1_Client_UpdateEvaluationJob] +// [END datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go index 7627b446d1b..bf7f8bef21e 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_CreateAutoscalingPolicy] +// [START dataproc_v1_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_CreateAutoscalingPolicy] +// [END dataproc_v1_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go index f04d7a2dfe1..3287e9618c6 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_DeleteAutoscalingPolicy] +// [START dataproc_v1_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_DeleteAutoscalingPolicy] +// [END dataproc_v1_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go index ab80a301bdb..d4fdf2341ed 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_GetAutoscalingPolicy] +// [START dataproc_v1_generated_AutoscalingPolicyService_GetAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_GetAutoscalingPolicy] +// [END dataproc_v1_generated_AutoscalingPolicyService_GetAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go index 6c8e580169e..cbb0ef22e9c 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_ListAutoscalingPolicies] +// [START dataproc_v1_generated_AutoscalingPolicyService_ListAutoscalingPolicies_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_ListAutoscalingPolicies] +// [END dataproc_v1_generated_AutoscalingPolicyService_ListAutoscalingPolicies_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go deleted file mode 100644 index b82c639cc77..00000000000 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1_NewAutoscalingPolicyClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewAutoscalingPolicyClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1_NewAutoscalingPolicyClient] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go index f00fb8a0f33..e6aefb14a2c 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_UpdateAutoscalingPolicy] +// [START dataproc_v1_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_AutoscalingPolicyClient_UpdateAutoscalingPolicy] +// [END dataproc_v1_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go index 09bca9b5345..e09eee1fa5c 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_CreateCluster] +// [START dataproc_v1_generated_ClusterController_CreateCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_CreateCluster] +// [END dataproc_v1_generated_ClusterController_CreateCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go index f88567ea0f6..f8ebe5c913e 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_DeleteCluster] +// [START dataproc_v1_generated_ClusterController_DeleteCluster_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_DeleteCluster] +// [END dataproc_v1_generated_ClusterController_DeleteCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go index bf55154d26c..5724cdd8b62 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_DiagnoseCluster] +// [START dataproc_v1_generated_ClusterController_DiagnoseCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_DiagnoseCluster] +// [END dataproc_v1_generated_ClusterController_DiagnoseCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go index 1f0c8a9f247..9a62e872ceb 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_GetCluster] +// [START dataproc_v1_generated_ClusterController_GetCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_GetCluster] +// [END dataproc_v1_generated_ClusterController_GetCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go index 975fc743364..367ffa487e0 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_ListClusters] +// [START dataproc_v1_generated_ClusterController_ListClusters_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_ListClusters] +// [END dataproc_v1_generated_ClusterController_ListClusters_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/NewClusterControllerClient/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/NewClusterControllerClient/main.go deleted file mode 100644 index 592de9f752e..00000000000 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/NewClusterControllerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1_NewClusterControllerClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewClusterControllerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1_NewClusterControllerClient] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go index 74fefa5a6ab..57fcdb5c004 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_StartCluster] +// [START dataproc_v1_generated_ClusterController_StartCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_StartCluster] +// [END dataproc_v1_generated_ClusterController_StartCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go index 6eddd3541aa..5d03a689cb9 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_StopCluster] +// [START dataproc_v1_generated_ClusterController_StopCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_StopCluster] +// [END dataproc_v1_generated_ClusterController_StopCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go index 47534f2cbe1..f446e0a6a71 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_ClusterControllerClient_UpdateCluster] +// [START dataproc_v1_generated_ClusterController_UpdateCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_ClusterControllerClient_UpdateCluster] +// [END dataproc_v1_generated_ClusterController_UpdateCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go index fd7008fa04a..4d991a31073 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_CancelJob] +// [START dataproc_v1_generated_JobController_CancelJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_CancelJob] +// [END dataproc_v1_generated_JobController_CancelJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go index b37ef77db07..1f663d52aaa 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_DeleteJob] +// [START dataproc_v1_generated_JobController_DeleteJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_DeleteJob] +// [END dataproc_v1_generated_JobController_DeleteJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go index 6be3c7631c4..e16b69884d1 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_GetJob] +// [START dataproc_v1_generated_JobController_GetJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_GetJob] +// [END dataproc_v1_generated_JobController_GetJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go index e0f92536360..79eb506a6b1 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_ListJobs] +// [START dataproc_v1_generated_JobController_ListJobs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_ListJobs] +// [END dataproc_v1_generated_JobController_ListJobs_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/NewJobControllerClient/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/NewJobControllerClient/main.go deleted file mode 100644 index 2cbd59f13e0..00000000000 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/NewJobControllerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1_NewJobControllerClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewJobControllerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1_NewJobControllerClient] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go index a969fd16036..2580d3acb12 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_SubmitJob] +// [START dataproc_v1_generated_JobController_SubmitJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_SubmitJob] +// [END dataproc_v1_generated_JobController_SubmitJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go index 6c7d8586966..2d47584dadb 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_SubmitJobAsOperation] +// [START dataproc_v1_generated_JobController_SubmitJobAsOperation_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_SubmitJobAsOperation] +// [END dataproc_v1_generated_JobController_SubmitJobAsOperation_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go index 16a921b09e8..54dfdb31777 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_JobControllerClient_UpdateJob] +// [START dataproc_v1_generated_JobController_UpdateJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_JobControllerClient_UpdateJob] +// [END dataproc_v1_generated_JobController_UpdateJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go index 6e507fb7ffc..9df90139e0a 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_CreateWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_CreateWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_CreateWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_CreateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go index 4e49c08d96e..2ab5740c430 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_DeleteWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_DeleteWorkflowTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_DeleteWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_DeleteWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go index de2cb89f72d..18c0da652f2 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_GetWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_GetWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_GetWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_GetWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go index 8a4444e1216..470403d28b3 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_InstantiateInlineWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_InstantiateInlineWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go index 56bfdbe795c..c9e6d280571 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_InstantiateWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_InstantiateWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go index 445cbebdbfe..a0e3a5ab5d4 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_ListWorkflowTemplates] +// [START dataproc_v1_generated_WorkflowTemplateService_ListWorkflowTemplates_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_ListWorkflowTemplates] +// [END dataproc_v1_generated_WorkflowTemplateService_ListWorkflowTemplates_sync] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go deleted file mode 100644 index ce0979b5b6e..00000000000 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1_NewWorkflowTemplateClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewWorkflowTemplateClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1_NewWorkflowTemplateClient] diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go index b975445ea7b..3be70293e1a 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_UpdateWorkflowTemplate] +// [START dataproc_v1_generated_WorkflowTemplateService_UpdateWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1_WorkflowTemplateClient_UpdateWorkflowTemplate] +// [END dataproc_v1_generated_WorkflowTemplateService_UpdateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go index 34cb0a07d11..a46213fe1ce 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_CreateAutoscalingPolicy] +// [START dataproc_v1beta2_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_CreateAutoscalingPolicy] +// [END dataproc_v1beta2_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go index 609396d945b..48ac739ec76 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_DeleteAutoscalingPolicy] +// [START dataproc_v1beta2_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_DeleteAutoscalingPolicy] +// [END dataproc_v1beta2_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go index 7c52bff1d54..bb18aa17b8d 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_GetAutoscalingPolicy] +// [START dataproc_v1beta2_generated_AutoscalingPolicyService_GetAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_GetAutoscalingPolicy] +// [END dataproc_v1beta2_generated_AutoscalingPolicyService_GetAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go index f96b52d9c9a..d13a40e0a60 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_ListAutoscalingPolicies] +// [START dataproc_v1beta2_generated_AutoscalingPolicyService_ListAutoscalingPolicies_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_ListAutoscalingPolicies] +// [END dataproc_v1beta2_generated_AutoscalingPolicyService_ListAutoscalingPolicies_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go deleted file mode 100644 index 7e66c8c4d6e..00000000000 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/NewAutoscalingPolicyClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1beta2_NewAutoscalingPolicyClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewAutoscalingPolicyClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1beta2_NewAutoscalingPolicyClient] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go index c65e34505fd..60f4acfd491 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_UpdateAutoscalingPolicy] +// [START dataproc_v1beta2_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_AutoscalingPolicyClient_UpdateAutoscalingPolicy] +// [END dataproc_v1beta2_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/CreateCluster/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/CreateCluster/main.go index 3056ce54c5d..227aa3a93fd 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/CreateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/CreateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_CreateCluster] +// [START dataproc_v1beta2_generated_ClusterController_CreateCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_CreateCluster] +// [END dataproc_v1beta2_generated_ClusterController_CreateCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DeleteCluster/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DeleteCluster/main.go index 8de0b5dcf48..b6a0c7e72e3 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DeleteCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DeleteCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_DeleteCluster] +// [START dataproc_v1beta2_generated_ClusterController_DeleteCluster_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_DeleteCluster] +// [END dataproc_v1beta2_generated_ClusterController_DeleteCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DiagnoseCluster/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DiagnoseCluster/main.go index b96241cc6b3..7c0743e4135 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DiagnoseCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/DiagnoseCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_DiagnoseCluster] +// [START dataproc_v1beta2_generated_ClusterController_DiagnoseCluster_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_DiagnoseCluster] +// [END dataproc_v1beta2_generated_ClusterController_DiagnoseCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/GetCluster/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/GetCluster/main.go index 2dbe8985a54..e7f1bf1d2e3 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/GetCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/GetCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_GetCluster] +// [START dataproc_v1beta2_generated_ClusterController_GetCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_GetCluster] +// [END dataproc_v1beta2_generated_ClusterController_GetCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/ListClusters/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/ListClusters/main.go index 0deb1d44319..6d24d82d2fa 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/ListClusters/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/ListClusters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_ListClusters] +// [START dataproc_v1beta2_generated_ClusterController_ListClusters_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_ListClusters] +// [END dataproc_v1beta2_generated_ClusterController_ListClusters_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/NewClusterControllerClient/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/NewClusterControllerClient/main.go deleted file mode 100644 index 409c54318ba..00000000000 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/NewClusterControllerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1beta2_NewClusterControllerClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewClusterControllerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1beta2_NewClusterControllerClient] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/UpdateCluster/main.go b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/UpdateCluster/main.go index 3da56044a05..79d3608d82d 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/UpdateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/ClusterControllerClient/UpdateCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_UpdateCluster] +// [START dataproc_v1beta2_generated_ClusterController_UpdateCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_ClusterControllerClient_UpdateCluster] +// [END dataproc_v1beta2_generated_ClusterController_UpdateCluster_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/CancelJob/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/CancelJob/main.go index 0102d50e94c..1f692a96250 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/CancelJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/CancelJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_CancelJob] +// [START dataproc_v1beta2_generated_JobController_CancelJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_CancelJob] +// [END dataproc_v1beta2_generated_JobController_CancelJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/DeleteJob/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/DeleteJob/main.go index c6b9135b5d9..1d27d5362f1 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/DeleteJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/DeleteJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_DeleteJob] +// [START dataproc_v1beta2_generated_JobController_DeleteJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_DeleteJob] +// [END dataproc_v1beta2_generated_JobController_DeleteJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/GetJob/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/GetJob/main.go index 5ee0378d792..be360f61c72 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/GetJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/GetJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_GetJob] +// [START dataproc_v1beta2_generated_JobController_GetJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_GetJob] +// [END dataproc_v1beta2_generated_JobController_GetJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/ListJobs/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/ListJobs/main.go index e7ac78fccba..2a35ac91346 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/ListJobs/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/ListJobs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_ListJobs] +// [START dataproc_v1beta2_generated_JobController_ListJobs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_ListJobs] +// [END dataproc_v1beta2_generated_JobController_ListJobs_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/NewJobControllerClient/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/NewJobControllerClient/main.go deleted file mode 100644 index d1fbcecc6a5..00000000000 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/NewJobControllerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1beta2_NewJobControllerClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewJobControllerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1beta2_NewJobControllerClient] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJob/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJob/main.go index 6a311defea5..3f4b0af2531 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_SubmitJob] +// [START dataproc_v1beta2_generated_JobController_SubmitJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_SubmitJob] +// [END dataproc_v1beta2_generated_JobController_SubmitJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJobAsOperation/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJobAsOperation/main.go index c0784b418fe..45b3b4f8ae6 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJobAsOperation/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/SubmitJobAsOperation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_SubmitJobAsOperation] +// [START dataproc_v1beta2_generated_JobController_SubmitJobAsOperation_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_SubmitJobAsOperation] +// [END dataproc_v1beta2_generated_JobController_SubmitJobAsOperation_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/UpdateJob/main.go b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/UpdateJob/main.go index 4d90dfa4010..24b002d8c4f 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/UpdateJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/JobControllerClient/UpdateJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_JobControllerClient_UpdateJob] +// [START dataproc_v1beta2_generated_JobController_UpdateJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_JobControllerClient_UpdateJob] +// [END dataproc_v1beta2_generated_JobController_UpdateJob_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/CreateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/CreateWorkflowTemplate/main.go index 3d7f556717f..a6df9ec449e 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/CreateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/CreateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_CreateWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_CreateWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_CreateWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_CreateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go index 3ef1ee53ab4..abddd102350 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_DeleteWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_DeleteWorkflowTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_DeleteWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_DeleteWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/GetWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/GetWorkflowTemplate/main.go index c4d127b39c3..569b099d5ca 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/GetWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/GetWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_GetWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_GetWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_GetWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_GetWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go index dd966f2c993..73c856a0b10 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_InstantiateInlineWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_InstantiateInlineWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go index 097f667e5fb..f420efed555 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_InstantiateWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_InstantiateWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/ListWorkflowTemplates/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/ListWorkflowTemplates/main.go index e6f2f4f762e..c14cdf2e540 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/ListWorkflowTemplates/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/ListWorkflowTemplates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_ListWorkflowTemplates] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_ListWorkflowTemplates_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_ListWorkflowTemplates] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_ListWorkflowTemplates_sync] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go deleted file mode 100644 index df384d3f227..00000000000 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/NewWorkflowTemplateClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataproc_generated_dataproc_apiv1beta2_NewWorkflowTemplateClient] - -package main - -import ( - "context" - - dataproc "cloud.google.com/go/dataproc/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := dataproc.NewWorkflowTemplateClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataproc_generated_dataproc_apiv1beta2_NewWorkflowTemplateClient] diff --git a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go index c3f000b0cec..13cc29e88c8 100644 --- a/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1beta2/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_UpdateWorkflowTemplate] +// [START dataproc_v1beta2_generated_WorkflowTemplateService_UpdateWorkflowTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataproc_generated_dataproc_apiv1beta2_WorkflowTemplateClient_UpdateWorkflowTemplate] +// [END dataproc_v1beta2_generated_WorkflowTemplateService_UpdateWorkflowTemplate_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/NewAutoSuggestionClient/main.go b/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/NewAutoSuggestionClient/main.go deleted file mode 100644 index 9a7248bf939..00000000000 --- a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/NewAutoSuggestionClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataqna_generated_dataqna_apiv1alpha_NewAutoSuggestionClient] - -package main - -import ( - "context" - - dataqna "cloud.google.com/go/dataqna/apiv1alpha" -) - -func main() { - ctx := context.Background() - c, err := dataqna.NewAutoSuggestionClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataqna_generated_dataqna_apiv1alpha_NewAutoSuggestionClient] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go b/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go index aaa5c27b9ff..64d7cdcbfdd 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_AutoSuggestionClient_SuggestQueries] +// [START dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_AutoSuggestionClient_SuggestQueries] +// [END dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go index 01efe408c92..02420d80fea 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_QuestionClient_CreateQuestion] +// [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_QuestionClient_CreateQuestion] +// [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go index ac3ea7a6612..16ce001947e 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_QuestionClient_ExecuteQuestion] +// [START dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_QuestionClient_ExecuteQuestion] +// [END dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go index 716e3b08bd8..8847271b40d 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_QuestionClient_GetQuestion] +// [START dataqna_v1alpha_generated_QuestionService_GetQuestion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_QuestionClient_GetQuestion] +// [END dataqna_v1alpha_generated_QuestionService_GetQuestion_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go index 986ac7ad249..11371d8ec35 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_QuestionClient_GetUserFeedback] +// [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_QuestionClient_GetUserFeedback] +// [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/NewQuestionClient/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/NewQuestionClient/main.go deleted file mode 100644 index 9a1dac1c9cf..00000000000 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/NewQuestionClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dataqna_generated_dataqna_apiv1alpha_NewQuestionClient] - -package main - -import ( - "context" - - dataqna "cloud.google.com/go/dataqna/apiv1alpha" -) - -func main() { - ctx := context.Background() - c, err := dataqna.NewQuestionClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dataqna_generated_dataqna_apiv1alpha_NewQuestionClient] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go index 55f3394490b..8685e4989ec 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dataqna_generated_dataqna_apiv1alpha_QuestionClient_UpdateUserFeedback] +// [START dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dataqna_generated_dataqna_apiv1alpha_QuestionClient_UpdateUserFeedback] +// [END dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync] diff --git a/internal/generated/snippets/datastore/Client/AllocateIDs/main.go b/internal/generated/snippets/datastore/Client/AllocateIDs/main.go deleted file mode 100644 index 125f97c75d9..00000000000 --- a/internal/generated/snippets/datastore/Client/AllocateIDs/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_AllocateIDs] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - var keys []*datastore.Key - for i := 0; i < 10; i++ { - keys = append(keys, datastore.IncompleteKey("Article", nil)) - } - keys, err = client.AllocateIDs(ctx, keys) - if err != nil { - // TODO: Handle error. - } - _ = keys // TODO: Use keys. -} - -// [END datastore_generated_datastore_Client_AllocateIDs] diff --git a/internal/generated/snippets/datastore/Client/Count/main.go b/internal/generated/snippets/datastore/Client/Count/main.go deleted file mode 100644 index 71763cf4c50..00000000000 --- a/internal/generated/snippets/datastore/Client/Count/main.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Count] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - // Count the number of the post entities. - q := datastore.NewQuery("Post") - n, err := client.Count(ctx, q) - if err != nil { - // TODO: Handle error. - } - fmt.Printf("There are %d posts.", n) -} - -// [END datastore_generated_datastore_Client_Count] diff --git a/internal/generated/snippets/datastore/Client/Delete/main.go b/internal/generated/snippets/datastore/Client/Delete/main.go deleted file mode 100644 index 6dd8b47c3d6..00000000000 --- a/internal/generated/snippets/datastore/Client/Delete/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Delete] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - key := datastore.NameKey("Article", "articled1", nil) - if err := client.Delete(ctx, key); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_Delete] diff --git a/internal/generated/snippets/datastore/Client/DeleteMulti/main.go b/internal/generated/snippets/datastore/Client/DeleteMulti/main.go deleted file mode 100644 index 4c8e0bd3493..00000000000 --- a/internal/generated/snippets/datastore/Client/DeleteMulti/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_DeleteMulti] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - var keys []*datastore.Key - for i := 1; i <= 10; i++ { - keys = append(keys, datastore.IDKey("Article", int64(i), nil)) - } - if err := client.DeleteMulti(ctx, keys); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_DeleteMulti] diff --git a/internal/generated/snippets/datastore/Client/Get/main.go b/internal/generated/snippets/datastore/Client/Get/main.go deleted file mode 100644 index ad5548632bf..00000000000 --- a/internal/generated/snippets/datastore/Client/Get/main.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Get] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - type Article struct { - Title string - Description string - Body string `datastore:",noindex"` - Author *datastore.Key - PublishedAt time.Time - } - key := datastore.NameKey("Article", "articled1", nil) - article := &Article{} - if err := client.Get(ctx, key, article); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_Get] diff --git a/internal/generated/snippets/datastore/Client/GetAll/main.go b/internal/generated/snippets/datastore/Client/GetAll/main.go deleted file mode 100644 index 5dca918e49b..00000000000 --- a/internal/generated/snippets/datastore/Client/GetAll/main.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_GetAll] - -package main - -import ( - "context" - "fmt" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - var posts []*Post - keys, err := client.GetAll(ctx, datastore.NewQuery("Post"), &posts) - if err != nil { - // TODO: Handle error. - } - for i, key := range keys { - fmt.Println(key) - fmt.Println(posts[i]) - } -} - -// [END datastore_generated_datastore_Client_GetAll] diff --git a/internal/generated/snippets/datastore/Client/GetMulti/main.go b/internal/generated/snippets/datastore/Client/GetMulti/main.go deleted file mode 100644 index 1961648adfe..00000000000 --- a/internal/generated/snippets/datastore/Client/GetMulti/main.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_GetMulti] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - keys := []*datastore.Key{ - datastore.NameKey("Post", "post1", nil), - datastore.NameKey("Post", "post2", nil), - datastore.NameKey("Post", "post3", nil), - } - posts := make([]Post, 3) - if err := client.GetMulti(ctx, keys, posts); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_GetMulti] diff --git a/internal/generated/snippets/datastore/Client/Mutate/main.go b/internal/generated/snippets/datastore/Client/Mutate/main.go deleted file mode 100644 index 04642f08f87..00000000000 --- a/internal/generated/snippets/datastore/Client/Mutate/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Mutate] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - key1 := datastore.NameKey("Post", "post1", nil) - key2 := datastore.NameKey("Post", "post2", nil) - key3 := datastore.NameKey("Post", "post3", nil) - key4 := datastore.NameKey("Post", "post4", nil) - - _, err = client.Mutate(ctx, - datastore.NewInsert(key1, Post{Title: "Post 1"}), - datastore.NewUpsert(key2, Post{Title: "Post 2"}), - datastore.NewUpdate(key3, Post{Title: "Post 3"}), - datastore.NewDelete(key4)) - if err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_Mutate] diff --git a/internal/generated/snippets/datastore/Client/NewClient/main.go b/internal/generated/snippets/datastore/Client/NewClient/main.go deleted file mode 100644 index e9f8191785b..00000000000 --- a/internal/generated/snippets/datastore/Client/NewClient/main.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_NewClient] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - _ = client // TODO: Use client. -} - -// [END datastore_generated_datastore_NewClient] diff --git a/internal/generated/snippets/datastore/Client/NewTransaction/main.go b/internal/generated/snippets/datastore/Client/NewTransaction/main.go deleted file mode 100644 index 71bc92e21e3..00000000000 --- a/internal/generated/snippets/datastore/Client/NewTransaction/main.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_NewTransaction] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - const retries = 3 - - // Increment a counter. - // See https://cloud.google.com/appengine/articles/sharding_counters for - // a more scalable solution. - type Counter struct { - Count int - } - - key := datastore.NameKey("counter", "CounterA", nil) - var tx *datastore.Transaction - for i := 0; i < retries; i++ { - tx, err = client.NewTransaction(ctx) - if err != nil { - break - } - - var c Counter - if err = tx.Get(key, &c); err != nil && err != datastore.ErrNoSuchEntity { - break - } - c.Count++ - if _, err = tx.Put(key, &c); err != nil { - break - } - - // Attempt to commit the transaction. If there's a conflict, try again. - if _, err = tx.Commit(); err != datastore.ErrConcurrentTransaction { - break - } - } - if err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_NewTransaction] diff --git a/internal/generated/snippets/datastore/Client/Put/flatten/main.go b/internal/generated/snippets/datastore/Client/Put/flatten/main.go deleted file mode 100644 index 281e90971ac..00000000000 --- a/internal/generated/snippets/datastore/Client/Put/flatten/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Put_flatten] - -package main - -import ( - "context" - "log" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - log.Fatal(err) - } - - type Animal struct { - Name string - Type string - Breed string - } - - type Human struct { - Name string - Height int - Pet Animal `datastore:",flatten"` - } - - newKey := datastore.IncompleteKey("Human", nil) - _, err = client.Put(ctx, newKey, &Human{ - Name: "Susan", - Height: 67, - Pet: Animal{ - Name: "Fluffy", - Type: "Cat", - Breed: "Sphynx", - }, - }) - if err != nil { - log.Fatal(err) - } -} - -// [END datastore_generated_datastore_Client_Put_flatten] diff --git a/internal/generated/snippets/datastore/Client/Put/main.go b/internal/generated/snippets/datastore/Client/Put/main.go deleted file mode 100644 index 36e332bac4b..00000000000 --- a/internal/generated/snippets/datastore/Client/Put/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Put] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - type Article struct { - Title string - Description string - Body string `datastore:",noindex"` - Author *datastore.Key - PublishedAt time.Time - } - newKey := datastore.IncompleteKey("Article", nil) - _, err = client.Put(ctx, newKey, &Article{ - Title: "The title of the article", - Description: "The description of the article...", - Body: "...", - Author: datastore.NameKey("Author", "jbd", nil), - PublishedAt: time.Now(), - }) - if err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_Put] diff --git a/internal/generated/snippets/datastore/Client/PutMulti/interfaceSlice/main.go b/internal/generated/snippets/datastore/Client/PutMulti/interfaceSlice/main.go deleted file mode 100644 index a85f7818223..00000000000 --- a/internal/generated/snippets/datastore/Client/PutMulti/interfaceSlice/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_PutMulti_interfaceSlice] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - keys := []*datastore.Key{ - datastore.NameKey("Post", "post1", nil), - datastore.NameKey("Post", "post2", nil), - } - - // PutMulti with an empty interface slice. - posts := []interface{}{ - &Post{Title: "Post 1", PublishedAt: time.Now()}, - &Post{Title: "Post 2", PublishedAt: time.Now()}, - } - if _, err := client.PutMulti(ctx, keys, posts); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_PutMulti_interfaceSlice] diff --git a/internal/generated/snippets/datastore/Client/PutMulti/slice/main.go b/internal/generated/snippets/datastore/Client/PutMulti/slice/main.go deleted file mode 100644 index 114bb5d06b1..00000000000 --- a/internal/generated/snippets/datastore/Client/PutMulti/slice/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_PutMulti_slice] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - keys := []*datastore.Key{ - datastore.NameKey("Post", "post1", nil), - datastore.NameKey("Post", "post2", nil), - } - - // PutMulti with a Post slice. - posts := []*Post{ - {Title: "Post 1", PublishedAt: time.Now()}, - {Title: "Post 2", PublishedAt: time.Now()}, - } - if _, err := client.PutMulti(ctx, keys, posts); err != nil { - // TODO: Handle error. - } -} - -// [END datastore_generated_datastore_Client_PutMulti_slice] diff --git a/internal/generated/snippets/datastore/Client/Run/main.go b/internal/generated/snippets/datastore/Client/Run/main.go deleted file mode 100644 index 407fd599167..00000000000 --- a/internal/generated/snippets/datastore/Client/Run/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_Run] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - // List the posts published since yesterday. - yesterday := time.Now().Add(-24 * time.Hour) - q := datastore.NewQuery("Post").Filter("PublishedAt >", yesterday) - it := client.Run(ctx, q) - _ = it // TODO: iterate using Next. -} - -// [END datastore_generated_datastore_Client_Run] diff --git a/internal/generated/snippets/datastore/Client/RunInTransaction/main.go b/internal/generated/snippets/datastore/Client/RunInTransaction/main.go deleted file mode 100644 index 3684a816a45..00000000000 --- a/internal/generated/snippets/datastore/Client/RunInTransaction/main.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Client_RunInTransaction] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - // Increment a counter. - // See https://cloud.google.com/appengine/articles/sharding_counters for - // a more scalable solution. - type Counter struct { - Count int - } - - var count int - key := datastore.NameKey("Counter", "singleton", nil) - _, err = client.RunInTransaction(ctx, func(tx *datastore.Transaction) error { - var x Counter - if err := tx.Get(key, &x); err != nil && err != datastore.ErrNoSuchEntity { - return err - } - x.Count++ - if _, err := tx.Put(key, &x); err != nil { - return err - } - count = x.Count - return nil - }) - if err != nil { - // TODO: Handle error. - } - // The value of count is only valid once the transaction is successful - // (RunInTransaction has returned nil). - fmt.Printf("Count=%d\n", count) -} - -// [END datastore_generated_datastore_Client_RunInTransaction] diff --git a/internal/generated/snippets/datastore/Commit/Key/main.go b/internal/generated/snippets/datastore/Commit/Key/main.go deleted file mode 100644 index 9c310941c39..00000000000 --- a/internal/generated/snippets/datastore/Commit/Key/main.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Commit_Key] - -package main - -import ( - "context" - "fmt" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "") - if err != nil { - // TODO: Handle error. - } - var pk1, pk2 *datastore.PendingKey - // Create two posts in a single transaction. - commit, err := client.RunInTransaction(ctx, func(tx *datastore.Transaction) error { - var err error - pk1, err = tx.Put(datastore.IncompleteKey("Post", nil), &Post{Title: "Post 1", PublishedAt: time.Now()}) - if err != nil { - return err - } - pk2, err = tx.Put(datastore.IncompleteKey("Post", nil), &Post{Title: "Post 2", PublishedAt: time.Now()}) - if err != nil { - return err - } - return nil - }) - if err != nil { - // TODO: Handle error. - } - // Now pk1, pk2 are valid PendingKeys. Let's convert them into real keys - // using the Commit object. - k1 := commit.Key(pk1) - k2 := commit.Key(pk2) - fmt.Println(k1, k2) -} - -// [END datastore_generated_datastore_Commit_Key] diff --git a/internal/generated/snippets/datastore/Cursor/DecodeCursor/main.go b/internal/generated/snippets/datastore/Cursor/DecodeCursor/main.go deleted file mode 100644 index 3efb29371fc..00000000000 --- a/internal/generated/snippets/datastore/Cursor/DecodeCursor/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_DecodeCursor] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - // See Query.Start for a fuller example of DecodeCursor. - // getCursor represents a function that returns a cursor from a previous - // iteration in string form. - cursorString := getCursor() - cursor, err := datastore.DecodeCursor(cursorString) - if err != nil { - // TODO: Handle error. - } - _ = cursor // TODO: Use the cursor with Query.Start or Query.End. -} - -func getCursor() string { return "" } - -// [END datastore_generated_datastore_DecodeCursor] diff --git a/internal/generated/snippets/datastore/Iterator/Cursor/main.go b/internal/generated/snippets/datastore/Iterator/Cursor/main.go deleted file mode 100644 index a0b60ea1f0d..00000000000 --- a/internal/generated/snippets/datastore/Iterator/Cursor/main.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Iterator_Cursor] - -package main - -import ( - "context" - "fmt" - "time" - - "cloud.google.com/go/datastore" - "google.golang.org/api/iterator" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Run(ctx, datastore.NewQuery("Post")) - for { - var p Post - _, err := it.Next(&p) - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(p) - cursor, err := it.Cursor() - if err != nil { - // TODO: Handle error. - } - // When printed, a cursor will display as a string that can be passed - // to datastore.DecodeCursor. - fmt.Printf("to resume with this post, use cursor %s\n", cursor) - } -} - -// [END datastore_generated_datastore_Iterator_Cursor] diff --git a/internal/generated/snippets/datastore/Iterator/Next/main.go b/internal/generated/snippets/datastore/Iterator/Next/main.go deleted file mode 100644 index 9937afe4759..00000000000 --- a/internal/generated/snippets/datastore/Iterator/Next/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Iterator_Next] - -package main - -import ( - "context" - "fmt" - "time" - - "cloud.google.com/go/datastore" - "google.golang.org/api/iterator" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - it := client.Run(ctx, datastore.NewQuery("Post")) - for { - var p Post - key, err := it.Next(&p) - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(key, p) - } -} - -// [END datastore_generated_datastore_Iterator_Next] diff --git a/internal/generated/snippets/datastore/Key/DecodeKey/main.go b/internal/generated/snippets/datastore/Key/DecodeKey/main.go deleted file mode 100644 index 4826123e432..00000000000 --- a/internal/generated/snippets/datastore/Key/DecodeKey/main.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_DecodeKey] - -package main - -import ( - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - const encoded = "EgsKB0FydGljbGUQAQ" - key, err := datastore.DecodeKey(encoded) - if err != nil { - // TODO: Handle error. - } - fmt.Println(key) -} - -// [END datastore_generated_datastore_DecodeKey] diff --git a/internal/generated/snippets/datastore/Key/Encode/main.go b/internal/generated/snippets/datastore/Key/Encode/main.go deleted file mode 100644 index 9abaa08713f..00000000000 --- a/internal/generated/snippets/datastore/Key/Encode/main.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Key_Encode] - -package main - -import ( - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - key := datastore.IDKey("Article", 1, nil) - encoded := key.Encode() - fmt.Println(encoded) -} - -// [END datastore_generated_datastore_Key_Encode] diff --git a/internal/generated/snippets/datastore/Key/IDKey/main.go b/internal/generated/snippets/datastore/Key/IDKey/main.go deleted file mode 100644 index 2e325d547cb..00000000000 --- a/internal/generated/snippets/datastore/Key/IDKey/main.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_IDKey] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - // Key with numeric ID. - k := datastore.IDKey("Article", 1, nil) - _ = k // TODO: Use key. -} - -// [END datastore_generated_datastore_IDKey] diff --git a/internal/generated/snippets/datastore/Key/IncompleteKey/main.go b/internal/generated/snippets/datastore/Key/IncompleteKey/main.go deleted file mode 100644 index 4aa0b680919..00000000000 --- a/internal/generated/snippets/datastore/Key/IncompleteKey/main.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_IncompleteKey] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - k := datastore.IncompleteKey("Article", nil) - _ = k // TODO: Use incomplete key. -} - -// [END datastore_generated_datastore_IncompleteKey] diff --git a/internal/generated/snippets/datastore/Key/NameKey/main.go b/internal/generated/snippets/datastore/Key/NameKey/main.go deleted file mode 100644 index 2954a1aa8d4..00000000000 --- a/internal/generated/snippets/datastore/Key/NameKey/main.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_NameKey] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - // Key with string ID. - k := datastore.NameKey("Article", "article8", nil) - _ = k // TODO: Use key. -} - -// [END datastore_generated_datastore_NameKey] diff --git a/internal/generated/snippets/datastore/LoadStruct/main.go b/internal/generated/snippets/datastore/LoadStruct/main.go deleted file mode 100644 index b12a62853fd..00000000000 --- a/internal/generated/snippets/datastore/LoadStruct/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_LoadStruct] - -package main - -import ( - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - type Player struct { - User string - Score int - } - // Normally LoadStruct would only be used inside a custom implementation of - // PropertyLoadSaver; this is for illustrative purposes only. - props := []datastore.Property{ - {Name: "User", Value: "Alice"}, - {Name: "Score", Value: int64(97)}, - } - - var p Player - if err := datastore.LoadStruct(&p, props); err != nil { - // TODO: Handle error. - } - fmt.Println(p) -} - -// [END datastore_generated_datastore_LoadStruct] diff --git a/internal/generated/snippets/datastore/MultiError/main.go b/internal/generated/snippets/datastore/MultiError/main.go deleted file mode 100644 index 43dab713108..00000000000 --- a/internal/generated/snippets/datastore/MultiError/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_MultiError] - -package main - -import ( - "context" - "time" - - "cloud.google.com/go/datastore" -) - -type Post struct { - Title string - PublishedAt time.Time - Comments int -} - -func main() { - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - - keys := []*datastore.Key{ - datastore.NameKey("bad-key", "bad-key", nil), - } - posts := make([]Post, 1) - if err := client.GetMulti(ctx, keys, posts); err != nil { - if merr, ok := err.(datastore.MultiError); ok { - for _, err := range merr { - // TODO: Handle error. - _ = err - } - } else { - // TODO: Handle error. - } - } -} - -// [END datastore_generated_datastore_MultiError] diff --git a/internal/generated/snippets/datastore/Property/SaveStruct/main.go b/internal/generated/snippets/datastore/Property/SaveStruct/main.go deleted file mode 100644 index 2c8f6e0287f..00000000000 --- a/internal/generated/snippets/datastore/Property/SaveStruct/main.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_SaveStruct] - -package main - -import ( - "fmt" - - "cloud.google.com/go/datastore" -) - -func main() { - type Player struct { - User string - Score int - } - - p := &Player{ - User: "Alice", - Score: 97, - } - props, err := datastore.SaveStruct(p) - if err != nil { - // TODO: Handle error. - } - fmt.Println(props) - // TODO(jba): make this output stable: Output: [{User Alice false} {Score 97 false}] -} - -// [END datastore_generated_datastore_SaveStruct] diff --git a/internal/generated/snippets/datastore/Query/NewQuery/main.go b/internal/generated/snippets/datastore/Query/NewQuery/main.go deleted file mode 100644 index 65c22a77c1b..00000000000 --- a/internal/generated/snippets/datastore/Query/NewQuery/main.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_NewQuery] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - // Query for Post entities. - q := datastore.NewQuery("Post") - _ = q // TODO: Use the query with Client.Run. -} - -// [END datastore_generated_datastore_NewQuery] diff --git a/internal/generated/snippets/datastore/Query/NewQuery/options/main.go b/internal/generated/snippets/datastore/Query/NewQuery/options/main.go deleted file mode 100644 index cd095b393e9..00000000000 --- a/internal/generated/snippets/datastore/Query/NewQuery/options/main.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_NewQuery_options] - -package main - -import ( - "cloud.google.com/go/datastore" -) - -func main() { - // Query to order the posts by the number of comments they have received. - q := datastore.NewQuery("Post").Order("-Comments") - // Start listing from an offset and limit the results. - q = q.Offset(20).Limit(10) - _ = q // TODO: Use the query. -} - -// [END datastore_generated_datastore_NewQuery_options] diff --git a/internal/generated/snippets/datastore/Query/Start/main.go b/internal/generated/snippets/datastore/Query/Start/main.go deleted file mode 100644 index e9a61ec4e7b..00000000000 --- a/internal/generated/snippets/datastore/Query/Start/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_Query_Start] - -package main - -import ( - "context" - - "cloud.google.com/go/datastore" -) - -func getCursor() string { return "" } - -func main() { - // This example demonstrates how to use cursors and Query.Start - // to resume an iteration. - ctx := context.Background() - client, err := datastore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - // getCursor represents a function that returns a cursor from a previous - // iteration in string form. - cursorString := getCursor() - cursor, err := datastore.DecodeCursor(cursorString) - if err != nil { - // TODO: Handle error. - } - it := client.Run(ctx, datastore.NewQuery("Post").Start(cursor)) - _ = it // TODO: Use iterator. -} - -// [END datastore_generated_datastore_Query_Start] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go index 48f16096bd5..70c0374cb90 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_CreateIndex] +// [START datastore_v1_generated_DatastoreAdmin_CreateIndex_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_CreateIndex] +// [END datastore_v1_generated_DatastoreAdmin_CreateIndex_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go index 76869f30df4..2e62fe26c29 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_DeleteIndex] +// [START datastore_v1_generated_DatastoreAdmin_DeleteIndex_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_DeleteIndex] +// [END datastore_v1_generated_DatastoreAdmin_DeleteIndex_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go index 42d4f730aa4..441c096cc73 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ExportEntities] +// [START datastore_v1_generated_DatastoreAdmin_ExportEntities_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ExportEntities] +// [END datastore_v1_generated_DatastoreAdmin_ExportEntities_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go index 4bec7857231..91f628af591 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_GetIndex] +// [START datastore_v1_generated_DatastoreAdmin_GetIndex_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_GetIndex] +// [END datastore_v1_generated_DatastoreAdmin_GetIndex_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go index 94ebfcda2b8..75146389afa 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ImportEntities] +// [START datastore_v1_generated_DatastoreAdmin_ImportEntities_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ImportEntities] +// [END datastore_v1_generated_DatastoreAdmin_ImportEntities_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go index eefa4ca00bb..d39a65625c1 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ListIndexes] +// [START datastore_v1_generated_DatastoreAdmin_ListIndexes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END datastore_generated_datastore_admin_apiv1_DatastoreAdminClient_ListIndexes] +// [END datastore_v1_generated_DatastoreAdmin_ListIndexes_sync] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/NewDatastoreAdminClient/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/NewDatastoreAdminClient/main.go deleted file mode 100644 index d73ac139c4d..00000000000 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/NewDatastoreAdminClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START datastore_generated_datastore_admin_apiv1_NewDatastoreAdminClient] - -package main - -import ( - "context" - - admin "cloud.google.com/go/datastore/admin/apiv1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewDatastoreAdminClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END datastore_generated_datastore_admin_apiv1_NewDatastoreAdminClient] diff --git a/internal/generated/snippets/debugger/apiv2/Controller2Client/ListActiveBreakpoints/main.go b/internal/generated/snippets/debugger/apiv2/Controller2Client/ListActiveBreakpoints/main.go index 8e1b7cd7e62..a18d23e58c8 100644 --- a/internal/generated/snippets/debugger/apiv2/Controller2Client/ListActiveBreakpoints/main.go +++ b/internal/generated/snippets/debugger/apiv2/Controller2Client/ListActiveBreakpoints/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Controller2Client_ListActiveBreakpoints] +// [START clouddebugger_v2_generated_Controller2_ListActiveBreakpoints_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Controller2Client_ListActiveBreakpoints] +// [END clouddebugger_v2_generated_Controller2_ListActiveBreakpoints_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Controller2Client/NewController2Client/main.go b/internal/generated/snippets/debugger/apiv2/Controller2Client/NewController2Client/main.go deleted file mode 100644 index e6505c1e82a..00000000000 --- a/internal/generated/snippets/debugger/apiv2/Controller2Client/NewController2Client/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START clouddebugger_generated_debugger_apiv2_NewController2Client] - -package main - -import ( - "context" - - debugger "cloud.google.com/go/debugger/apiv2" -) - -func main() { - ctx := context.Background() - c, err := debugger.NewController2Client(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END clouddebugger_generated_debugger_apiv2_NewController2Client] diff --git a/internal/generated/snippets/debugger/apiv2/Controller2Client/RegisterDebuggee/main.go b/internal/generated/snippets/debugger/apiv2/Controller2Client/RegisterDebuggee/main.go index f84d717ebf7..0b426605353 100644 --- a/internal/generated/snippets/debugger/apiv2/Controller2Client/RegisterDebuggee/main.go +++ b/internal/generated/snippets/debugger/apiv2/Controller2Client/RegisterDebuggee/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Controller2Client_RegisterDebuggee] +// [START clouddebugger_v2_generated_Controller2_RegisterDebuggee_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Controller2Client_RegisterDebuggee] +// [END clouddebugger_v2_generated_Controller2_RegisterDebuggee_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Controller2Client/UpdateActiveBreakpoint/main.go b/internal/generated/snippets/debugger/apiv2/Controller2Client/UpdateActiveBreakpoint/main.go index 692dfaf7a57..8cd6dba79dd 100644 --- a/internal/generated/snippets/debugger/apiv2/Controller2Client/UpdateActiveBreakpoint/main.go +++ b/internal/generated/snippets/debugger/apiv2/Controller2Client/UpdateActiveBreakpoint/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Controller2Client_UpdateActiveBreakpoint] +// [START clouddebugger_v2_generated_Controller2_UpdateActiveBreakpoint_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Controller2Client_UpdateActiveBreakpoint] +// [END clouddebugger_v2_generated_Controller2_UpdateActiveBreakpoint_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/DeleteBreakpoint/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/DeleteBreakpoint/main.go index 9e5fc99d9ee..3283ea9422f 100644 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/DeleteBreakpoint/main.go +++ b/internal/generated/snippets/debugger/apiv2/Debugger2Client/DeleteBreakpoint/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Debugger2Client_DeleteBreakpoint] +// [START clouddebugger_v2_generated_Debugger2_DeleteBreakpoint_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END clouddebugger_generated_debugger_apiv2_Debugger2Client_DeleteBreakpoint] +// [END clouddebugger_v2_generated_Debugger2_DeleteBreakpoint_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/GetBreakpoint/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/GetBreakpoint/main.go index fc5c515a77e..c17cf47492a 100644 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/GetBreakpoint/main.go +++ b/internal/generated/snippets/debugger/apiv2/Debugger2Client/GetBreakpoint/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Debugger2Client_GetBreakpoint] +// [START clouddebugger_v2_generated_Debugger2_GetBreakpoint_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Debugger2Client_GetBreakpoint] +// [END clouddebugger_v2_generated_Debugger2_GetBreakpoint_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListBreakpoints/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListBreakpoints/main.go index 412e98f5d91..4ce859a945c 100644 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListBreakpoints/main.go +++ b/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListBreakpoints/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Debugger2Client_ListBreakpoints] +// [START clouddebugger_v2_generated_Debugger2_ListBreakpoints_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Debugger2Client_ListBreakpoints] +// [END clouddebugger_v2_generated_Debugger2_ListBreakpoints_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListDebuggees/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListDebuggees/main.go index 2e74cc71d64..8f9182fadbc 100644 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListDebuggees/main.go +++ b/internal/generated/snippets/debugger/apiv2/Debugger2Client/ListDebuggees/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Debugger2Client_ListDebuggees] +// [START clouddebugger_v2_generated_Debugger2_ListDebuggees_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Debugger2Client_ListDebuggees] +// [END clouddebugger_v2_generated_Debugger2_ListDebuggees_sync] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/NewDebugger2Client/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/NewDebugger2Client/main.go deleted file mode 100644 index 6a88c033a89..00000000000 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/NewDebugger2Client/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START clouddebugger_generated_debugger_apiv2_NewDebugger2Client] - -package main - -import ( - "context" - - debugger "cloud.google.com/go/debugger/apiv2" -) - -func main() { - ctx := context.Background() - c, err := debugger.NewDebugger2Client(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END clouddebugger_generated_debugger_apiv2_NewDebugger2Client] diff --git a/internal/generated/snippets/debugger/apiv2/Debugger2Client/SetBreakpoint/main.go b/internal/generated/snippets/debugger/apiv2/Debugger2Client/SetBreakpoint/main.go index 13ba3f5553d..3ba91565ca3 100644 --- a/internal/generated/snippets/debugger/apiv2/Debugger2Client/SetBreakpoint/main.go +++ b/internal/generated/snippets/debugger/apiv2/Debugger2Client/SetBreakpoint/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouddebugger_generated_debugger_apiv2_Debugger2Client_SetBreakpoint] +// [START clouddebugger_v2_generated_Debugger2_SetBreakpoint_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouddebugger_generated_debugger_apiv2_Debugger2Client_SetBreakpoint] +// [END clouddebugger_v2_generated_Debugger2_SetBreakpoint_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go index c1f028b11b3..f536e28beb5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_DeleteAgent] +// [START dialogflow_v2_generated_Agents_DeleteAgent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_DeleteAgent] +// [END dialogflow_v2_generated_Agents_DeleteAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go index f765541f7b4..1f3d0e96400 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_ExportAgent] +// [START dialogflow_v2_generated_Agents_ExportAgent_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_ExportAgent] +// [END dialogflow_v2_generated_Agents_ExportAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go index 0cbd2ecb9cc..f2e73a6bf0b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_GetAgent] +// [START dialogflow_v2_generated_Agents_GetAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_GetAgent] +// [END dialogflow_v2_generated_Agents_GetAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go index c0cabf79cd8..ab1863f18fc 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_GetValidationResult] +// [START dialogflow_v2_generated_Agents_GetValidationResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_GetValidationResult] +// [END dialogflow_v2_generated_Agents_GetValidationResult_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go index dd027440dcc..8188e4629dc 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_ImportAgent] +// [START dialogflow_v2_generated_Agents_ImportAgent_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_ImportAgent] +// [END dialogflow_v2_generated_Agents_ImportAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/NewAgentsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/NewAgentsClient/main.go deleted file mode 100644 index 9cce231d04d..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/NewAgentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewAgentsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewAgentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewAgentsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go index 0766c1fce02..c5dcc55f00b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_RestoreAgent] +// [START dialogflow_v2_generated_Agents_RestoreAgent_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_RestoreAgent] +// [END dialogflow_v2_generated_Agents_RestoreAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go index 44a36fa21a4..d86d1be3ad8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_SearchAgents] +// [START dialogflow_v2_generated_Agents_SearchAgents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_SearchAgents] +// [END dialogflow_v2_generated_Agents_SearchAgents_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go index 9e751e3cc8f..56977185379 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_SetAgent] +// [START dialogflow_v2_generated_Agents_SetAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_SetAgent] +// [END dialogflow_v2_generated_Agents_SetAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go index a3d062e1804..cbacfc84c00 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AgentsClient_TrainAgent] +// [START dialogflow_v2_generated_Agents_TrainAgent_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AgentsClient_TrainAgent] +// [END dialogflow_v2_generated_Agents_TrainAgent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go index 8a6fee8b348..8b3895e56ca 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AnswerRecordsClient_ListAnswerRecords] +// [START dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_AnswerRecordsClient_ListAnswerRecords] +// [END dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/NewAnswerRecordsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/NewAnswerRecordsClient/main.go deleted file mode 100644 index 0e86678db43..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/NewAnswerRecordsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewAnswerRecordsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewAnswerRecordsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewAnswerRecordsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go index 3daab324025..dcb82bff45e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_AnswerRecordsClient_UpdateAnswerRecord] +// [START dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_AnswerRecordsClient_UpdateAnswerRecord] +// [END dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go index 103b9c45f5f..35c54acf1ae 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_CreateContext] +// [START dialogflow_v2_generated_Contexts_CreateContext_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_CreateContext] +// [END dialogflow_v2_generated_Contexts_CreateContext_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go index d3d25a9ceaf..c816db8b4a2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_DeleteAllContexts] +// [START dialogflow_v2_generated_Contexts_DeleteAllContexts_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_DeleteAllContexts] +// [END dialogflow_v2_generated_Contexts_DeleteAllContexts_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go index 90f18147469..2686ea37790 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_DeleteContext] +// [START dialogflow_v2_generated_Contexts_DeleteContext_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_DeleteContext] +// [END dialogflow_v2_generated_Contexts_DeleteContext_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go index 0b6dfa686a8..543d203c732 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_GetContext] +// [START dialogflow_v2_generated_Contexts_GetContext_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_GetContext] +// [END dialogflow_v2_generated_Contexts_GetContext_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go index 499c8bf49d8..d752a20c562 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_ListContexts] +// [START dialogflow_v2_generated_Contexts_ListContexts_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_ListContexts] +// [END dialogflow_v2_generated_Contexts_ListContexts_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/NewContextsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/NewContextsClient/main.go deleted file mode 100644 index 892e49553d9..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/NewContextsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewContextsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewContextsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewContextsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go index d41a273b240..2aa94c1cb10 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ContextsClient_UpdateContext] +// [START dialogflow_v2_generated_Contexts_UpdateContext_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ContextsClient_UpdateContext] +// [END dialogflow_v2_generated_Contexts_UpdateContext_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go index d3d73c4fc4c..801ef8d9d55 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_CreateConversationProfile] +// [START dialogflow_v2_generated_ConversationProfiles_CreateConversationProfile_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_CreateConversationProfile] +// [END dialogflow_v2_generated_ConversationProfiles_CreateConversationProfile_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go index 40d1c303b21..6098bd744ed 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_DeleteConversationProfile] +// [START dialogflow_v2_generated_ConversationProfiles_DeleteConversationProfile_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_DeleteConversationProfile] +// [END dialogflow_v2_generated_ConversationProfiles_DeleteConversationProfile_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go index df3716f4d63..4e3f3ecda70 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_GetConversationProfile] +// [START dialogflow_v2_generated_ConversationProfiles_GetConversationProfile_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_GetConversationProfile] +// [END dialogflow_v2_generated_ConversationProfiles_GetConversationProfile_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go index 22e4376d8dd..d75f051b5cb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_ListConversationProfiles] +// [START dialogflow_v2_generated_ConversationProfiles_ListConversationProfiles_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_ListConversationProfiles] +// [END dialogflow_v2_generated_ConversationProfiles_ListConversationProfiles_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/NewConversationProfilesClient/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/NewConversationProfilesClient/main.go deleted file mode 100644 index b24bee071e3..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/NewConversationProfilesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewConversationProfilesClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewConversationProfilesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewConversationProfilesClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go index 89be9bbd67f..354a3320d4c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_UpdateConversationProfile] +// [START dialogflow_v2_generated_ConversationProfiles_UpdateConversationProfile_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationProfilesClient_UpdateConversationProfile] +// [END dialogflow_v2_generated_ConversationProfiles_UpdateConversationProfile_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go index ceeb1f3e61b..12aa448b704 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationsClient_CompleteConversation] +// [START dialogflow_v2_generated_Conversations_CompleteConversation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationsClient_CompleteConversation] +// [END dialogflow_v2_generated_Conversations_CompleteConversation_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go index 434f8bf72d2..aa4e8bd041d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationsClient_CreateConversation] +// [START dialogflow_v2_generated_Conversations_CreateConversation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationsClient_CreateConversation] +// [END dialogflow_v2_generated_Conversations_CreateConversation_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go index 1073d3ea428..c489e3f8fb4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationsClient_GetConversation] +// [START dialogflow_v2_generated_Conversations_GetConversation_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ConversationsClient_GetConversation] +// [END dialogflow_v2_generated_Conversations_GetConversation_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go index e6beb496ac0..78cf14cd7cf 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationsClient_ListConversations] +// [START dialogflow_v2_generated_Conversations_ListConversations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ConversationsClient_ListConversations] +// [END dialogflow_v2_generated_Conversations_ListConversations_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go index b5aa06f18a1..fdbc330a1d9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ConversationsClient_ListMessages] +// [START dialogflow_v2_generated_Conversations_ListMessages_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ConversationsClient_ListMessages] +// [END dialogflow_v2_generated_Conversations_ListMessages_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/NewConversationsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/NewConversationsClient/main.go deleted file mode 100644 index 7e39079f09f..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/NewConversationsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewConversationsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewConversationsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewConversationsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go index 3c56cce883a..5847013627a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_CreateDocument] +// [START dialogflow_v2_generated_Documents_CreateDocument_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_CreateDocument] +// [END dialogflow_v2_generated_Documents_CreateDocument_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go index 623ca7b298f..7e2cce86547 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_DeleteDocument] +// [START dialogflow_v2_generated_Documents_DeleteDocument_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_DeleteDocument] +// [END dialogflow_v2_generated_Documents_DeleteDocument_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go index a5eb07822e2..9596f1f0a2a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_GetDocument] +// [START dialogflow_v2_generated_Documents_GetDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_GetDocument] +// [END dialogflow_v2_generated_Documents_GetDocument_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go index c42a37edbe7..bded0b1c7e8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_ListDocuments] +// [START dialogflow_v2_generated_Documents_ListDocuments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_ListDocuments] +// [END dialogflow_v2_generated_Documents_ListDocuments_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/NewDocumentsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/NewDocumentsClient/main.go deleted file mode 100644 index f823c07fb38..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/NewDocumentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewDocumentsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewDocumentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewDocumentsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go index 3bdd5ff4000..bb0299e9408 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_ReloadDocument] +// [START dialogflow_v2_generated_Documents_ReloadDocument_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_ReloadDocument] +// [END dialogflow_v2_generated_Documents_ReloadDocument_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go index 20aaf7cda1a..8f470e69780 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_DocumentsClient_UpdateDocument] +// [START dialogflow_v2_generated_Documents_UpdateDocument_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_DocumentsClient_UpdateDocument] +// [END dialogflow_v2_generated_Documents_UpdateDocument_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go index 300ee469fb0..a969a4f5bbb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchCreateEntities] +// [START dialogflow_v2_generated_EntityTypes_BatchCreateEntities_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchCreateEntities] +// [END dialogflow_v2_generated_EntityTypes_BatchCreateEntities_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go index c0d27cdb7ce..ff803ed5303 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchDeleteEntities] +// [START dialogflow_v2_generated_EntityTypes_BatchDeleteEntities_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchDeleteEntities] +// [END dialogflow_v2_generated_EntityTypes_BatchDeleteEntities_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go index 019f490edb3..9247b9f1c69 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchDeleteEntityTypes] +// [START dialogflow_v2_generated_EntityTypes_BatchDeleteEntityTypes_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchDeleteEntityTypes] +// [END dialogflow_v2_generated_EntityTypes_BatchDeleteEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go index 17ba11ee3d8..dc53345fafb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchUpdateEntities] +// [START dialogflow_v2_generated_EntityTypes_BatchUpdateEntities_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchUpdateEntities] +// [END dialogflow_v2_generated_EntityTypes_BatchUpdateEntities_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go index 0ee8e0f953a..be66d5efaa5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchUpdateEntityTypes] +// [START dialogflow_v2_generated_EntityTypes_BatchUpdateEntityTypes_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_BatchUpdateEntityTypes] +// [END dialogflow_v2_generated_EntityTypes_BatchUpdateEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go index 884b9707512..588064811d0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_CreateEntityType] +// [START dialogflow_v2_generated_EntityTypes_CreateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_CreateEntityType] +// [END dialogflow_v2_generated_EntityTypes_CreateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go index d9b7a2b813d..0ccf9f42eea 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_DeleteEntityType] +// [START dialogflow_v2_generated_EntityTypes_DeleteEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_DeleteEntityType] +// [END dialogflow_v2_generated_EntityTypes_DeleteEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go index 4370a880f97..006f740b3fd 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_GetEntityType] +// [START dialogflow_v2_generated_EntityTypes_GetEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_GetEntityType] +// [END dialogflow_v2_generated_EntityTypes_GetEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go index 272bf8f8d37..934a934a2f4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_ListEntityTypes] +// [START dialogflow_v2_generated_EntityTypes_ListEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_ListEntityTypes] +// [END dialogflow_v2_generated_EntityTypes_ListEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/NewEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/NewEntityTypesClient/main.go deleted file mode 100644 index 1b06e5c5f1e..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/NewEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewEntityTypesClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go index cafcbc8632d..2fea84b1324 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EntityTypesClient_UpdateEntityType] +// [START dialogflow_v2_generated_EntityTypes_UpdateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_EntityTypesClient_UpdateEntityType] +// [END dialogflow_v2_generated_EntityTypes_UpdateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go index 3e3199c4305..fcb66910f7b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_EnvironmentsClient_ListEnvironments] +// [START dialogflow_v2_generated_Environments_ListEnvironments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_EnvironmentsClient_ListEnvironments] +// [END dialogflow_v2_generated_Environments_ListEnvironments_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/NewEnvironmentsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/NewEnvironmentsClient/main.go deleted file mode 100644 index 87c00963488..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/NewEnvironmentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewEnvironmentsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewEnvironmentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewEnvironmentsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go index 941425fc99e..c2f4b32d083 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_BatchDeleteIntents] +// [START dialogflow_v2_generated_Intents_BatchDeleteIntents_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_BatchDeleteIntents] +// [END dialogflow_v2_generated_Intents_BatchDeleteIntents_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go index 976e3d678d3..3489a1a061a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_BatchUpdateIntents] +// [START dialogflow_v2_generated_Intents_BatchUpdateIntents_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_BatchUpdateIntents] +// [END dialogflow_v2_generated_Intents_BatchUpdateIntents_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go index 2099dbc2cc3..81f7303944a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_CreateIntent] +// [START dialogflow_v2_generated_Intents_CreateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_CreateIntent] +// [END dialogflow_v2_generated_Intents_CreateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go index d25b915ad80..2c85cae0b61 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_DeleteIntent] +// [START dialogflow_v2_generated_Intents_DeleteIntent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_DeleteIntent] +// [END dialogflow_v2_generated_Intents_DeleteIntent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go index 93eb2bfb678..6a9d4808b6c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_GetIntent] +// [START dialogflow_v2_generated_Intents_GetIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_GetIntent] +// [END dialogflow_v2_generated_Intents_GetIntent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go index 5b9ba0ca52e..6db4b196cbe 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_ListIntents] +// [START dialogflow_v2_generated_Intents_ListIntents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_ListIntents] +// [END dialogflow_v2_generated_Intents_ListIntents_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/NewIntentsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/NewIntentsClient/main.go deleted file mode 100644 index 7b8d3b2839f..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/NewIntentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewIntentsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewIntentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewIntentsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go index 55f48ced594..5e9f484a0d9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_IntentsClient_UpdateIntent] +// [START dialogflow_v2_generated_Intents_UpdateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_IntentsClient_UpdateIntent] +// [END dialogflow_v2_generated_Intents_UpdateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go index f9bf7f6e61b..7757d1bd663 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_CreateKnowledgeBase] +// [START dialogflow_v2_generated_KnowledgeBases_CreateKnowledgeBase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_CreateKnowledgeBase] +// [END dialogflow_v2_generated_KnowledgeBases_CreateKnowledgeBase_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go index c820075c5ac..c148d95c5df 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_DeleteKnowledgeBase] +// [START dialogflow_v2_generated_KnowledgeBases_DeleteKnowledgeBase_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_DeleteKnowledgeBase] +// [END dialogflow_v2_generated_KnowledgeBases_DeleteKnowledgeBase_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go index 487c4fc36a6..f09a5067260 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_GetKnowledgeBase] +// [START dialogflow_v2_generated_KnowledgeBases_GetKnowledgeBase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_GetKnowledgeBase] +// [END dialogflow_v2_generated_KnowledgeBases_GetKnowledgeBase_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go index cd0f89dd2b9..87a25ac69a8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_ListKnowledgeBases] +// [START dialogflow_v2_generated_KnowledgeBases_ListKnowledgeBases_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_ListKnowledgeBases] +// [END dialogflow_v2_generated_KnowledgeBases_ListKnowledgeBases_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/NewKnowledgeBasesClient/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/NewKnowledgeBasesClient/main.go deleted file mode 100644 index 3aceb9254ea..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/NewKnowledgeBasesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewKnowledgeBasesClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewKnowledgeBasesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewKnowledgeBasesClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go index cf5fce2d705..e2aa7b8ef48 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_UpdateKnowledgeBase] +// [START dialogflow_v2_generated_KnowledgeBases_UpdateKnowledgeBase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_KnowledgeBasesClient_UpdateKnowledgeBase] +// [END dialogflow_v2_generated_KnowledgeBases_UpdateKnowledgeBase_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go index 06ec7f17b87..6d4c00cd6d5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_AnalyzeContent] +// [START dialogflow_v2_generated_Participants_AnalyzeContent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_AnalyzeContent] +// [END dialogflow_v2_generated_Participants_AnalyzeContent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go index eccdf654f39..36ff4fa4c14 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_CreateParticipant] +// [START dialogflow_v2_generated_Participants_CreateParticipant_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_CreateParticipant] +// [END dialogflow_v2_generated_Participants_CreateParticipant_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go index ab03f7f7ff6..8acdf53de1e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_GetParticipant] +// [START dialogflow_v2_generated_Participants_GetParticipant_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_GetParticipant] +// [END dialogflow_v2_generated_Participants_GetParticipant_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go index 0b530de0e70..2dbd51395d4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_ListParticipants] +// [START dialogflow_v2_generated_Participants_ListParticipants_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_ListParticipants] +// [END dialogflow_v2_generated_Participants_ListParticipants_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/NewParticipantsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/NewParticipantsClient/main.go deleted file mode 100644 index 99dab7c2e77..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/NewParticipantsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewParticipantsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewParticipantsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewParticipantsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go index 7b7a8438580..55f1b5b8954 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_SuggestArticles] +// [START dialogflow_v2_generated_Participants_SuggestArticles_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_SuggestArticles] +// [END dialogflow_v2_generated_Participants_SuggestArticles_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go index c6cb265f5ef..8a8302301eb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_SuggestFaqAnswers] +// [START dialogflow_v2_generated_Participants_SuggestFaqAnswers_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_SuggestFaqAnswers] +// [END dialogflow_v2_generated_Participants_SuggestFaqAnswers_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go index 7c6b21983d2..437b1aca659 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_ParticipantsClient_UpdateParticipant] +// [START dialogflow_v2_generated_Participants_UpdateParticipant_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_ParticipantsClient_UpdateParticipant] +// [END dialogflow_v2_generated_Participants_UpdateParticipant_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go index 6bbfd91edd8..338a4dc4684 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_CreateSessionEntityType] +// [START dialogflow_v2_generated_SessionEntityTypes_CreateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_CreateSessionEntityType] +// [END dialogflow_v2_generated_SessionEntityTypes_CreateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go index cfe50630a92..549e90ad9fb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_DeleteSessionEntityType] +// [START dialogflow_v2_generated_SessionEntityTypes_DeleteSessionEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_DeleteSessionEntityType] +// [END dialogflow_v2_generated_SessionEntityTypes_DeleteSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go index 4127acc5469..8359d497094 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_GetSessionEntityType] +// [START dialogflow_v2_generated_SessionEntityTypes_GetSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_GetSessionEntityType] +// [END dialogflow_v2_generated_SessionEntityTypes_GetSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go index 9d6bff2b231..1933e9884d5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_ListSessionEntityTypes] +// [START dialogflow_v2_generated_SessionEntityTypes_ListSessionEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_ListSessionEntityTypes] +// [END dialogflow_v2_generated_SessionEntityTypes_ListSessionEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go deleted file mode 100644 index 87378850844..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewSessionEntityTypesClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewSessionEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewSessionEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go index 59f1ac603a3..9149517d4d3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_UpdateSessionEntityType] +// [START dialogflow_v2_generated_SessionEntityTypes_UpdateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_SessionEntityTypesClient_UpdateSessionEntityType] +// [END dialogflow_v2_generated_SessionEntityTypes_UpdateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go index 847159ccb71..1ed24f6a2a2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionsClient_DetectIntent] +// [START dialogflow_v2_generated_Sessions_DetectIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_apiv2_SessionsClient_DetectIntent] +// [END dialogflow_v2_generated_Sessions_DetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/NewSessionsClient/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/NewSessionsClient/main.go deleted file mode 100644 index b7069e41d55..00000000000 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/NewSessionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_apiv2_NewSessionsClient] - -package main - -import ( - "context" - - dialogflow "cloud.google.com/go/dialogflow/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dialogflow.NewSessionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_apiv2_NewSessionsClient] diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go index 1b898a31857..cb91f64b854 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_apiv2_SessionsClient_StreamingDetectIntent] +// [START dialogflow_v2_generated_Sessions_StreamingDetectIntent_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_apiv2_SessionsClient_StreamingDetectIntent] +// [END dialogflow_v2_generated_Sessions_StreamingDetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go index 5127fc428c4..ceca952aea6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_CreateAgent] +// [START dialogflow_v3_generated_Agents_CreateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_CreateAgent] +// [END dialogflow_v3_generated_Agents_CreateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go index e7e5b56ee13..388be3727ff 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_DeleteAgent] +// [START dialogflow_v3_generated_Agents_DeleteAgent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_DeleteAgent] +// [END dialogflow_v3_generated_Agents_DeleteAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go index 6b6e6fe9eaa..192f0791a93 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ExportAgent] +// [START dialogflow_v3_generated_Agents_ExportAgent_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ExportAgent] +// [END dialogflow_v3_generated_Agents_ExportAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go index 098b43fe5e1..bf1a22477e3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_GetAgent] +// [START dialogflow_v3_generated_Agents_GetAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_GetAgent] +// [END dialogflow_v3_generated_Agents_GetAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go index cffa08b9f75..011e3475bac 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_GetAgentValidationResult] +// [START dialogflow_v3_generated_Agents_GetAgentValidationResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_GetAgentValidationResult] +// [END dialogflow_v3_generated_Agents_GetAgentValidationResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go index 2674a60ee1c..71f6f82f19a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ListAgents] +// [START dialogflow_v3_generated_Agents_ListAgents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ListAgents] +// [END dialogflow_v3_generated_Agents_ListAgents_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/NewAgentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/NewAgentsClient/main.go deleted file mode 100644 index e30907d6962..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/NewAgentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewAgentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewAgentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewAgentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go index cd44c99642d..0f59cb37a58 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_RestoreAgent] +// [START dialogflow_v3_generated_Agents_RestoreAgent_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_RestoreAgent] +// [END dialogflow_v3_generated_Agents_RestoreAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go index be23291cdd3..2bbfd17e1a3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_UpdateAgent] +// [START dialogflow_v3_generated_Agents_UpdateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_UpdateAgent] +// [END dialogflow_v3_generated_Agents_UpdateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go index 9198190438f..42d8cd530ac 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ValidateAgent] +// [START dialogflow_v3_generated_Agents_ValidateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_AgentsClient_ValidateAgent] +// [END dialogflow_v3_generated_Agents_ValidateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go index 76a2ef350f8..63dcb4d6107 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_CreateEntityType] +// [START dialogflow_v3_generated_EntityTypes_CreateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_CreateEntityType] +// [END dialogflow_v3_generated_EntityTypes_CreateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go index 360036ac2fb..9f6deae3d7b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_DeleteEntityType] +// [START dialogflow_v3_generated_EntityTypes_DeleteEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_DeleteEntityType] +// [END dialogflow_v3_generated_EntityTypes_DeleteEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go index f4456c90c2c..9623090ba55 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_GetEntityType] +// [START dialogflow_v3_generated_EntityTypes_GetEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_GetEntityType] +// [END dialogflow_v3_generated_EntityTypes_GetEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go index 1ec61fefd24..0f74c291095 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_ListEntityTypes] +// [START dialogflow_v3_generated_EntityTypes_ListEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_ListEntityTypes] +// [END dialogflow_v3_generated_EntityTypes_ListEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/NewEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/NewEntityTypesClient/main.go deleted file mode 100644 index 9fdc66aa20a..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/NewEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewEntityTypesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go index 324b59b5b4b..b840aadda1a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_UpdateEntityType] +// [START dialogflow_v3_generated_EntityTypes_UpdateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EntityTypesClient_UpdateEntityType] +// [END dialogflow_v3_generated_EntityTypes_UpdateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go index c76f77cc24e..ec45fc2dd88 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_CreateEnvironment] +// [START dialogflow_v3_generated_Environments_CreateEnvironment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_CreateEnvironment] +// [END dialogflow_v3_generated_Environments_CreateEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go index 936c8ffb7df..3ba1962ff00 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_DeleteEnvironment] +// [START dialogflow_v3_generated_Environments_DeleteEnvironment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_DeleteEnvironment] +// [END dialogflow_v3_generated_Environments_DeleteEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go index 919ef20c677..0b4e387b843 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_GetEnvironment] +// [START dialogflow_v3_generated_Environments_GetEnvironment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_GetEnvironment] +// [END dialogflow_v3_generated_Environments_GetEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go index 0642330c2b6..d0595693699 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_ListEnvironments] +// [START dialogflow_v3_generated_Environments_ListEnvironments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_ListEnvironments] +// [END dialogflow_v3_generated_Environments_ListEnvironments_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go index 04417a21686..32f288df7a4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_LookupEnvironmentHistory] +// [START dialogflow_v3_generated_Environments_LookupEnvironmentHistory_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_LookupEnvironmentHistory] +// [END dialogflow_v3_generated_Environments_LookupEnvironmentHistory_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/NewEnvironmentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/NewEnvironmentsClient/main.go deleted file mode 100644 index 54801a35360..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/NewEnvironmentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewEnvironmentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewEnvironmentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewEnvironmentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go index 0d4eeea103c..ba4103789a2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_UpdateEnvironment] +// [START dialogflow_v3_generated_Environments_UpdateEnvironment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_EnvironmentsClient_UpdateEnvironment] +// [END dialogflow_v3_generated_Environments_UpdateEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go index cdc730d2c4c..fb2ae805c77 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_CreateExperiment] +// [START dialogflow_v3_generated_Experiments_CreateExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_CreateExperiment] +// [END dialogflow_v3_generated_Experiments_CreateExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go index 792dde96d6b..242c9e92aeb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_DeleteExperiment] +// [START dialogflow_v3_generated_Experiments_DeleteExperiment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_DeleteExperiment] +// [END dialogflow_v3_generated_Experiments_DeleteExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go index 8ace2943081..e60b22aa4c8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_GetExperiment] +// [START dialogflow_v3_generated_Experiments_GetExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_GetExperiment] +// [END dialogflow_v3_generated_Experiments_GetExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go index b12c4878b7b..73aa077a4f7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_ListExperiments] +// [START dialogflow_v3_generated_Experiments_ListExperiments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_ListExperiments] +// [END dialogflow_v3_generated_Experiments_ListExperiments_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/NewExperimentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/NewExperimentsClient/main.go deleted file mode 100644 index bdecf9c2b0d..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/NewExperimentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewExperimentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewExperimentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewExperimentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go index 88e62506c39..d3fe4e6473a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_StartExperiment] +// [START dialogflow_v3_generated_Experiments_StartExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_StartExperiment] +// [END dialogflow_v3_generated_Experiments_StartExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go index 31a1aefdbc1..836f6305189 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_StopExperiment] +// [START dialogflow_v3_generated_Experiments_StopExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_StopExperiment] +// [END dialogflow_v3_generated_Experiments_StopExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go index 6f2a9c35c81..7b9eae1a059 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_UpdateExperiment] +// [START dialogflow_v3_generated_Experiments_UpdateExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_ExperimentsClient_UpdateExperiment] +// [END dialogflow_v3_generated_Experiments_UpdateExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go index 3bb39ec42fe..df3ae0b6071 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_CreateFlow] +// [START dialogflow_v3_generated_Flows_CreateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_CreateFlow] +// [END dialogflow_v3_generated_Flows_CreateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go index 9d32667731e..00f7585342b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_DeleteFlow] +// [START dialogflow_v3_generated_Flows_DeleteFlow_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_DeleteFlow] +// [END dialogflow_v3_generated_Flows_DeleteFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go index 5b123060117..c2cbbe46f88 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_GetFlow] +// [START dialogflow_v3_generated_Flows_GetFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_GetFlow] +// [END dialogflow_v3_generated_Flows_GetFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go index 101fe17693c..53e3004c16d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_GetFlowValidationResult] +// [START dialogflow_v3_generated_Flows_GetFlowValidationResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_GetFlowValidationResult] +// [END dialogflow_v3_generated_Flows_GetFlowValidationResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go index dc92cb26eaa..0e0ff73003e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_ListFlows] +// [START dialogflow_v3_generated_Flows_ListFlows_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_ListFlows] +// [END dialogflow_v3_generated_Flows_ListFlows_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/NewFlowsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/NewFlowsClient/main.go deleted file mode 100644 index a84303d25c7..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/NewFlowsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewFlowsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewFlowsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewFlowsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go index 3dcf63438e6..d1ecf1baf2f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_TrainFlow] +// [START dialogflow_v3_generated_Flows_TrainFlow_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_TrainFlow] +// [END dialogflow_v3_generated_Flows_TrainFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go index 121ed05517c..c43f44192f5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_UpdateFlow] +// [START dialogflow_v3_generated_Flows_UpdateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_UpdateFlow] +// [END dialogflow_v3_generated_Flows_UpdateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go index ffe09dceefa..802d39394dc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_ValidateFlow] +// [START dialogflow_v3_generated_Flows_ValidateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_FlowsClient_ValidateFlow] +// [END dialogflow_v3_generated_Flows_ValidateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go index 15dfd79cfdc..22a740ca161 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_CreateIntent] +// [START dialogflow_v3_generated_Intents_CreateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_CreateIntent] +// [END dialogflow_v3_generated_Intents_CreateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go index ae38d348732..8daeee403a5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_DeleteIntent] +// [START dialogflow_v3_generated_Intents_DeleteIntent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_DeleteIntent] +// [END dialogflow_v3_generated_Intents_DeleteIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go index 704d4293e19..d9936df80f1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_GetIntent] +// [START dialogflow_v3_generated_Intents_GetIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_GetIntent] +// [END dialogflow_v3_generated_Intents_GetIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go index f186c3dcfb9..ac4e9035f06 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_ListIntents] +// [START dialogflow_v3_generated_Intents_ListIntents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_ListIntents] +// [END dialogflow_v3_generated_Intents_ListIntents_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/NewIntentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/NewIntentsClient/main.go deleted file mode 100644 index 8e427bc79d9..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/NewIntentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewIntentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewIntentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewIntentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go index 3bd5618c033..e7f4245c249 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_UpdateIntent] +// [START dialogflow_v3_generated_Intents_UpdateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_IntentsClient_UpdateIntent] +// [END dialogflow_v3_generated_Intents_UpdateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go index 021cfef946f..9dc562bfe0e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_PagesClient_CreatePage] +// [START dialogflow_v3_generated_Pages_CreatePage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_PagesClient_CreatePage] +// [END dialogflow_v3_generated_Pages_CreatePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go index d77c42d6a8d..90df3ff40fe 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_PagesClient_DeletePage] +// [START dialogflow_v3_generated_Pages_DeletePage_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_PagesClient_DeletePage] +// [END dialogflow_v3_generated_Pages_DeletePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go index 2e1e35c1016..847c1f380ee 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_PagesClient_GetPage] +// [START dialogflow_v3_generated_Pages_GetPage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_PagesClient_GetPage] +// [END dialogflow_v3_generated_Pages_GetPage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go index d25b41d21ac..ba8f14e1956 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_PagesClient_ListPages] +// [START dialogflow_v3_generated_Pages_ListPages_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_PagesClient_ListPages] +// [END dialogflow_v3_generated_Pages_ListPages_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/NewPagesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/NewPagesClient/main.go deleted file mode 100644 index 5510a94c863..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/NewPagesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewPagesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewPagesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewPagesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go index 42d5a08fc7d..ed8f2a36788 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_PagesClient_UpdatePage] +// [START dialogflow_v3_generated_Pages_UpdatePage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_PagesClient_UpdatePage] +// [END dialogflow_v3_generated_Pages_UpdatePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go index cce890f8785..d578d024297 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_CreateSecuritySettings] +// [START dialogflow_v3_generated_SecuritySettingsService_CreateSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_CreateSecuritySettings] +// [END dialogflow_v3_generated_SecuritySettingsService_CreateSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go index 871eac58f85..cb0299beb3e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_DeleteSecuritySettings] +// [START dialogflow_v3_generated_SecuritySettingsService_DeleteSecuritySettings_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_DeleteSecuritySettings] +// [END dialogflow_v3_generated_SecuritySettingsService_DeleteSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go index 667f4172282..6b09089b8b0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_GetSecuritySettings] +// [START dialogflow_v3_generated_SecuritySettingsService_GetSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_GetSecuritySettings] +// [END dialogflow_v3_generated_SecuritySettingsService_GetSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go index 06896cb5b97..cdee88e9800 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_ListSecuritySettings] +// [START dialogflow_v3_generated_SecuritySettingsService_ListSecuritySettings_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_ListSecuritySettings] +// [END dialogflow_v3_generated_SecuritySettingsService_ListSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/NewSecuritySettingsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/NewSecuritySettingsClient/main.go deleted file mode 100644 index 989c6f1be5a..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/NewSecuritySettingsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewSecuritySettingsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSecuritySettingsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewSecuritySettingsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go index 0f88d940d03..16e426f97d5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_UpdateSecuritySettings] +// [START dialogflow_v3_generated_SecuritySettingsService_UpdateSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SecuritySettingsClient_UpdateSecuritySettings] +// [END dialogflow_v3_generated_SecuritySettingsService_UpdateSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go index 92c2efbd230..57aaf3383a4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_CreateSessionEntityType] +// [START dialogflow_v3_generated_SessionEntityTypes_CreateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_CreateSessionEntityType] +// [END dialogflow_v3_generated_SessionEntityTypes_CreateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go index e2922b8c741..29d2de08cd0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_DeleteSessionEntityType] +// [START dialogflow_v3_generated_SessionEntityTypes_DeleteSessionEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_DeleteSessionEntityType] +// [END dialogflow_v3_generated_SessionEntityTypes_DeleteSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go index 50cf2542f0c..2a145715d55 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_GetSessionEntityType] +// [START dialogflow_v3_generated_SessionEntityTypes_GetSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_GetSessionEntityType] +// [END dialogflow_v3_generated_SessionEntityTypes_GetSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go index 74af0fde9fd..c094d7e0acb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_ListSessionEntityTypes] +// [START dialogflow_v3_generated_SessionEntityTypes_ListSessionEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_ListSessionEntityTypes] +// [END dialogflow_v3_generated_SessionEntityTypes_ListSessionEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go deleted file mode 100644 index 0d6d19f58c0..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewSessionEntityTypesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSessionEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewSessionEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go index 147858620c6..4303c6c154b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_UpdateSessionEntityType] +// [START dialogflow_v3_generated_SessionEntityTypes_UpdateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionEntityTypesClient_UpdateSessionEntityType] +// [END dialogflow_v3_generated_SessionEntityTypes_UpdateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go index f93e133e34d..e7aea12151b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_DetectIntent] +// [START dialogflow_v3_generated_Sessions_DetectIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_DetectIntent] +// [END dialogflow_v3_generated_Sessions_DetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go index dfa8e84247a..0b8662e6f5a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_FulfillIntent] +// [START dialogflow_v3_generated_Sessions_FulfillIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_FulfillIntent] +// [END dialogflow_v3_generated_Sessions_FulfillIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go index 64c082a303d..9da7d57f49c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_MatchIntent] +// [START dialogflow_v3_generated_Sessions_MatchIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_MatchIntent] +// [END dialogflow_v3_generated_Sessions_MatchIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/NewSessionsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/NewSessionsClient/main.go deleted file mode 100644 index 33fe0699200..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/NewSessionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewSessionsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSessionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewSessionsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go index ff6e99a0450..a8a66e54890 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_StreamingDetectIntent] +// [START dialogflow_v3_generated_Sessions_StreamingDetectIntent_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_SessionsClient_StreamingDetectIntent] +// [END dialogflow_v3_generated_Sessions_StreamingDetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go index cbbaaf0fc80..8a3a3c0becf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_BatchDeleteTestCases] +// [START dialogflow_v3_generated_TestCases_BatchDeleteTestCases_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_BatchDeleteTestCases] +// [END dialogflow_v3_generated_TestCases_BatchDeleteTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go index c92572dae86..e1b02786e21 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_BatchRunTestCases] +// [START dialogflow_v3_generated_TestCases_BatchRunTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_BatchRunTestCases] +// [END dialogflow_v3_generated_TestCases_BatchRunTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go index a95525d67c3..ccb2a01fdb1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_CalculateCoverage] +// [START dialogflow_v3_generated_TestCases_CalculateCoverage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_CalculateCoverage] +// [END dialogflow_v3_generated_TestCases_CalculateCoverage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go index 653ddd4c5de..4fa1be04fa4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_CreateTestCase] +// [START dialogflow_v3_generated_TestCases_CreateTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_CreateTestCase] +// [END dialogflow_v3_generated_TestCases_CreateTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go index 074c97a20ad..a1814fae69a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ExportTestCases] +// [START dialogflow_v3_generated_TestCases_ExportTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ExportTestCases] +// [END dialogflow_v3_generated_TestCases_ExportTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go index 83e1ff5e06b..f1c7349a35b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_GetTestCase] +// [START dialogflow_v3_generated_TestCases_GetTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_GetTestCase] +// [END dialogflow_v3_generated_TestCases_GetTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go index 0b109adb6d1..bd2acbf64d8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_GetTestCaseResult] +// [START dialogflow_v3_generated_TestCases_GetTestCaseResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_GetTestCaseResult] +// [END dialogflow_v3_generated_TestCases_GetTestCaseResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go index 07580c6803a..1d40ff9718b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ImportTestCases] +// [START dialogflow_v3_generated_TestCases_ImportTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ImportTestCases] +// [END dialogflow_v3_generated_TestCases_ImportTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go index 44d401e26f5..15096b2233e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ListTestCaseResults] +// [START dialogflow_v3_generated_TestCases_ListTestCaseResults_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ListTestCaseResults] +// [END dialogflow_v3_generated_TestCases_ListTestCaseResults_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go index 271366d807b..29c7fc8cb72 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ListTestCases] +// [START dialogflow_v3_generated_TestCases_ListTestCases_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_ListTestCases] +// [END dialogflow_v3_generated_TestCases_ListTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/NewTestCasesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/NewTestCasesClient/main.go deleted file mode 100644 index 4a79cad1030..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/NewTestCasesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewTestCasesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewTestCasesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewTestCasesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go index 408ef282a9d..809b5494439 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_RunTestCase] +// [START dialogflow_v3_generated_TestCases_RunTestCase_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_RunTestCase] +// [END dialogflow_v3_generated_TestCases_RunTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go index a5d50155bae..6716b92a7ae 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_UpdateTestCase] +// [START dialogflow_v3_generated_TestCases_UpdateTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TestCasesClient_UpdateTestCase] +// [END dialogflow_v3_generated_TestCases_UpdateTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go index 9e783227f08..aebf6aa73ec 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_CreateTransitionRouteGroup] +// [START dialogflow_v3_generated_TransitionRouteGroups_CreateTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_CreateTransitionRouteGroup] +// [END dialogflow_v3_generated_TransitionRouteGroups_CreateTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go index 7edeaac03c0..efc56e0ce88 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_DeleteTransitionRouteGroup] +// [START dialogflow_v3_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_DeleteTransitionRouteGroup] +// [END dialogflow_v3_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go index 107f9f2a25d..916bbc6f204 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_GetTransitionRouteGroup] +// [START dialogflow_v3_generated_TransitionRouteGroups_GetTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_GetTransitionRouteGroup] +// [END dialogflow_v3_generated_TransitionRouteGroups_GetTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go index 246e0379bc1..d30dc8cf5ef 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_ListTransitionRouteGroups] +// [START dialogflow_v3_generated_TransitionRouteGroups_ListTransitionRouteGroups_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_ListTransitionRouteGroups] +// [END dialogflow_v3_generated_TransitionRouteGroups_ListTransitionRouteGroups_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go deleted file mode 100644 index 2f1c9591edf..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewTransitionRouteGroupsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewTransitionRouteGroupsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewTransitionRouteGroupsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go index 6954bd9e6fd..9779be160ab 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_UpdateTransitionRouteGroup] +// [START dialogflow_v3_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_TransitionRouteGroupsClient_UpdateTransitionRouteGroup] +// [END dialogflow_v3_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go index eee91af460a..00ed2521dff 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_CreateVersion] +// [START dialogflow_v3_generated_Versions_CreateVersion_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_CreateVersion] +// [END dialogflow_v3_generated_Versions_CreateVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go index 1cf53f7c4d2..68590e67a1b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_DeleteVersion] +// [START dialogflow_v3_generated_Versions_DeleteVersion_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_DeleteVersion] +// [END dialogflow_v3_generated_Versions_DeleteVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go index bda6d5adddc..6d311c90749 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_GetVersion] +// [START dialogflow_v3_generated_Versions_GetVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_GetVersion] +// [END dialogflow_v3_generated_Versions_GetVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go index 2061a22e270..21ae804fdc5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_ListVersions] +// [START dialogflow_v3_generated_Versions_ListVersions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_ListVersions] +// [END dialogflow_v3_generated_Versions_ListVersions_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go index 76c8009ae52..0dce06fb869 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_LoadVersion] +// [START dialogflow_v3_generated_Versions_LoadVersion_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_LoadVersion] +// [END dialogflow_v3_generated_Versions_LoadVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/NewVersionsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/NewVersionsClient/main.go deleted file mode 100644 index 74fe3ee175e..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/NewVersionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewVersionsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewVersionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewVersionsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go index 395ca42b067..f065977395d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_UpdateVersion] +// [START dialogflow_v3_generated_Versions_UpdateVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_VersionsClient_UpdateVersion] +// [END dialogflow_v3_generated_Versions_UpdateVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go index b60aa47716d..477c8f9711e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_CreateWebhook] +// [START dialogflow_v3_generated_Webhooks_CreateWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_CreateWebhook] +// [END dialogflow_v3_generated_Webhooks_CreateWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go index a2e700e10e6..64472532311 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_DeleteWebhook] +// [START dialogflow_v3_generated_Webhooks_DeleteWebhook_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_DeleteWebhook] +// [END dialogflow_v3_generated_Webhooks_DeleteWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go index 375108cf327..c51d7bcaf7f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_GetWebhook] +// [START dialogflow_v3_generated_Webhooks_GetWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_GetWebhook] +// [END dialogflow_v3_generated_Webhooks_GetWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go index 64e6d3c13b8..8f990dab09b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_ListWebhooks] +// [START dialogflow_v3_generated_Webhooks_ListWebhooks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_ListWebhooks] +// [END dialogflow_v3_generated_Webhooks_ListWebhooks_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/NewWebhooksClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/NewWebhooksClient/main.go deleted file mode 100644 index 88ef44bfdba..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/NewWebhooksClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3_NewWebhooksClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3" -) - -func main() { - ctx := context.Background() - c, err := cx.NewWebhooksClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3_NewWebhooksClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go index c02e1994e6b..ae6c9b2f222 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_UpdateWebhook] +// [START dialogflow_v3_generated_Webhooks_UpdateWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3_WebhooksClient_UpdateWebhook] +// [END dialogflow_v3_generated_Webhooks_UpdateWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go index 8aa898686b6..acbf7883958 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_CreateAgent] +// [START dialogflow_v3beta1_generated_Agents_CreateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_CreateAgent] +// [END dialogflow_v3beta1_generated_Agents_CreateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go index 4623ad0543c..8587774e7fa 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_DeleteAgent] +// [START dialogflow_v3beta1_generated_Agents_DeleteAgent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_DeleteAgent] +// [END dialogflow_v3beta1_generated_Agents_DeleteAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go index 70a0c1459a7..af740a7057f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ExportAgent] +// [START dialogflow_v3beta1_generated_Agents_ExportAgent_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ExportAgent] +// [END dialogflow_v3beta1_generated_Agents_ExportAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go index 3552678ca22..383615ecd34 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_GetAgent] +// [START dialogflow_v3beta1_generated_Agents_GetAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_GetAgent] +// [END dialogflow_v3beta1_generated_Agents_GetAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go index dfa43b0adcf..e45d718d5ce 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_GetAgentValidationResult] +// [START dialogflow_v3beta1_generated_Agents_GetAgentValidationResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_GetAgentValidationResult] +// [END dialogflow_v3beta1_generated_Agents_GetAgentValidationResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go index ffb65c40ad3..445acef362f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ListAgents] +// [START dialogflow_v3beta1_generated_Agents_ListAgents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ListAgents] +// [END dialogflow_v3beta1_generated_Agents_ListAgents_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/NewAgentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/NewAgentsClient/main.go deleted file mode 100644 index 038113b927b..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/NewAgentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewAgentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewAgentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewAgentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go index 5a4fda08090..de4f0b128ed 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_RestoreAgent] +// [START dialogflow_v3beta1_generated_Agents_RestoreAgent_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_RestoreAgent] +// [END dialogflow_v3beta1_generated_Agents_RestoreAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go index 05460ec0738..168a8217255 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_UpdateAgent] +// [START dialogflow_v3beta1_generated_Agents_UpdateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_UpdateAgent] +// [END dialogflow_v3beta1_generated_Agents_UpdateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go index 527987c4cdc..6964fde5f49 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ValidateAgent] +// [START dialogflow_v3beta1_generated_Agents_ValidateAgent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_AgentsClient_ValidateAgent] +// [END dialogflow_v3beta1_generated_Agents_ValidateAgent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go index 00afbb4cc67..46f4e636593 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_CreateEntityType] +// [START dialogflow_v3beta1_generated_EntityTypes_CreateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_CreateEntityType] +// [END dialogflow_v3beta1_generated_EntityTypes_CreateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go index b856ae29cd9..1183bcaf986 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_DeleteEntityType] +// [START dialogflow_v3beta1_generated_EntityTypes_DeleteEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_DeleteEntityType] +// [END dialogflow_v3beta1_generated_EntityTypes_DeleteEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go index b269001c802..6f8c8fd8d79 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_GetEntityType] +// [START dialogflow_v3beta1_generated_EntityTypes_GetEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_GetEntityType] +// [END dialogflow_v3beta1_generated_EntityTypes_GetEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go index 0d0ea8c8d74..57206df4b16 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_ListEntityTypes] +// [START dialogflow_v3beta1_generated_EntityTypes_ListEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_ListEntityTypes] +// [END dialogflow_v3beta1_generated_EntityTypes_ListEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/NewEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/NewEntityTypesClient/main.go deleted file mode 100644 index 0b6a75b549c..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/NewEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewEntityTypesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go index 2827a0cdb6e..83e0d58e8db 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_UpdateEntityType] +// [START dialogflow_v3beta1_generated_EntityTypes_UpdateEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EntityTypesClient_UpdateEntityType] +// [END dialogflow_v3beta1_generated_EntityTypes_UpdateEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go index 1578ae3ebef..6d4f9297c18 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_CreateEnvironment] +// [START dialogflow_v3beta1_generated_Environments_CreateEnvironment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_CreateEnvironment] +// [END dialogflow_v3beta1_generated_Environments_CreateEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go index caa2d224134..65287b286d7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_DeleteEnvironment] +// [START dialogflow_v3beta1_generated_Environments_DeleteEnvironment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_DeleteEnvironment] +// [END dialogflow_v3beta1_generated_Environments_DeleteEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go index ad3fc9ca2e4..0a687c1c2ff 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_GetEnvironment] +// [START dialogflow_v3beta1_generated_Environments_GetEnvironment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_GetEnvironment] +// [END dialogflow_v3beta1_generated_Environments_GetEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go index 71f7ca09549..d09ddaace9a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_ListEnvironments] +// [START dialogflow_v3beta1_generated_Environments_ListEnvironments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_ListEnvironments] +// [END dialogflow_v3beta1_generated_Environments_ListEnvironments_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go index 30a41925ac1..f498b47d438 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_LookupEnvironmentHistory] +// [START dialogflow_v3beta1_generated_Environments_LookupEnvironmentHistory_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_LookupEnvironmentHistory] +// [END dialogflow_v3beta1_generated_Environments_LookupEnvironmentHistory_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/NewEnvironmentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/NewEnvironmentsClient/main.go deleted file mode 100644 index c87befff1f8..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/NewEnvironmentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewEnvironmentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewEnvironmentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewEnvironmentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go index 3a029d2c366..f52c4122856 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_UpdateEnvironment] +// [START dialogflow_v3beta1_generated_Environments_UpdateEnvironment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_EnvironmentsClient_UpdateEnvironment] +// [END dialogflow_v3beta1_generated_Environments_UpdateEnvironment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go index fba60fd4856..8367f4a6b9b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_CreateExperiment] +// [START dialogflow_v3beta1_generated_Experiments_CreateExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_CreateExperiment] +// [END dialogflow_v3beta1_generated_Experiments_CreateExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go index 3abc1cc73fa..9fcb276c779 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_DeleteExperiment] +// [START dialogflow_v3beta1_generated_Experiments_DeleteExperiment_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_DeleteExperiment] +// [END dialogflow_v3beta1_generated_Experiments_DeleteExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go index cc31d11b5b4..2f24c35b04c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_GetExperiment] +// [START dialogflow_v3beta1_generated_Experiments_GetExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_GetExperiment] +// [END dialogflow_v3beta1_generated_Experiments_GetExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go index 25b05462adb..e10be7de659 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_ListExperiments] +// [START dialogflow_v3beta1_generated_Experiments_ListExperiments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_ListExperiments] +// [END dialogflow_v3beta1_generated_Experiments_ListExperiments_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/NewExperimentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/NewExperimentsClient/main.go deleted file mode 100644 index 63489bb8b1f..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/NewExperimentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewExperimentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewExperimentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewExperimentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go index 3788bc54b1c..918fdfdd5e5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_StartExperiment] +// [START dialogflow_v3beta1_generated_Experiments_StartExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_StartExperiment] +// [END dialogflow_v3beta1_generated_Experiments_StartExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go index 6eafcfd5a4f..fdeac0ef878 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_StopExperiment] +// [START dialogflow_v3beta1_generated_Experiments_StopExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_StopExperiment] +// [END dialogflow_v3beta1_generated_Experiments_StopExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go index 0d0de6516d0..3db80010b5c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_UpdateExperiment] +// [START dialogflow_v3beta1_generated_Experiments_UpdateExperiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_ExperimentsClient_UpdateExperiment] +// [END dialogflow_v3beta1_generated_Experiments_UpdateExperiment_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go index 2db7ba2421c..239d3ccc897 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_CreateFlow] +// [START dialogflow_v3beta1_generated_Flows_CreateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_CreateFlow] +// [END dialogflow_v3beta1_generated_Flows_CreateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go index 79fffb6bd12..0e5e7b057c3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_DeleteFlow] +// [START dialogflow_v3beta1_generated_Flows_DeleteFlow_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_DeleteFlow] +// [END dialogflow_v3beta1_generated_Flows_DeleteFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go index e420cf81ba5..ffa0ee4c3fc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_GetFlow] +// [START dialogflow_v3beta1_generated_Flows_GetFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_GetFlow] +// [END dialogflow_v3beta1_generated_Flows_GetFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go index d5f903de22a..812e92b7370 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_GetFlowValidationResult] +// [START dialogflow_v3beta1_generated_Flows_GetFlowValidationResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_GetFlowValidationResult] +// [END dialogflow_v3beta1_generated_Flows_GetFlowValidationResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go index 3c880805124..ce064413871 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_ListFlows] +// [START dialogflow_v3beta1_generated_Flows_ListFlows_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_ListFlows] +// [END dialogflow_v3beta1_generated_Flows_ListFlows_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/NewFlowsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/NewFlowsClient/main.go deleted file mode 100644 index b1b05c2d78a..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/NewFlowsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewFlowsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewFlowsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewFlowsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go index e8437987cda..9db42c1341d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_TrainFlow] +// [START dialogflow_v3beta1_generated_Flows_TrainFlow_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_TrainFlow] +// [END dialogflow_v3beta1_generated_Flows_TrainFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go index 376ab03ce1e..0fd4aae8edf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_UpdateFlow] +// [START dialogflow_v3beta1_generated_Flows_UpdateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_UpdateFlow] +// [END dialogflow_v3beta1_generated_Flows_UpdateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go index 4d0d91a6ad9..6c02e78653c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_ValidateFlow] +// [START dialogflow_v3beta1_generated_Flows_ValidateFlow_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_FlowsClient_ValidateFlow] +// [END dialogflow_v3beta1_generated_Flows_ValidateFlow_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go index eb888ccb4bc..8f5d18eb3d7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_CreateIntent] +// [START dialogflow_v3beta1_generated_Intents_CreateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_CreateIntent] +// [END dialogflow_v3beta1_generated_Intents_CreateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go index 99ffeeb00b4..7c7b660d517 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_DeleteIntent] +// [START dialogflow_v3beta1_generated_Intents_DeleteIntent_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_DeleteIntent] +// [END dialogflow_v3beta1_generated_Intents_DeleteIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go index f454b05d007..6d18c633f6b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_GetIntent] +// [START dialogflow_v3beta1_generated_Intents_GetIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_GetIntent] +// [END dialogflow_v3beta1_generated_Intents_GetIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go index 996d03ece0a..af0e2ddc14c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_ListIntents] +// [START dialogflow_v3beta1_generated_Intents_ListIntents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_ListIntents] +// [END dialogflow_v3beta1_generated_Intents_ListIntents_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/NewIntentsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/NewIntentsClient/main.go deleted file mode 100644 index bafe51dc3dc..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/NewIntentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewIntentsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewIntentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewIntentsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go index 2df966e6147..a6a5b48483d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_UpdateIntent] +// [START dialogflow_v3beta1_generated_Intents_UpdateIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_IntentsClient_UpdateIntent] +// [END dialogflow_v3beta1_generated_Intents_UpdateIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go index 9105f834f17..c84a87fe8d6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_CreatePage] +// [START dialogflow_v3beta1_generated_Pages_CreatePage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_CreatePage] +// [END dialogflow_v3beta1_generated_Pages_CreatePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go index d65e1c49c46..e60e461141c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_DeletePage] +// [START dialogflow_v3beta1_generated_Pages_DeletePage_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_DeletePage] +// [END dialogflow_v3beta1_generated_Pages_DeletePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go index 035752abc02..6e1f94af419 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_GetPage] +// [START dialogflow_v3beta1_generated_Pages_GetPage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_GetPage] +// [END dialogflow_v3beta1_generated_Pages_GetPage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go index 7838453eb7c..c427b904f5a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_ListPages] +// [START dialogflow_v3beta1_generated_Pages_ListPages_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_ListPages] +// [END dialogflow_v3beta1_generated_Pages_ListPages_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/NewPagesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/NewPagesClient/main.go deleted file mode 100644 index eaa219fd8ff..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/NewPagesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewPagesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewPagesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewPagesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go index 92a8fa972b9..2ee4fbd88e9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_UpdatePage] +// [START dialogflow_v3beta1_generated_Pages_UpdatePage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_PagesClient_UpdatePage] +// [END dialogflow_v3beta1_generated_Pages_UpdatePage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go index 6143c29f58d..3dd234562a6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_CreateSecuritySettings] +// [START dialogflow_v3beta1_generated_SecuritySettingsService_CreateSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_CreateSecuritySettings] +// [END dialogflow_v3beta1_generated_SecuritySettingsService_CreateSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go index d210db11edb..257a154308c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_DeleteSecuritySettings] +// [START dialogflow_v3beta1_generated_SecuritySettingsService_DeleteSecuritySettings_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_DeleteSecuritySettings] +// [END dialogflow_v3beta1_generated_SecuritySettingsService_DeleteSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go index 48f6cb3f310..dfab8bb2d87 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_GetSecuritySettings] +// [START dialogflow_v3beta1_generated_SecuritySettingsService_GetSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_GetSecuritySettings] +// [END dialogflow_v3beta1_generated_SecuritySettingsService_GetSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go index e2b6c881acc..200ebc3b085 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_ListSecuritySettings] +// [START dialogflow_v3beta1_generated_SecuritySettingsService_ListSecuritySettings_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_ListSecuritySettings] +// [END dialogflow_v3beta1_generated_SecuritySettingsService_ListSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/NewSecuritySettingsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/NewSecuritySettingsClient/main.go deleted file mode 100644 index d65daebf611..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/NewSecuritySettingsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewSecuritySettingsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSecuritySettingsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewSecuritySettingsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go index d7329dc373a..ee90611da48 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_UpdateSecuritySettings] +// [START dialogflow_v3beta1_generated_SecuritySettingsService_UpdateSecuritySettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SecuritySettingsClient_UpdateSecuritySettings] +// [END dialogflow_v3beta1_generated_SecuritySettingsService_UpdateSecuritySettings_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go index e3f9596831d..198143a9216 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_CreateSessionEntityType] +// [START dialogflow_v3beta1_generated_SessionEntityTypes_CreateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_CreateSessionEntityType] +// [END dialogflow_v3beta1_generated_SessionEntityTypes_CreateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go index e3b27572215..ccd64f0a8a4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_DeleteSessionEntityType] +// [START dialogflow_v3beta1_generated_SessionEntityTypes_DeleteSessionEntityType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_DeleteSessionEntityType] +// [END dialogflow_v3beta1_generated_SessionEntityTypes_DeleteSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go index 38e08d04923..f9d749974cc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_GetSessionEntityType] +// [START dialogflow_v3beta1_generated_SessionEntityTypes_GetSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_GetSessionEntityType] +// [END dialogflow_v3beta1_generated_SessionEntityTypes_GetSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go index 0f0a9e88c45..8883701cb42 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_ListSessionEntityTypes] +// [START dialogflow_v3beta1_generated_SessionEntityTypes_ListSessionEntityTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_ListSessionEntityTypes] +// [END dialogflow_v3beta1_generated_SessionEntityTypes_ListSessionEntityTypes_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go deleted file mode 100644 index cb8509a1437..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/NewSessionEntityTypesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewSessionEntityTypesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSessionEntityTypesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewSessionEntityTypesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go index 8c3d8b58260..d07d5909fef 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_UpdateSessionEntityType] +// [START dialogflow_v3beta1_generated_SessionEntityTypes_UpdateSessionEntityType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionEntityTypesClient_UpdateSessionEntityType] +// [END dialogflow_v3beta1_generated_SessionEntityTypes_UpdateSessionEntityType_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go index 20cf6ecece2..eaecf2f4db3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_DetectIntent] +// [START dialogflow_v3beta1_generated_Sessions_DetectIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_DetectIntent] +// [END dialogflow_v3beta1_generated_Sessions_DetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go index b3bf1ab2772..349b30b3f50 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_FulfillIntent] +// [START dialogflow_v3beta1_generated_Sessions_FulfillIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_FulfillIntent] +// [END dialogflow_v3beta1_generated_Sessions_FulfillIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go index 2a0ae477f91..903c6fca9f2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_MatchIntent] +// [START dialogflow_v3beta1_generated_Sessions_MatchIntent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_MatchIntent] +// [END dialogflow_v3beta1_generated_Sessions_MatchIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/NewSessionsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/NewSessionsClient/main.go deleted file mode 100644 index 7fd638a4e72..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/NewSessionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewSessionsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewSessionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewSessionsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go index e8c99c42ca3..b5147ac2226 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_StreamingDetectIntent] +// [START dialogflow_v3beta1_generated_Sessions_StreamingDetectIntent_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_SessionsClient_StreamingDetectIntent] +// [END dialogflow_v3beta1_generated_Sessions_StreamingDetectIntent_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go index 6462e0dd77d..c801a1f8d18 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_BatchDeleteTestCases] +// [START dialogflow_v3beta1_generated_TestCases_BatchDeleteTestCases_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_BatchDeleteTestCases] +// [END dialogflow_v3beta1_generated_TestCases_BatchDeleteTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go index f2f1e2c98d7..a25df284fee 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_BatchRunTestCases] +// [START dialogflow_v3beta1_generated_TestCases_BatchRunTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_BatchRunTestCases] +// [END dialogflow_v3beta1_generated_TestCases_BatchRunTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go index 7bf81e5aeba..31d9e7d9027 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_CalculateCoverage] +// [START dialogflow_v3beta1_generated_TestCases_CalculateCoverage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_CalculateCoverage] +// [END dialogflow_v3beta1_generated_TestCases_CalculateCoverage_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go index f305680dafb..4a8f19e9532 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_CreateTestCase] +// [START dialogflow_v3beta1_generated_TestCases_CreateTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_CreateTestCase] +// [END dialogflow_v3beta1_generated_TestCases_CreateTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go index 7bb3b49c65c..c5c9b892875 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ExportTestCases] +// [START dialogflow_v3beta1_generated_TestCases_ExportTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ExportTestCases] +// [END dialogflow_v3beta1_generated_TestCases_ExportTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go index e27b8c1bc15..607f28d9dad 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_GetTestCase] +// [START dialogflow_v3beta1_generated_TestCases_GetTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_GetTestCase] +// [END dialogflow_v3beta1_generated_TestCases_GetTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go index a0480880925..0d7f04c6100 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_GetTestCaseResult] +// [START dialogflow_v3beta1_generated_TestCases_GetTestCaseResult_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_GetTestCaseResult] +// [END dialogflow_v3beta1_generated_TestCases_GetTestCaseResult_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go index 3d0b53cd899..6b7f25d86f5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ImportTestCases] +// [START dialogflow_v3beta1_generated_TestCases_ImportTestCases_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ImportTestCases] +// [END dialogflow_v3beta1_generated_TestCases_ImportTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go index 37b23da8be1..5af235e7551 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ListTestCaseResults] +// [START dialogflow_v3beta1_generated_TestCases_ListTestCaseResults_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ListTestCaseResults] +// [END dialogflow_v3beta1_generated_TestCases_ListTestCaseResults_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go index 2d07be3215a..497a4d17f88 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ListTestCases] +// [START dialogflow_v3beta1_generated_TestCases_ListTestCases_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_ListTestCases] +// [END dialogflow_v3beta1_generated_TestCases_ListTestCases_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/NewTestCasesClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/NewTestCasesClient/main.go deleted file mode 100644 index 060f1696ec9..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/NewTestCasesClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewTestCasesClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewTestCasesClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewTestCasesClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go index 0d19928ab36..add3c04f6b1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_RunTestCase] +// [START dialogflow_v3beta1_generated_TestCases_RunTestCase_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_RunTestCase] +// [END dialogflow_v3beta1_generated_TestCases_RunTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go index 3e2134f0d2f..ac8dd0a5eda 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_UpdateTestCase] +// [START dialogflow_v3beta1_generated_TestCases_UpdateTestCase_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TestCasesClient_UpdateTestCase] +// [END dialogflow_v3beta1_generated_TestCases_UpdateTestCase_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go index 1f300beb14f..5beaed25e39 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_CreateTransitionRouteGroup] +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_CreateTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_CreateTransitionRouteGroup] +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_CreateTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go index d3dba1ca4ba..41cb4cea3ee 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_DeleteTransitionRouteGroup] +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_DeleteTransitionRouteGroup] +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go index a3e94ab3a82..9ee0f9beb91 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_GetTransitionRouteGroup] +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_GetTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_GetTransitionRouteGroup] +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_GetTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go index 941979c76e5..50cb81cf306 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_ListTransitionRouteGroups] +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_ListTransitionRouteGroups_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_ListTransitionRouteGroups] +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_ListTransitionRouteGroups_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go deleted file mode 100644 index a9903153be7..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/NewTransitionRouteGroupsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewTransitionRouteGroupsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewTransitionRouteGroupsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewTransitionRouteGroupsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go index b7389bd32fa..f32b211220d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_UpdateTransitionRouteGroup] +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_TransitionRouteGroupsClient_UpdateTransitionRouteGroup] +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go index 6813e1d0937..95bcdd31b01 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_CreateVersion] +// [START dialogflow_v3beta1_generated_Versions_CreateVersion_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_CreateVersion] +// [END dialogflow_v3beta1_generated_Versions_CreateVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go index fea3737641e..8c8f3387b71 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_DeleteVersion] +// [START dialogflow_v3beta1_generated_Versions_DeleteVersion_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_DeleteVersion] +// [END dialogflow_v3beta1_generated_Versions_DeleteVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go index 60edadf689a..1d72dc29e60 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_GetVersion] +// [START dialogflow_v3beta1_generated_Versions_GetVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_GetVersion] +// [END dialogflow_v3beta1_generated_Versions_GetVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go index 8c3f396e629..f5fe7735f5d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_ListVersions] +// [START dialogflow_v3beta1_generated_Versions_ListVersions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_ListVersions] +// [END dialogflow_v3beta1_generated_Versions_ListVersions_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go index 53b77ffec4f..2be1cd6e68d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_LoadVersion] +// [START dialogflow_v3beta1_generated_Versions_LoadVersion_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_LoadVersion] +// [END dialogflow_v3beta1_generated_Versions_LoadVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/NewVersionsClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/NewVersionsClient/main.go deleted file mode 100644 index 44d040cf20d..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/NewVersionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewVersionsClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewVersionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewVersionsClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go index 699d7af8eee..9146e1ea2d8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_UpdateVersion] +// [START dialogflow_v3beta1_generated_Versions_UpdateVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_VersionsClient_UpdateVersion] +// [END dialogflow_v3beta1_generated_Versions_UpdateVersion_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go index 3dddf4ad29d..67822cd05c1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_CreateWebhook] +// [START dialogflow_v3beta1_generated_Webhooks_CreateWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_CreateWebhook] +// [END dialogflow_v3beta1_generated_Webhooks_CreateWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go index d546e3cf43e..f5ba4beda93 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_DeleteWebhook] +// [START dialogflow_v3beta1_generated_Webhooks_DeleteWebhook_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_DeleteWebhook] +// [END dialogflow_v3beta1_generated_Webhooks_DeleteWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go index ecf5975c82e..646c1df4c0b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_GetWebhook] +// [START dialogflow_v3beta1_generated_Webhooks_GetWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_GetWebhook] +// [END dialogflow_v3beta1_generated_Webhooks_GetWebhook_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go index adcede70452..ac4c18eda9b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_ListWebhooks] +// [START dialogflow_v3beta1_generated_Webhooks_ListWebhooks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_ListWebhooks] +// [END dialogflow_v3beta1_generated_Webhooks_ListWebhooks_sync] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/NewWebhooksClient/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/NewWebhooksClient/main.go deleted file mode 100644 index 5a4db9182b9..00000000000 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/NewWebhooksClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_NewWebhooksClient] - -package main - -import ( - "context" - - cx "cloud.google.com/go/dialogflow/cx/apiv3beta1" -) - -func main() { - ctx := context.Background() - c, err := cx.NewWebhooksClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_NewWebhooksClient] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go index de632b2c000..68524afa24a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_UpdateWebhook] +// [START dialogflow_v3beta1_generated_Webhooks_UpdateWebhook_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dialogflow_generated_dialogflow_cx_apiv3beta1_WebhooksClient_UpdateWebhook] +// [END dialogflow_v3beta1_generated_Webhooks_UpdateWebhook_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go index 93cc59c7a64..47b981d4dc6 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ActivateJobTrigger] +// [START dlp_v2_generated_DlpService_ActivateJobTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_ActivateJobTrigger] +// [END dlp_v2_generated_DlpService_ActivateJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go index 6127c9547bc..09bc36b7dd3 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CancelDlpJob] +// [START dlp_v2_generated_DlpService_CancelDlpJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_CancelDlpJob] +// [END dlp_v2_generated_DlpService_CancelDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go index 62e7873a0ca..b48d024e935 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CreateDeidentifyTemplate] +// [START dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_CreateDeidentifyTemplate] +// [END dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go index bfdd950ad27..adca6c725e9 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CreateDlpJob] +// [START dlp_v2_generated_DlpService_CreateDlpJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_CreateDlpJob] +// [END dlp_v2_generated_DlpService_CreateDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go index 010761daf2b..7963b23b346 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CreateInspectTemplate] +// [START dlp_v2_generated_DlpService_CreateInspectTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_CreateInspectTemplate] +// [END dlp_v2_generated_DlpService_CreateInspectTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go index 003eb710753..a1ca1ccafc8 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CreateJobTrigger] +// [START dlp_v2_generated_DlpService_CreateJobTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_CreateJobTrigger] +// [END dlp_v2_generated_DlpService_CreateJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go index d7a8a19d9a2..cd7ed6f9621 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_CreateStoredInfoType] +// [START dlp_v2_generated_DlpService_CreateStoredInfoType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_CreateStoredInfoType] +// [END dlp_v2_generated_DlpService_CreateStoredInfoType_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go index d5e3d8c2037..3767c4210c3 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeidentifyContent] +// [START dlp_v2_generated_DlpService_DeidentifyContent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_DeidentifyContent] +// [END dlp_v2_generated_DlpService_DeidentifyContent_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go index 09d588107af..f206a5c6d82 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeleteDeidentifyTemplate] +// [START dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_DeleteDeidentifyTemplate] +// [END dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go index 834d607b652..b7e6d3b7f73 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeleteDlpJob] +// [START dlp_v2_generated_DlpService_DeleteDlpJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_DeleteDlpJob] +// [END dlp_v2_generated_DlpService_DeleteDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go index 7025fb04e6b..baa508924ac 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeleteInspectTemplate] +// [START dlp_v2_generated_DlpService_DeleteInspectTemplate_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_DeleteInspectTemplate] +// [END dlp_v2_generated_DlpService_DeleteInspectTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go index 7374c63fc85..301eb0ebe2f 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeleteJobTrigger] +// [START dlp_v2_generated_DlpService_DeleteJobTrigger_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_DeleteJobTrigger] +// [END dlp_v2_generated_DlpService_DeleteJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go index 96aae14bd36..a86f13ef354 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_DeleteStoredInfoType] +// [START dlp_v2_generated_DlpService_DeleteStoredInfoType_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_DeleteStoredInfoType] +// [END dlp_v2_generated_DlpService_DeleteStoredInfoType_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go index 48e2b9d3b37..3eccd6ff873 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_FinishDlpJob] +// [START dlp_v2_generated_DlpService_FinishDlpJob_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_FinishDlpJob] +// [END dlp_v2_generated_DlpService_FinishDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go index e5eba9bd18d..f1aab5123e5 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_GetDeidentifyTemplate] +// [START dlp_v2_generated_DlpService_GetDeidentifyTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_GetDeidentifyTemplate] +// [END dlp_v2_generated_DlpService_GetDeidentifyTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go index 82ab2cd1a66..b6508452657 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_GetDlpJob] +// [START dlp_v2_generated_DlpService_GetDlpJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_GetDlpJob] +// [END dlp_v2_generated_DlpService_GetDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go index 6fac0f7a7e1..8712882fe1d 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_GetInspectTemplate] +// [START dlp_v2_generated_DlpService_GetInspectTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_GetInspectTemplate] +// [END dlp_v2_generated_DlpService_GetInspectTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go index bb5a0de8253..23436db7611 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_GetJobTrigger] +// [START dlp_v2_generated_DlpService_GetJobTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_GetJobTrigger] +// [END dlp_v2_generated_DlpService_GetJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go index c0d43a20204..fcfd07873bc 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_GetStoredInfoType] +// [START dlp_v2_generated_DlpService_GetStoredInfoType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_GetStoredInfoType] +// [END dlp_v2_generated_DlpService_GetStoredInfoType_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go index dcc7ccbef59..9b1b78e5897 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_HybridInspectDlpJob] +// [START dlp_v2_generated_DlpService_HybridInspectDlpJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_HybridInspectDlpJob] +// [END dlp_v2_generated_DlpService_HybridInspectDlpJob_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go index 5d4696292b9..175b794e55e 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_HybridInspectJobTrigger] +// [START dlp_v2_generated_DlpService_HybridInspectJobTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_HybridInspectJobTrigger] +// [END dlp_v2_generated_DlpService_HybridInspectJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go index 4b5ca1dac30..171a2187c48 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_InspectContent] +// [START dlp_v2_generated_DlpService_InspectContent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_InspectContent] +// [END dlp_v2_generated_DlpService_InspectContent_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go index e1defb74256..b56e394d124 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListDeidentifyTemplates] +// [START dlp_v2_generated_DlpService_ListDeidentifyTemplates_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_ListDeidentifyTemplates] +// [END dlp_v2_generated_DlpService_ListDeidentifyTemplates_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go index 53a075b1865..9b963c15711 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListDlpJobs] +// [START dlp_v2_generated_DlpService_ListDlpJobs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_ListDlpJobs] +// [END dlp_v2_generated_DlpService_ListDlpJobs_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go index 282b43cdde2..1415f14f241 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListInfoTypes] +// [START dlp_v2_generated_DlpService_ListInfoTypes_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_ListInfoTypes] +// [END dlp_v2_generated_DlpService_ListInfoTypes_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go index 8176cee3101..44b4ed07882 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListInspectTemplates] +// [START dlp_v2_generated_DlpService_ListInspectTemplates_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_ListInspectTemplates] +// [END dlp_v2_generated_DlpService_ListInspectTemplates_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go index 9b9e6299207..4fec0e01526 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListJobTriggers] +// [START dlp_v2_generated_DlpService_ListJobTriggers_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_ListJobTriggers] +// [END dlp_v2_generated_DlpService_ListJobTriggers_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go index a60a83f817c..6623f738671 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ListStoredInfoTypes] +// [START dlp_v2_generated_DlpService_ListStoredInfoTypes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END dlp_generated_dlp_apiv2_Client_ListStoredInfoTypes] +// [END dlp_v2_generated_DlpService_ListStoredInfoTypes_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/NewClient/main.go b/internal/generated/snippets/dlp/apiv2/Client/NewClient/main.go deleted file mode 100644 index eebfa7ca5bf..00000000000 --- a/internal/generated/snippets/dlp/apiv2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START dlp_generated_dlp_apiv2_NewClient] - -package main - -import ( - "context" - - dlp "cloud.google.com/go/dlp/apiv2" -) - -func main() { - ctx := context.Background() - c, err := dlp.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END dlp_generated_dlp_apiv2_NewClient] diff --git a/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go b/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go index fe91d264247..6fb695ef67d 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_RedactImage] +// [START dlp_v2_generated_DlpService_RedactImage_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_RedactImage] +// [END dlp_v2_generated_DlpService_RedactImage_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go index a6b5a58539d..fe59b820052 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_ReidentifyContent] +// [START dlp_v2_generated_DlpService_ReidentifyContent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_ReidentifyContent] +// [END dlp_v2_generated_DlpService_ReidentifyContent_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go index 882c3418624..9ef9185a4b7 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_UpdateDeidentifyTemplate] +// [START dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_UpdateDeidentifyTemplate] +// [END dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go index 685d50a94c7..d95154b404a 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_UpdateInspectTemplate] +// [START dlp_v2_generated_DlpService_UpdateInspectTemplate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_UpdateInspectTemplate] +// [END dlp_v2_generated_DlpService_UpdateInspectTemplate_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go index f034d1bde95..ab18c9e3896 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_UpdateJobTrigger] +// [START dlp_v2_generated_DlpService_UpdateJobTrigger_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_UpdateJobTrigger] +// [END dlp_v2_generated_DlpService_UpdateJobTrigger_sync] diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go index c9f592bb299..5f273154f0c 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START dlp_generated_dlp_apiv2_Client_UpdateStoredInfoType] +// [START dlp_v2_generated_DlpService_UpdateStoredInfoType_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END dlp_generated_dlp_apiv2_Client_UpdateStoredInfoType] +// [END dlp_v2_generated_DlpService_UpdateStoredInfoType_sync] diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go index 2c968627d3c..286dbae7e3d 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1_DocumentProcessorClient_BatchProcessDocuments] +// [START documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1_DocumentProcessorClient_BatchProcessDocuments] +// [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync] diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/NewDocumentProcessorClient/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/NewDocumentProcessorClient/main.go deleted file mode 100644 index 0419e458dc0..00000000000 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/NewDocumentProcessorClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START documentai_generated_documentai_apiv1_NewDocumentProcessorClient] - -package main - -import ( - "context" - - documentai "cloud.google.com/go/documentai/apiv1" -) - -func main() { - ctx := context.Background() - c, err := documentai.NewDocumentProcessorClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END documentai_generated_documentai_apiv1_NewDocumentProcessorClient] diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go index 71df23f0d0a..4babe59bc68 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1_DocumentProcessorClient_ProcessDocument] +// [START documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1_DocumentProcessorClient_ProcessDocument] +// [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync] diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go index ea830688294..5d57ddcaf70 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1_DocumentProcessorClient_ReviewDocument] +// [START documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1_DocumentProcessorClient_ReviewDocument] +// [END documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync] diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go index 3a527ecb186..a1fe9785226 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_BatchProcessDocuments] +// [START documentai_v1beta3_generated_DocumentProcessorService_BatchProcessDocuments_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_BatchProcessDocuments] +// [END documentai_v1beta3_generated_DocumentProcessorService_BatchProcessDocuments_sync] diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/NewDocumentProcessorClient/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/NewDocumentProcessorClient/main.go deleted file mode 100644 index 753fdb4f31f..00000000000 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/NewDocumentProcessorClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START documentai_generated_documentai_apiv1beta3_NewDocumentProcessorClient] - -package main - -import ( - "context" - - documentai "cloud.google.com/go/documentai/apiv1beta3" -) - -func main() { - ctx := context.Background() - c, err := documentai.NewDocumentProcessorClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END documentai_generated_documentai_apiv1beta3_NewDocumentProcessorClient] diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go index 2c97c4ecf37..b9b0ea4f9fe 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_ProcessDocument] +// [START documentai_v1beta3_generated_DocumentProcessorService_ProcessDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_ProcessDocument] +// [END documentai_v1beta3_generated_DocumentProcessorService_ProcessDocument_sync] diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go index 66e9f8b1824..0ddc864b2d3 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_ReviewDocument] +// [START documentai_v1beta3_generated_DocumentProcessorService_ReviewDocument_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END documentai_generated_documentai_apiv1beta3_DocumentProcessorClient_ReviewDocument] +// [END documentai_v1beta3_generated_DocumentProcessorService_ReviewDocument_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go index c5b39e58f1a..4ac06ae4ea1 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ConfigureContactSettings] +// [START domains_v1beta1_generated_Domains_ConfigureContactSettings_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_ConfigureContactSettings] +// [END domains_v1beta1_generated_Domains_ConfigureContactSettings_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go index 9ab87284c1c..4016e8040f8 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ConfigureDnsSettings] +// [START domains_v1beta1_generated_Domains_ConfigureDnsSettings_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_ConfigureDnsSettings] +// [END domains_v1beta1_generated_Domains_ConfigureDnsSettings_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go index bd699cc978f..0eb523aea8c 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ConfigureManagementSettings] +// [START domains_v1beta1_generated_Domains_ConfigureManagementSettings_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_ConfigureManagementSettings] +// [END domains_v1beta1_generated_Domains_ConfigureManagementSettings_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go index 1baddc06080..080b4472369 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_DeleteRegistration] +// [START domains_v1beta1_generated_Domains_DeleteRegistration_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END domains_generated_domains_apiv1beta1_Client_DeleteRegistration] +// [END domains_v1beta1_generated_Domains_DeleteRegistration_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go index 81fb263a8e4..89a7080dea2 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ExportRegistration] +// [START domains_v1beta1_generated_Domains_ExportRegistration_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_ExportRegistration] +// [END domains_v1beta1_generated_Domains_ExportRegistration_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go index 415aee5318e..bfbfe8e1304 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_GetRegistration] +// [START domains_v1beta1_generated_Domains_GetRegistration_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_GetRegistration] +// [END domains_v1beta1_generated_Domains_GetRegistration_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go index cb39a23419b..913d586be86 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ListRegistrations] +// [START domains_v1beta1_generated_Domains_ListRegistrations_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END domains_generated_domains_apiv1beta1_Client_ListRegistrations] +// [END domains_v1beta1_generated_Domains_ListRegistrations_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index d03492856dc..00000000000 --- a/internal/generated/snippets/domains/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START domains_generated_domains_apiv1beta1_NewClient] - -package main - -import ( - "context" - - domains "cloud.google.com/go/domains/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := domains.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END domains_generated_domains_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go index 24e8f1c4af8..9d017102bc5 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_RegisterDomain] +// [START domains_v1beta1_generated_Domains_RegisterDomain_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_RegisterDomain] +// [END domains_v1beta1_generated_Domains_RegisterDomain_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go index 3c3e35bf7a0..32ca0219cd9 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_ResetAuthorizationCode] +// [START domains_v1beta1_generated_Domains_ResetAuthorizationCode_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_ResetAuthorizationCode] +// [END domains_v1beta1_generated_Domains_ResetAuthorizationCode_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go index 8371a4dd716..0f55f3f7ff8 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_RetrieveAuthorizationCode] +// [START domains_v1beta1_generated_Domains_RetrieveAuthorizationCode_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_RetrieveAuthorizationCode] +// [END domains_v1beta1_generated_Domains_RetrieveAuthorizationCode_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go index 0b2b2be83e1..f1a07ecf6b7 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_RetrieveRegisterParameters] +// [START domains_v1beta1_generated_Domains_RetrieveRegisterParameters_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_RetrieveRegisterParameters] +// [END domains_v1beta1_generated_Domains_RetrieveRegisterParameters_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go index 737be3ba097..bfb8b676f4a 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_SearchDomains] +// [START domains_v1beta1_generated_Domains_SearchDomains_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_SearchDomains] +// [END domains_v1beta1_generated_Domains_SearchDomains_sync] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go index a85be47eb9d..1338c152fff 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START domains_generated_domains_apiv1beta1_Client_UpdateRegistration] +// [START domains_v1beta1_generated_Domains_UpdateRegistration_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END domains_generated_domains_apiv1beta1_Client_UpdateRegistration] +// [END domains_v1beta1_generated_Domains_UpdateRegistration_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go index ac808da5eb6..9880f33f141 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorGroupClient_GetGroup] +// [START clouderrorreporting_v1beta1_generated_ErrorGroupService_GetGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorGroupClient_GetGroup] +// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_GetGroup_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/NewErrorGroupClient/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/NewErrorGroupClient/main.go deleted file mode 100644 index de3526675c1..00000000000 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/NewErrorGroupClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_NewErrorGroupClient] - -package main - -import ( - "context" - - errorreporting "cloud.google.com/go/errorreporting/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := errorreporting.NewErrorGroupClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_NewErrorGroupClient] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go index 12535e455a3..99b99ab7fe1 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorGroupClient_UpdateGroup] +// [START clouderrorreporting_v1beta1_generated_ErrorGroupService_UpdateGroup_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorGroupClient_UpdateGroup] +// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_UpdateGroup_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go index 119de562a2e..175dc78da98 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_DeleteEvents] +// [START clouderrorreporting_v1beta1_generated_ErrorStatsService_DeleteEvents_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_DeleteEvents] +// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_DeleteEvents_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go index 7927ff1ed39..280c0017214 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_ListEvents] +// [START clouderrorreporting_v1beta1_generated_ErrorStatsService_ListEvents_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_ListEvents] +// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_ListEvents_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go index 09047e6a0d9..597d3e4dacb 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_ListGroupStats] +// [START clouderrorreporting_v1beta1_generated_ErrorStatsService_ListGroupStats_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ErrorStatsClient_ListGroupStats] +// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_ListGroupStats_sync] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/NewErrorStatsClient/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/NewErrorStatsClient/main.go deleted file mode 100644 index a55c35b788d..00000000000 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/NewErrorStatsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_NewErrorStatsClient] - -package main - -import ( - "context" - - errorreporting "cloud.google.com/go/errorreporting/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := errorreporting.NewErrorStatsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_NewErrorStatsClient] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/NewReportErrorsClient/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/NewReportErrorsClient/main.go deleted file mode 100644 index ab6fa004405..00000000000 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/NewReportErrorsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_NewReportErrorsClient] - -package main - -import ( - "context" - - errorreporting "cloud.google.com/go/errorreporting/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := errorreporting.NewReportErrorsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_NewReportErrorsClient] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go index e91e208955b..4aa1a0f75fe 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START clouderrorreporting_generated_errorreporting_apiv1beta1_ReportErrorsClient_ReportErrorEvent] +// [START clouderrorreporting_v1beta1_generated_ReportErrorsService_ReportErrorEvent_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END clouderrorreporting_generated_errorreporting_apiv1beta1_ReportErrorsClient_ReportErrorEvent] +// [END clouderrorreporting_v1beta1_generated_ReportErrorsService_ReportErrorEvent_sync] diff --git a/internal/generated/snippets/firestore/ArrayRemove/main.go b/internal/generated/snippets/firestore/ArrayRemove/main.go deleted file mode 100644 index a1c0e072b7b..00000000000 --- a/internal/generated/snippets/firestore/ArrayRemove/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_ArrayRemove_update] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - co := client.Doc("States/Colorado") - wr, err := co.Update(ctx, []firestore.Update{ - {Path: "cities", Value: firestore.ArrayRemove("Denver")}, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_ArrayRemove_update] diff --git a/internal/generated/snippets/firestore/ArrayUnion/create/main.go b/internal/generated/snippets/firestore/ArrayUnion/create/main.go deleted file mode 100644 index 9be1f56328f..00000000000 --- a/internal/generated/snippets/firestore/ArrayUnion/create/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_ArrayUnion_create] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - wr, err := client.Doc("States/Colorado").Create(ctx, map[string]interface{}{ - "cities": firestore.ArrayUnion("Denver", "Golden", "Boulder"), - "pop": 5.5, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_ArrayUnion_create] diff --git a/internal/generated/snippets/firestore/ArrayUnion/update/main.go b/internal/generated/snippets/firestore/ArrayUnion/update/main.go deleted file mode 100644 index a738e454a3c..00000000000 --- a/internal/generated/snippets/firestore/ArrayUnion/update/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_ArrayUnion_update] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - co := client.Doc("States/Colorado") - wr, err := co.Update(ctx, []firestore.Update{ - {Path: "cities", Value: firestore.ArrayUnion("Broomfield")}, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_ArrayUnion_update] diff --git a/internal/generated/snippets/firestore/Client/Batch/main.go b/internal/generated/snippets/firestore/Client/Batch/main.go deleted file mode 100644 index a77828cd93b..00000000000 --- a/internal/generated/snippets/firestore/Client/Batch/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_Batch] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - b := client.Batch() - _ = b // TODO: Use batch. -} - -// [END firestore_generated_firestore_Client_Batch] diff --git a/internal/generated/snippets/firestore/Client/Collection/main.go b/internal/generated/snippets/firestore/Client/Collection/main.go deleted file mode 100644 index 8ea6007f837..00000000000 --- a/internal/generated/snippets/firestore/Client/Collection/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_Collection] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - coll1 := client.Collection("States") - coll2 := client.Collection("States/NewYork/Cities") - fmt.Println(coll1, coll2) -} - -// [END firestore_generated_firestore_Client_Collection] diff --git a/internal/generated/snippets/firestore/Client/CollectionGroup/main.go b/internal/generated/snippets/firestore/Client/CollectionGroup/main.go deleted file mode 100644 index 34a408d393f..00000000000 --- a/internal/generated/snippets/firestore/Client/CollectionGroup/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_CollectionGroup] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - // Given: - // France/Cities/Paris = {population: 100} - // Canada/Cities/Montreal = {population: 95} - - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - // Query for ANY city with >95 pop, regardless of country. - docs, err := client.CollectionGroup("Cities"). - Where("pop", ">", 95). - OrderBy("pop", firestore.Desc). - Limit(10). - Documents(ctx). - GetAll() - if err != nil { - // TODO: Handle error. - } - - _ = docs // TODO: Use docs. -} - -// [END firestore_generated_firestore_Client_CollectionGroup] diff --git a/internal/generated/snippets/firestore/Client/Doc/main.go b/internal/generated/snippets/firestore/Client/Doc/main.go deleted file mode 100644 index c01f973bc5d..00000000000 --- a/internal/generated/snippets/firestore/Client/Doc/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_Doc] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - doc1 := client.Doc("States/NewYork") - doc2 := client.Doc("States/NewYork/Cities/Albany") - fmt.Println(doc1, doc2) -} - -// [END firestore_generated_firestore_Client_Doc] diff --git a/internal/generated/snippets/firestore/Client/GetAll/main.go b/internal/generated/snippets/firestore/Client/GetAll/main.go deleted file mode 100644 index bb211c459ce..00000000000 --- a/internal/generated/snippets/firestore/Client/GetAll/main.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_GetAll] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - docs, err := client.GetAll(ctx, []*firestore.DocumentRef{ - client.Doc("States/NorthCarolina"), - client.Doc("States/SouthCarolina"), - client.Doc("States/WestCarolina"), - client.Doc("States/EastCarolina"), - }) - if err != nil { - // TODO: Handle error. - } - // docs is a slice with four DocumentSnapshots, but the last two are - // nil because there is no West or East Carolina. - fmt.Println(docs) -} - -// [END firestore_generated_firestore_Client_GetAll] diff --git a/internal/generated/snippets/firestore/Client/NewClient/main.go b/internal/generated/snippets/firestore/Client/NewClient/main.go deleted file mode 100644 index 5b94dc08c58..00000000000 --- a/internal/generated/snippets/firestore/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_NewClient] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() // Close client when done. - _ = client // TODO: Use client. -} - -// [END firestore_generated_firestore_NewClient] diff --git a/internal/generated/snippets/firestore/Client/RunTransaction/main.go b/internal/generated/snippets/firestore/Client/RunTransaction/main.go deleted file mode 100644 index b4586bb4e6b..00000000000 --- a/internal/generated/snippets/firestore/Client/RunTransaction/main.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Client_RunTransaction] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - nm := client.Doc("States/NewMexico") - err = client.RunTransaction(ctx, func(ctx context.Context, tx *firestore.Transaction) error { - doc, err := tx.Get(nm) // tx.Get, NOT nm.Get! - if err != nil { - return err - } - pop, err := doc.DataAt("pop") - if err != nil { - return err - } - return tx.Update(nm, []firestore.Update{{Path: "pop", Value: pop.(float64) + 0.2}}) - }) - if err != nil { - // TODO: Handle error. - } -} - -// [END firestore_generated_firestore_Client_RunTransaction] diff --git a/internal/generated/snippets/firestore/CollectionRef/Add/main.go b/internal/generated/snippets/firestore/CollectionRef/Add/main.go deleted file mode 100644 index 0feabb01440..00000000000 --- a/internal/generated/snippets/firestore/CollectionRef/Add/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_CollectionRef_Add] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - doc, wr, err := client.Collection("Users").Add(ctx, map[string]interface{}{ - "name": "Alice", - "email": "aj@example.com", - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(doc, wr) -} - -// [END firestore_generated_firestore_CollectionRef_Add] diff --git a/internal/generated/snippets/firestore/CollectionRef/Doc/main.go b/internal/generated/snippets/firestore/CollectionRef/Doc/main.go deleted file mode 100644 index 866d8a72d7d..00000000000 --- a/internal/generated/snippets/firestore/CollectionRef/Doc/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_CollectionRef_Doc] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - fl := client.Collection("States").Doc("Florida") - ta := client.Collection("States").Doc("Florida/Cities/Tampa") - - fmt.Println(fl, ta) -} - -// [END firestore_generated_firestore_CollectionRef_Doc] diff --git a/internal/generated/snippets/firestore/CollectionRef/NewDoc/main.go b/internal/generated/snippets/firestore/CollectionRef/NewDoc/main.go deleted file mode 100644 index 406dbd0869e..00000000000 --- a/internal/generated/snippets/firestore/CollectionRef/NewDoc/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_CollectionRef_NewDoc] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - doc := client.Collection("Users").NewDoc() - - fmt.Println(doc) -} - -// [END firestore_generated_firestore_CollectionRef_NewDoc] diff --git a/internal/generated/snippets/firestore/DocumentIterator/GetAll/main.go b/internal/generated/snippets/firestore/DocumentIterator/GetAll/main.go deleted file mode 100644 index 59f39edf0a8..00000000000 --- a/internal/generated/snippets/firestore/DocumentIterator/GetAll/main.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentIterator_GetAll] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - q := client.Collection("States"). - Where("pop", ">", 10). - OrderBy("pop", firestore.Desc). - Limit(10) // a good idea with GetAll, to avoid filling memory - docs, err := q.Documents(ctx).GetAll() - if err != nil { - // TODO: Handle error. - } - for _, doc := range docs { - fmt.Println(doc.Data()) - } -} - -// [END firestore_generated_firestore_DocumentIterator_GetAll] diff --git a/internal/generated/snippets/firestore/DocumentIterator/Next/main.go b/internal/generated/snippets/firestore/DocumentIterator/Next/main.go deleted file mode 100644 index e319198013e..00000000000 --- a/internal/generated/snippets/firestore/DocumentIterator/Next/main.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentIterator_Next] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - q := client.Collection("States"). - Where("pop", ">", 10). - OrderBy("pop", firestore.Desc) - iter := q.Documents(ctx) - defer iter.Stop() - for { - doc, err := iter.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Println(doc.Data()) - } -} - -// [END firestore_generated_firestore_DocumentIterator_Next] diff --git a/internal/generated/snippets/firestore/DocumentRef/Collection/main.go b/internal/generated/snippets/firestore/DocumentRef/Collection/main.go deleted file mode 100644 index e1d5ab90e77..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Collection/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Collection] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - mi := client.Collection("States").Doc("Michigan") - cities := mi.Collection("Cities") - - fmt.Println(cities) -} - -// [END firestore_generated_firestore_DocumentRef_Collection] diff --git a/internal/generated/snippets/firestore/DocumentRef/Create/map/main.go b/internal/generated/snippets/firestore/DocumentRef/Create/map/main.go deleted file mode 100644 index 015e10f995b..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Create/map/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Create_map] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - wr, err := client.Doc("States/Colorado").Create(ctx, map[string]interface{}{ - "capital": "Denver", - "pop": 5.5, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_DocumentRef_Create_map] diff --git a/internal/generated/snippets/firestore/DocumentRef/Create/struct/main.go b/internal/generated/snippets/firestore/DocumentRef/Create/struct/main.go deleted file mode 100644 index 8e9703806e5..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Create/struct/main.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Create_struct] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - type State struct { - Capital string `firestore:"capital"` - Population float64 `firestore:"pop"` // in millions - } - - wr, err := client.Doc("States/Colorado").Create(ctx, State{ - Capital: "Denver", - Population: 5.5, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_DocumentRef_Create_struct] diff --git a/internal/generated/snippets/firestore/DocumentRef/Delete/main.go b/internal/generated/snippets/firestore/DocumentRef/Delete/main.go deleted file mode 100644 index 276273de270..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Delete/main.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Delete] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - // Oops, Ontario is a Canadian province... - if _, err = client.Doc("States/Ontario").Delete(ctx); err != nil { - // TODO: Handle error. - } -} - -// [END firestore_generated_firestore_DocumentRef_Delete] diff --git a/internal/generated/snippets/firestore/DocumentRef/Get/main.go b/internal/generated/snippets/firestore/DocumentRef/Get/main.go deleted file mode 100644 index 713ad743434..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Get/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Get] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - docsnap, err := client.Doc("States/Ohio").Get(ctx) - if err != nil { - // TODO: Handle error. - } - _ = docsnap // TODO: Use DocumentSnapshot. -} - -// [END firestore_generated_firestore_DocumentRef_Get] diff --git a/internal/generated/snippets/firestore/DocumentRef/Set/main.go b/internal/generated/snippets/firestore/DocumentRef/Set/main.go deleted file mode 100644 index 27fd5d0e34c..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Set/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Set] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - // Overwrite the document with the given data. Any other fields currently - // in the document will be removed. - wr, err := client.Doc("States/Alabama").Set(ctx, map[string]interface{}{ - "capital": "Montgomery", - "pop": 4.9, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_DocumentRef_Set] diff --git a/internal/generated/snippets/firestore/DocumentRef/Set/merge/main.go b/internal/generated/snippets/firestore/DocumentRef/Set/merge/main.go deleted file mode 100644 index 7a5a2edc33d..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Set/merge/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Set_merge] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - // Overwrite only the fields in the map; preserve all others. - _, err = client.Doc("States/Alabama").Set(ctx, map[string]interface{}{ - "pop": 5.2, - }, firestore.MergeAll) - if err != nil { - // TODO: Handle error. - } - - type State struct { - Capital string `firestore:"capital"` - Population float64 `firestore:"pop"` // in millions - } - - // To do a merging Set with struct data, specify the exact fields to overwrite. - // MergeAll is disallowed here, because it would probably be a mistake: the "capital" - // field would be overwritten with the empty string. - _, err = client.Doc("States/Alabama").Set(ctx, State{Population: 5.2}, firestore.Merge([]string{"pop"})) - if err != nil { - // TODO: Handle error. - } -} - -// [END firestore_generated_firestore_DocumentRef_Set_merge] diff --git a/internal/generated/snippets/firestore/DocumentRef/Snapshots/main.go b/internal/generated/snippets/firestore/DocumentRef/Snapshots/main.go deleted file mode 100644 index d62727f0da0..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Snapshots/main.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Snapshots] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - iter := client.Doc("States/Idaho").Snapshots(ctx) - defer iter.Stop() - for { - docsnap, err := iter.Next() - if err != nil { - // TODO: Handle error. - } - _ = docsnap // TODO: Use DocumentSnapshot. - } -} - -// [END firestore_generated_firestore_DocumentRef_Snapshots] diff --git a/internal/generated/snippets/firestore/DocumentRef/Update/main.go b/internal/generated/snippets/firestore/DocumentRef/Update/main.go deleted file mode 100644 index c653bfd185a..00000000000 --- a/internal/generated/snippets/firestore/DocumentRef/Update/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentRef_Update] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - tenn := client.Doc("States/Tennessee") - wr, err := tenn.Update(ctx, []firestore.Update{ - {Path: "pop", Value: 6.6}, - {FieldPath: []string{".", "*", "/"}, Value: "odd"}, - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_DocumentRef_Update] diff --git a/internal/generated/snippets/firestore/DocumentSnapshot/Data/main.go b/internal/generated/snippets/firestore/DocumentSnapshot/Data/main.go deleted file mode 100644 index e5b19af221b..00000000000 --- a/internal/generated/snippets/firestore/DocumentSnapshot/Data/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentSnapshot_Data] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - docsnap, err := client.Doc("States/Ohio").Get(ctx) - if err != nil { - // TODO: Handle error. - } - ohioMap := docsnap.Data() - fmt.Println(ohioMap["capital"]) -} - -// [END firestore_generated_firestore_DocumentSnapshot_Data] diff --git a/internal/generated/snippets/firestore/DocumentSnapshot/DataAt/main.go b/internal/generated/snippets/firestore/DocumentSnapshot/DataAt/main.go deleted file mode 100644 index 8b236a5e91c..00000000000 --- a/internal/generated/snippets/firestore/DocumentSnapshot/DataAt/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentSnapshot_DataAt] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - docsnap, err := client.Doc("States/Ohio").Get(ctx) - if err != nil { - // TODO: Handle error. - } - cap, err := docsnap.DataAt("capital") - if err != nil { - // TODO: Handle error. - } - fmt.Println(cap) -} - -// [END firestore_generated_firestore_DocumentSnapshot_DataAt] diff --git a/internal/generated/snippets/firestore/DocumentSnapshot/DataAtPath/main.go b/internal/generated/snippets/firestore/DocumentSnapshot/DataAtPath/main.go deleted file mode 100644 index 0ef2d4549d1..00000000000 --- a/internal/generated/snippets/firestore/DocumentSnapshot/DataAtPath/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentSnapshot_DataAtPath] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - docsnap, err := client.Doc("States/Ohio").Get(ctx) - if err != nil { - // TODO: Handle error. - } - pop, err := docsnap.DataAtPath([]string{"capital", "population"}) - if err != nil { - // TODO: Handle error. - } - fmt.Println(pop) -} - -// [END firestore_generated_firestore_DocumentSnapshot_DataAtPath] diff --git a/internal/generated/snippets/firestore/DocumentSnapshot/DataTo/main.go b/internal/generated/snippets/firestore/DocumentSnapshot/DataTo/main.go deleted file mode 100644 index 18918889161..00000000000 --- a/internal/generated/snippets/firestore/DocumentSnapshot/DataTo/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_DocumentSnapshot_DataTo] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - docsnap, err := client.Doc("States/Ohio").Get(ctx) - if err != nil { - // TODO: Handle error. - } - - type State struct { - Capital string `firestore:"capital"` - Population float64 `firestore:"pop"` // in millions - } - - var s State - if err := docsnap.DataTo(&s); err != nil { - // TODO: Handle error. - } - fmt.Println(s) -} - -// [END firestore_generated_firestore_DocumentSnapshot_DataTo] diff --git a/internal/generated/snippets/firestore/Increment/create/main.go b/internal/generated/snippets/firestore/Increment/create/main.go deleted file mode 100644 index e2a831bff76..00000000000 --- a/internal/generated/snippets/firestore/Increment/create/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Increment_create] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - wr, err := client.Doc("States/Colorado").Create(ctx, map[string]interface{}{ - "cities": []string{"Denver", "Golden", "Boulder"}, - "pop": firestore.Increment(7), // "pop" will be set to 7. - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_Increment_create] diff --git a/internal/generated/snippets/firestore/Increment/update/main.go b/internal/generated/snippets/firestore/Increment/update/main.go deleted file mode 100644 index f59bf507806..00000000000 --- a/internal/generated/snippets/firestore/Increment/update/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Increment_update] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - co := client.Doc("States/Colorado") - wr, err := co.Update(ctx, []firestore.Update{ - {Path: "pop", Value: firestore.Increment(7)}, // "pop" will incremented by 7. - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(wr.UpdateTime) -} - -// [END firestore_generated_firestore_Increment_update] diff --git a/internal/generated/snippets/firestore/Query/Documents/main.go b/internal/generated/snippets/firestore/Query/Documents/main.go deleted file mode 100644 index 0d6369b6744..00000000000 --- a/internal/generated/snippets/firestore/Query/Documents/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Query_Documents] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - q := client.Collection("States").Select("pop"). - Where("pop", ">", 10). - OrderBy("pop", firestore.Desc). - Limit(10) - iter1 := q.Documents(ctx) - _ = iter1 // TODO: Use iter1. - - // You can call Documents directly on a CollectionRef as well. - iter2 := client.Collection("States").Documents(ctx) - _ = iter2 // TODO: Use iter2. -} - -// [END firestore_generated_firestore_Query_Documents] diff --git a/internal/generated/snippets/firestore/Query/Documents/path_methods/main.go b/internal/generated/snippets/firestore/Query/Documents/path_methods/main.go deleted file mode 100644 index d3997e0eceb..00000000000 --- a/internal/generated/snippets/firestore/Query/Documents/path_methods/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Query_Documents_path_methods] - -package main - -import ( - "context" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - q := client.Collection("Unusual").SelectPaths([]string{"*"}, []string{"[~]"}). - WherePath([]string{"/"}, ">", 10). - OrderByPath([]string{"/"}, firestore.Desc). - Limit(10) - iter1 := q.Documents(ctx) - _ = iter1 // TODO: Use iter1. - - // You can call Documents directly on a CollectionRef as well. - iter2 := client.Collection("States").Documents(ctx) - _ = iter2 // TODO: Use iter2. -} - -// [END firestore_generated_firestore_Query_Documents_path_methods] diff --git a/internal/generated/snippets/firestore/Query/Snapshots/main.go b/internal/generated/snippets/firestore/Query/Snapshots/main.go deleted file mode 100644 index 460931aa9f0..00000000000 --- a/internal/generated/snippets/firestore/Query/Snapshots/main.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_Query_Snapshots] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - q := client.Collection("States"). - Where("pop", ">", 10). - OrderBy("pop", firestore.Desc). - Limit(10) - qsnapIter := q.Snapshots(ctx) - // Listen forever for changes to the query's results. - for { - qsnap, err := qsnapIter.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - fmt.Printf("At %s there were %d results.\n", qsnap.ReadTime, qsnap.Size) - _ = qsnap.Documents // TODO: Iterate over the results if desired. - _ = qsnap.Changes // TODO: Use the list of incremental changes if desired. - } -} - -// [END firestore_generated_firestore_Query_Snapshots] diff --git a/internal/generated/snippets/firestore/WriteBatch/Commit/main.go b/internal/generated/snippets/firestore/WriteBatch/Commit/main.go deleted file mode 100644 index a1aee796582..00000000000 --- a/internal/generated/snippets/firestore/WriteBatch/Commit/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_WriteBatch_Commit] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/firestore" -) - -func main() { - ctx := context.Background() - client, err := firestore.NewClient(ctx, "project-id") - if err != nil { - // TODO: Handle error. - } - defer client.Close() - - type State struct { - Capital string `firestore:"capital"` - Population float64 `firestore:"pop"` // in millions - } - - ny := client.Doc("States/NewYork") - ca := client.Doc("States/California") - - writeResults, err := client.Batch(). - Create(ny, State{Capital: "Albany", Population: 19.8}). - Set(ca, State{Capital: "Sacramento", Population: 39.14}). - Delete(client.Doc("States/WestDakota")). - Commit(ctx) - if err != nil { - // TODO: Handle error. - } - fmt.Println(writeResults) -} - -// [END firestore_generated_firestore_WriteBatch_Commit] diff --git a/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go b/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go index adb9ee6201a..c280f4e2f31 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_BatchWrite] +// [START firestore_v1_generated_Firestore_BatchWrite_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_BatchWrite] +// [END firestore_v1_generated_Firestore_BatchWrite_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go b/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go index 0c8d06ad8e5..45d4470636f 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_BeginTransaction] +// [START firestore_v1_generated_Firestore_BeginTransaction_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_BeginTransaction] +// [END firestore_v1_generated_Firestore_BeginTransaction_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go b/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go index 68682019505..e568839696f 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_Commit] +// [START firestore_v1_generated_Firestore_Commit_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_Commit] +// [END firestore_v1_generated_Firestore_Commit_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go index cac28237ebd..f9d8d9f8a7d 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_CreateDocument] +// [START firestore_v1_generated_Firestore_CreateDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_CreateDocument] +// [END firestore_v1_generated_Firestore_CreateDocument_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go index 355d501318a..b34dd650a48 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_DeleteDocument] +// [START firestore_v1_generated_Firestore_DeleteDocument_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_DeleteDocument] +// [END firestore_v1_generated_Firestore_DeleteDocument_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go index 09843546574..745692457a2 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_GetDocument] +// [START firestore_v1_generated_Firestore_GetDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_GetDocument] +// [END firestore_v1_generated_Firestore_GetDocument_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go b/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go index 5f1624dc790..df9944d6ab3 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_ListCollectionIds] +// [START firestore_v1_generated_Firestore_ListCollectionIds_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_ListCollectionIds] +// [END firestore_v1_generated_Firestore_ListCollectionIds_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go b/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go index 3d8f7aa2e66..cfb54c69d29 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_ListDocuments] +// [START firestore_v1_generated_Firestore_ListDocuments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_ListDocuments] +// [END firestore_v1_generated_Firestore_ListDocuments_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go b/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go index 42dab61c83f..e8de12e9da0 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_Listen] +// [START firestore_v1_generated_Firestore_Listen_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_Listen] +// [END firestore_v1_generated_Firestore_Listen_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/NewClient/main.go b/internal/generated/snippets/firestore/apiv1/Client/NewClient/main.go deleted file mode 100644 index 2ac5142c10c..00000000000 --- a/internal/generated/snippets/firestore/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1_NewClient] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1" -) - -func main() { - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END firestore_generated_firestore_apiv1_NewClient] diff --git a/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go b/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go index 70366b258c1..0a43c136f5f 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_PartitionQuery] +// [START firestore_v1_generated_Firestore_PartitionQuery_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_PartitionQuery] +// [END firestore_v1_generated_Firestore_PartitionQuery_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go b/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go index 2007a3b97df..555b0831ec7 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_Rollback] +// [START firestore_v1_generated_Firestore_Rollback_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_Rollback] +// [END firestore_v1_generated_Firestore_Rollback_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go index fd20ecf6fe2..ee475ba2cb6 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_UpdateDocument] +// [START firestore_v1_generated_Firestore_UpdateDocument_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_Client_UpdateDocument] +// [END firestore_v1_generated_Firestore_UpdateDocument_sync] diff --git a/internal/generated/snippets/firestore/apiv1/Client/Write/main.go b/internal/generated/snippets/firestore/apiv1/Client/Write/main.go index 6a8f0cf495d..6309aef2c4b 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Write/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Write/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_Client_Write] +// [START firestore_v1_generated_Firestore_Write_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_Client_Write] +// [END firestore_v1_generated_Firestore_Write_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go index 75449ed18d3..6ce928e0d11 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_CreateIndex] +// [START firestore_v1_generated_FirestoreAdmin_CreateIndex_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_CreateIndex] +// [END firestore_v1_generated_FirestoreAdmin_CreateIndex_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go index 150d4304d36..5ffc5e24999 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_DeleteIndex] +// [START firestore_v1_generated_FirestoreAdmin_DeleteIndex_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_DeleteIndex] +// [END firestore_v1_generated_FirestoreAdmin_DeleteIndex_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go index 69e7f2969b2..e237725fd4b 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ExportDocuments] +// [START firestore_v1_generated_FirestoreAdmin_ExportDocuments_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ExportDocuments] +// [END firestore_v1_generated_FirestoreAdmin_ExportDocuments_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go index f366b7f3ce9..c8478cdea63 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_GetField] +// [START firestore_v1_generated_FirestoreAdmin_GetField_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_GetField] +// [END firestore_v1_generated_FirestoreAdmin_GetField_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go index 1770c8f2cbd..9f32dadbad9 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_GetIndex] +// [START firestore_v1_generated_FirestoreAdmin_GetIndex_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_GetIndex] +// [END firestore_v1_generated_FirestoreAdmin_GetIndex_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go index 5618f454775..2996b699a73 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ImportDocuments] +// [START firestore_v1_generated_FirestoreAdmin_ImportDocuments_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ImportDocuments] +// [END firestore_v1_generated_FirestoreAdmin_ImportDocuments_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go index dc54c6452d5..eb6abeb6f2a 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ListFields] +// [START firestore_v1_generated_FirestoreAdmin_ListFields_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ListFields] +// [END firestore_v1_generated_FirestoreAdmin_ListFields_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go index 2e55867d25b..bf199d231be 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ListIndexes] +// [START firestore_v1_generated_FirestoreAdmin_ListIndexes_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_ListIndexes] +// [END firestore_v1_generated_FirestoreAdmin_ListIndexes_sync] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/NewFirestoreAdminClient/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/NewFirestoreAdminClient/main.go deleted file mode 100644 index 2ddc99bd0d7..00000000000 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/NewFirestoreAdminClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1_admin_NewFirestoreAdminClient] - -package main - -import ( - "context" - - apiv1 "cloud.google.com/go/firestore/apiv1/admin" -) - -func main() { - ctx := context.Background() - c, err := apiv1.NewFirestoreAdminClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END firestore_generated_firestore_apiv1_admin_NewFirestoreAdminClient] diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go index 42e10fe997e..e3d3a126da2 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_UpdateField] +// [START firestore_v1_generated_FirestoreAdmin_UpdateField_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END firestore_generated_firestore_apiv1_admin_FirestoreAdminClient_UpdateField] +// [END firestore_v1_generated_FirestoreAdmin_UpdateField_sync] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/BeginTransaction/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/BeginTransaction/main.go deleted file mode 100644 index f84c10d3bff..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/BeginTransaction/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_BeginTransaction] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.BeginTransactionRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.BeginTransaction(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END firestore_generated_firestore_apiv1beta1_Client_BeginTransaction] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/Commit/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/Commit/main.go deleted file mode 100644 index 2baa369d8b3..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/Commit/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_Commit] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.CommitRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.Commit(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END firestore_generated_firestore_apiv1beta1_Client_Commit] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/CreateDocument/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/CreateDocument/main.go deleted file mode 100644 index 252d7d12df6..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/CreateDocument/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_CreateDocument] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.CreateDocumentRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.CreateDocument(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END firestore_generated_firestore_apiv1beta1_Client_CreateDocument] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/DeleteDocument/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/DeleteDocument/main.go deleted file mode 100644 index 046691811f0..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/DeleteDocument/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_DeleteDocument] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.DeleteDocumentRequest{ - // TODO: Fill request struct fields. - } - err = c.DeleteDocument(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_DeleteDocument] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/GetDocument/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/GetDocument/main.go deleted file mode 100644 index 3dbb2b6f00e..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/GetDocument/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_GetDocument] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.GetDocumentRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetDocument(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END firestore_generated_firestore_apiv1beta1_Client_GetDocument] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/ListCollectionIds/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/ListCollectionIds/main.go deleted file mode 100644 index 075c860b23c..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/ListCollectionIds/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_ListCollectionIds] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - "google.golang.org/api/iterator" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - // import "google.golang.org/api/iterator" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.ListCollectionIdsRequest{ - // TODO: Fill request struct fields. - } - it := c.ListCollectionIds(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_ListCollectionIds] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/ListDocuments/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/ListDocuments/main.go deleted file mode 100644 index 60489b71d0a..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/ListDocuments/main.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_ListDocuments] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - "google.golang.org/api/iterator" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - // import "google.golang.org/api/iterator" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.ListDocumentsRequest{ - // TODO: Fill request struct fields. - } - it := c.ListDocuments(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_ListDocuments] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/Listen/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/Listen/main.go deleted file mode 100644 index 37e283312f1..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/Listen/main.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_Listen] - -package main - -import ( - "context" - "io" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - stream, err := c.Listen(ctx) - if err != nil { - // TODO: Handle error. - } - go func() { - reqs := []*firestorepb.ListenRequest{ - // TODO: Create requests. - } - for _, req := range reqs { - if err := stream.Send(req); err != nil { - // TODO: Handle error. - } - } - stream.CloseSend() - }() - for { - resp, err := stream.Recv() - if err == io.EOF { - break - } - if err != nil { - // TODO: handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_Listen] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/NewClient/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/NewClient/main.go deleted file mode 100644 index 1e843aaaefc..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_NewClient] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END firestore_generated_firestore_apiv1beta1_NewClient] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/Rollback/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/Rollback/main.go deleted file mode 100644 index e529d98d051..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/Rollback/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_Rollback] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.RollbackRequest{ - // TODO: Fill request struct fields. - } - err = c.Rollback(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_Rollback] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/UpdateDocument/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/UpdateDocument/main.go deleted file mode 100644 index 3ef660a891e..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/UpdateDocument/main.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_UpdateDocument] - -package main - -import ( - "context" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &firestorepb.UpdateDocumentRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.UpdateDocument(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END firestore_generated_firestore_apiv1beta1_Client_UpdateDocument] diff --git a/internal/generated/snippets/firestore/apiv1beta1/Client/Write/main.go b/internal/generated/snippets/firestore/apiv1beta1/Client/Write/main.go deleted file mode 100644 index d5ae52912da..00000000000 --- a/internal/generated/snippets/firestore/apiv1beta1/Client/Write/main.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START firestore_generated_firestore_apiv1beta1_Client_Write] - -package main - -import ( - "context" - "io" - - firestore "cloud.google.com/go/firestore/apiv1beta1" - firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" -) - -func main() { - // import firestorepb "google.golang.org/genproto/googleapis/firestore/v1beta1" - - ctx := context.Background() - c, err := firestore.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - stream, err := c.Write(ctx) - if err != nil { - // TODO: Handle error. - } - go func() { - reqs := []*firestorepb.WriteRequest{ - // TODO: Create requests. - } - for _, req := range reqs { - if err := stream.Send(req); err != nil { - // TODO: Handle error. - } - } - stream.CloseSend() - }() - for { - resp, err := stream.Recv() - if err == io.EOF { - break - } - if err != nil { - // TODO: handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END firestore_generated_firestore_apiv1beta1_Client_Write] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go index 0e57bf51b85..214c32441ad 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_CallFunction] +// [START cloudfunctions_v1_generated_CloudFunctionsService_CallFunction_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_CallFunction] +// [END cloudfunctions_v1_generated_CloudFunctionsService_CallFunction_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go index 84805ec1a2f..a1625e728ce 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_CreateFunction] +// [START cloudfunctions_v1_generated_CloudFunctionsService_CreateFunction_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_CreateFunction] +// [END cloudfunctions_v1_generated_CloudFunctionsService_CreateFunction_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go index 84568642a67..1a267f2b64f 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_DeleteFunction] +// [START cloudfunctions_v1_generated_CloudFunctionsService_DeleteFunction_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_DeleteFunction] +// [END cloudfunctions_v1_generated_CloudFunctionsService_DeleteFunction_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go index 1f40ee1ced9..2fb7112f589 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GenerateDownloadUrl] +// [START cloudfunctions_v1_generated_CloudFunctionsService_GenerateDownloadUrl_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GenerateDownloadUrl] +// [END cloudfunctions_v1_generated_CloudFunctionsService_GenerateDownloadUrl_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go index 468c0e46b1b..883a3381295 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GenerateUploadUrl] +// [START cloudfunctions_v1_generated_CloudFunctionsService_GenerateUploadUrl_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GenerateUploadUrl] +// [END cloudfunctions_v1_generated_CloudFunctionsService_GenerateUploadUrl_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go index 1da7962cdb6..faff4407636 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GetFunction] +// [START cloudfunctions_v1_generated_CloudFunctionsService_GetFunction_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GetFunction] +// [END cloudfunctions_v1_generated_CloudFunctionsService_GetFunction_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go index 858c67bf362..33a58c111eb 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GetIamPolicy] +// [START cloudfunctions_v1_generated_CloudFunctionsService_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_GetIamPolicy] +// [END cloudfunctions_v1_generated_CloudFunctionsService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go index abe389546e9..da595d0ebdb 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_ListFunctions] +// [START cloudfunctions_v1_generated_CloudFunctionsService_ListFunctions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_ListFunctions] +// [END cloudfunctions_v1_generated_CloudFunctionsService_ListFunctions_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/NewCloudFunctionsClient/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/NewCloudFunctionsClient/main.go deleted file mode 100644 index d7afcf26953..00000000000 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/NewCloudFunctionsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudfunctions_generated_functions_apiv1_NewCloudFunctionsClient] - -package main - -import ( - "context" - - functions "cloud.google.com/go/functions/apiv1" -) - -func main() { - ctx := context.Background() - c, err := functions.NewCloudFunctionsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudfunctions_generated_functions_apiv1_NewCloudFunctionsClient] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go index 1ebbae05344..8f5b34fe584 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_SetIamPolicy] +// [START cloudfunctions_v1_generated_CloudFunctionsService_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_SetIamPolicy] +// [END cloudfunctions_v1_generated_CloudFunctionsService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go index 64cc14c9acd..804243f4cfd 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_TestIamPermissions] +// [START cloudfunctions_v1_generated_CloudFunctionsService_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_TestIamPermissions] +// [END cloudfunctions_v1_generated_CloudFunctionsService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go index dba2cf24332..4e123495175 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_UpdateFunction] +// [START cloudfunctions_v1_generated_CloudFunctionsService_UpdateFunction_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END cloudfunctions_generated_functions_apiv1_CloudFunctionsClient_UpdateFunction] +// [END cloudfunctions_v1_generated_CloudFunctionsService_UpdateFunction_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go index 5bc541aa3ff..50b1ca2fd43 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_CreateGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_CreateGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go index 08aa4f25132..0c7369c88f8 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_DeleteGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_DeleteGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go index 0a72cf4e08a..ee63d0c85ad 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_GetGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_GetGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go index e4c4731669d..e8c523735ff 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_ListGameServerClusters] +// [START gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_ListGameServerClusters] +// [END gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/NewGameServerClustersClient/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/NewGameServerClustersClient/main.go deleted file mode 100644 index ea8f1de651b..00000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/NewGameServerClustersClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1_NewGameServerClustersClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1_NewGameServerClustersClient] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go index ef1cbb3a510..5e874d91875 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewCreateGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewCreateGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go index a3238da761e..9773889bf2f 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewDeleteGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewDeleteGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go index 4a5196b49bb..e647e13cb9f 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewUpdateGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_PreviewUpdateGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go index 7bcfb41452b..f3b5510a23b 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerClustersClient_UpdateGameServerCluster] +// [START gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerClustersClient_UpdateGameServerCluster] +// [END gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go index 59217f25ab6..bebe234fd8a 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerConfigsClient_CreateGameServerConfig] +// [START gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerConfigsClient_CreateGameServerConfig] +// [END gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go index cee6395924d..c0ea13c9312 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerConfigsClient_DeleteGameServerConfig] +// [START gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerConfigsClient_DeleteGameServerConfig] +// [END gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go index c450526f16a..b0f152dc806 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerConfigsClient_GetGameServerConfig] +// [START gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerConfigsClient_GetGameServerConfig] +// [END gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go index ab0ae676442..f7deca744b9 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerConfigsClient_ListGameServerConfigs] +// [START gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerConfigsClient_ListGameServerConfigs] +// [END gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/NewGameServerConfigsClient/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/NewGameServerConfigsClient/main.go deleted file mode 100644 index 416fe897685..00000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/NewGameServerConfigsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1_NewGameServerConfigsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1_NewGameServerConfigsClient] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go index 4a2bbb444f1..1e775856e94 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_CreateGameServerDeployment] +// [START gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_CreateGameServerDeployment] +// [END gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go index 45eb5c9bc40..edac09c4f20 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_DeleteGameServerDeployment] +// [START gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_DeleteGameServerDeployment] +// [END gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go index bc6e678ae33..c4be70111b4 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_FetchDeploymentState] +// [START gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_FetchDeploymentState] +// [END gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go index 7a61b4d370c..445a9545185 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_GetGameServerDeployment] +// [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_GetGameServerDeployment] +// [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go index d403e718a87..9817efdfef0 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_GetGameServerDeploymentRollout] +// [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_GetGameServerDeploymentRollout] +// [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go index f734d769b2b..466b6c1bb67 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_ListGameServerDeployments] +// [START gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_ListGameServerDeployments] +// [END gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go deleted file mode 100644 index 027b2bfa35f..00000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1_NewGameServerDeploymentsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1_NewGameServerDeploymentsClient] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go index a008a2d629a..6d1d400516b 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_PreviewGameServerDeploymentRollout] +// [START gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_PreviewGameServerDeploymentRollout] +// [END gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go index 7038cd12a65..6926003720f 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_UpdateGameServerDeployment] +// [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_UpdateGameServerDeployment] +// [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go index 57345670aa8..38241865f02 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_UpdateGameServerDeploymentRollout] +// [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_GameServerDeploymentsClient_UpdateGameServerDeploymentRollout] +// [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go index 7566ed0477f..529a35e7540 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_CreateRealm] +// [START gameservices_v1_generated_RealmsService_CreateRealm_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_RealmsClient_CreateRealm] +// [END gameservices_v1_generated_RealmsService_CreateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go index 1f62c6929bb..712f8668fd7 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_DeleteRealm] +// [START gameservices_v1_generated_RealmsService_DeleteRealm_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_RealmsClient_DeleteRealm] +// [END gameservices_v1_generated_RealmsService_DeleteRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go index df496746a1f..11e1793209a 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_GetRealm] +// [START gameservices_v1_generated_RealmsService_GetRealm_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_RealmsClient_GetRealm] +// [END gameservices_v1_generated_RealmsService_GetRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go index 2d3a4a479d2..5a4e46d8064 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_ListRealms] +// [START gameservices_v1_generated_RealmsService_ListRealms_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1_RealmsClient_ListRealms] +// [END gameservices_v1_generated_RealmsService_ListRealms_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/NewRealmsClient/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/NewRealmsClient/main.go deleted file mode 100644 index ebe32cceeff..00000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/NewRealmsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1_NewRealmsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1_NewRealmsClient] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go index 7818771de41..b9a504f81bf 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_PreviewRealmUpdate] +// [START gameservices_v1_generated_RealmsService_PreviewRealmUpdate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_RealmsClient_PreviewRealmUpdate] +// [END gameservices_v1_generated_RealmsService_PreviewRealmUpdate_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go index ffd52b901dc..d20fa985ead 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1_RealmsClient_UpdateRealm] +// [START gameservices_v1_generated_RealmsService_UpdateRealm_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1_RealmsClient_UpdateRealm] +// [END gameservices_v1_generated_RealmsService_UpdateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go index 6919f019b44..933f38b59b6 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_CreateGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_CreateGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go index 495b5f98cda..1ca71d53b76 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_DeleteGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_DeleteGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go index 2eab88c1544..5dfd95450c2 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_GetGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_GetGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go index ac6754221a7..eb0b621684b 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_ListGameServerClusters] +// [START gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_ListGameServerClusters] +// [END gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/NewGameServerClustersClient/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/NewGameServerClustersClient/main.go deleted file mode 100644 index ef16985c7bb..00000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/NewGameServerClustersClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1beta_NewGameServerClustersClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1beta_NewGameServerClustersClient] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go index e39e457ebc4..5fdb469087c 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewCreateGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewCreateGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go index a81cbd4c33c..7066716cfa8 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewDeleteGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewDeleteGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go index eeac96791fa..23d32b0d2ce 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewUpdateGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_PreviewUpdateGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go index 824b38daf5e..08bfce06cd4 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerClustersClient_UpdateGameServerCluster] +// [START gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerClustersClient_UpdateGameServerCluster] +// [END gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go index 0f15a2f5cfd..5dcf5b1dd59 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_CreateGameServerConfig] +// [START gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_CreateGameServerConfig] +// [END gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go index 3b36be38561..cf8890825a5 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_DeleteGameServerConfig] +// [START gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_DeleteGameServerConfig] +// [END gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go index 4ea6198e511..117fa790ab9 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_GetGameServerConfig] +// [START gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_GetGameServerConfig] +// [END gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go index 37349946305..bb035d872e4 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_ListGameServerConfigs] +// [START gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerConfigsClient_ListGameServerConfigs] +// [END gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/NewGameServerConfigsClient/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/NewGameServerConfigsClient/main.go deleted file mode 100644 index d1408adde83..00000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/NewGameServerConfigsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1beta_NewGameServerConfigsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1beta_NewGameServerConfigsClient] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go index 48d21f388ae..527d5deb421 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_CreateGameServerDeployment] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_CreateGameServerDeployment] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go index febfa206104..6caf9bbbc0a 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_DeleteGameServerDeployment] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_DeleteGameServerDeployment] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go index 4623eb0db19..98c88150507 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_FetchDeploymentState] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_FetchDeploymentState] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go index 18a46e4737e..6480af68ba9 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_GetGameServerDeployment] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_GetGameServerDeployment] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go index 078a43ebd23..3d9401f4360 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_GetGameServerDeploymentRollout] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_GetGameServerDeploymentRollout] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go index 20e73ba1386..3ddbcc51c1a 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_ListGameServerDeployments] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_ListGameServerDeployments] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go deleted file mode 100644 index d79ff0d77b3..00000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/NewGameServerDeploymentsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1beta_NewGameServerDeploymentsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1beta_NewGameServerDeploymentsClient] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go index a8a04d960a7..ea91b9108aa 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_PreviewGameServerDeploymentRollout] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_PreviewGameServerDeploymentRollout] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go index 7f2a3d8af11..3c4fc40e6b8 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_UpdateGameServerDeployment] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_UpdateGameServerDeployment] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go index dbd31778cc1..2d7c99238f6 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_UpdateGameServerDeploymentRollout] +// [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_GameServerDeploymentsClient_UpdateGameServerDeploymentRollout] +// [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go index 4c5bb0a75b8..984e23fd855 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_CreateRealm] +// [START gameservices_v1beta_generated_RealmsService_CreateRealm_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_CreateRealm] +// [END gameservices_v1beta_generated_RealmsService_CreateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go index eba6fddeadc..769d3626099 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_DeleteRealm] +// [START gameservices_v1beta_generated_RealmsService_DeleteRealm_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_DeleteRealm] +// [END gameservices_v1beta_generated_RealmsService_DeleteRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go index 6ff794f4c5d..117e6ad1911 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_GetRealm] +// [START gameservices_v1beta_generated_RealmsService_GetRealm_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_GetRealm] +// [END gameservices_v1beta_generated_RealmsService_GetRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go index 102f08b3ebc..947b1bdd96a 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_ListRealms] +// [START gameservices_v1beta_generated_RealmsService_ListRealms_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_ListRealms] +// [END gameservices_v1beta_generated_RealmsService_ListRealms_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/NewRealmsClient/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/NewRealmsClient/main.go deleted file mode 100644 index c0c9f30640d..00000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/NewRealmsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gameservices_generated_gaming_apiv1beta_NewRealmsClient] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" -) - -func main() { - ctx := context.Background() - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gameservices_generated_gaming_apiv1beta_NewRealmsClient] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go index 429a5129898..582a31b5934 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_PreviewRealmUpdate] +// [START gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_PreviewRealmUpdate] +// [END gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go index cdcc66f97e2..1ae7eba4868 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gameservices_generated_gaming_apiv1beta_RealmsClient_UpdateRealm] +// [START gameservices_v1beta_generated_RealmsService_UpdateRealm_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gameservices_generated_gaming_apiv1beta_RealmsClient_UpdateRealm] +// [END gameservices_v1beta_generated_RealmsService_UpdateRealm_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go index 1caf5b66e4e..c4a1c37aaf8 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_CreateMembership] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_CreateMembership_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_CreateMembership] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_CreateMembership_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go index c01d9584426..3ab1c9713e4 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_DeleteMembership] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_DeleteMembership_sync] package main @@ -46,4 +46,4 @@ func main() { } } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_DeleteMembership] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_DeleteMembership_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go index b584a3051a8..1fcf2d7f2a2 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GenerateConnectManifest] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_GenerateConnectManifest_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GenerateConnectManifest] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_GenerateConnectManifest_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go index 88f57e41b79..9d38ac263f0 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GenerateExclusivityManifest] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_GenerateExclusivityManifest_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GenerateExclusivityManifest] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_GenerateExclusivityManifest_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go index 9a7f06e5669..b2fc357ebdb 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GetMembership] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_GetMembership_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_GetMembership] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_GetMembership_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go index 027e7653681..79bbf3bcd12 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_ListMemberships] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_ListMemberships_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_ListMemberships] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_ListMemberships_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/NewGkeHubMembershipClient/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/NewGkeHubMembershipClient/main.go deleted file mode 100644 index 2db374fe531..00000000000 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/NewGkeHubMembershipClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START gkehub_generated_gkehub_apiv1beta1_NewGkeHubMembershipClient] - -package main - -import ( - "context" - - gkehub "cloud.google.com/go/gkehub/apiv1beta1" -) - -func main() { - ctx := context.Background() - c, err := gkehub.NewGkeHubMembershipClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END gkehub_generated_gkehub_apiv1beta1_NewGkeHubMembershipClient] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go index 1fa6243e4c2..50615aa8129 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_UpdateMembership] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_UpdateMembership_sync] package main @@ -48,4 +48,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_UpdateMembership] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_UpdateMembership_sync] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go index fbebcdfe1ea..ca6adea3687 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_ValidateExclusivity] +// [START gkehub_v1beta1_generated_GkeHubMembershipService_ValidateExclusivity_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END gkehub_generated_gkehub_apiv1beta1_GkeHubMembershipClient_ValidateExclusivity] +// [END gkehub_v1beta1_generated_GkeHubMembershipService_ValidateExclusivity_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 47bad9b45a5..6a8fd2326f2 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -25,18 +25,12 @@ replace cloud.google.com/go/storage => ../../../storage require ( cloud.google.com/go v0.81.0 cloud.google.com/go/bigquery v0.0.0-00010101000000-000000000000 - cloud.google.com/go/bigtable v0.0.0-00010101000000-000000000000 cloud.google.com/go/datastore v0.0.0-00010101000000-000000000000 cloud.google.com/go/firestore v0.0.0-00010101000000-000000000000 cloud.google.com/go/logging v0.0.0-00010101000000-000000000000 cloud.google.com/go/pubsub v1.9.1 cloud.google.com/go/pubsublite v0.0.0-00010101000000-000000000000 cloud.google.com/go/spanner v0.0.0-00010101000000-000000000000 - cloud.google.com/go/storage v1.10.0 - go.opencensus.io v0.23.0 - golang.org/x/sync v0.0.0-20210220032951-036812b2e83c - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.45.0 google.golang.org/genproto v0.0.0-20210423144448-3a41ef94ed2b - google.golang.org/grpc v1.37.0 ) diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 8e9f1f08039..d39951f73e6 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -17,7 +17,6 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -33,8 +32,6 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -43,17 +40,13 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/martian/v3 v3.1.0 h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20210413054141-7c2eacd09c8d h1:X4vWSRcXmxBANxWPGUsfWv291lZUjENBew0l1R/RVRk= github.com/google/pprof v0.0.0-20210413054141-7c2eacd09c8d/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -70,10 +63,8 @@ golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -96,7 +87,6 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -126,7 +116,6 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -144,7 +133,6 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20210413151531-c14fb6ef47c3/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210422153429-2279cbceda62/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210423144448-3a41ef94ed2b h1:Rt15zyw7G2yfLqmsjEa1xICjWEw+topkn7vEAR6bVPk= google.golang.org/genproto v0.0.0-20210423144448-3a41ef94ed2b/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -172,5 +160,3 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateRole/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateRole/main.go deleted file mode 100644 index 60110f80d1e..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateRole/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_CreateRole] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.CreateRoleRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.CreateRole(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_CreateRole] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccount/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccount/main.go deleted file mode 100644 index 7f579c247fa..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccount/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_CreateServiceAccount] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.CreateServiceAccountRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.CreateServiceAccount(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_CreateServiceAccount] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccountKey/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccountKey/main.go deleted file mode 100644 index b21c6b4fb0b..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/CreateServiceAccountKey/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_CreateServiceAccountKey] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.CreateServiceAccountKeyRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.CreateServiceAccountKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_CreateServiceAccountKey] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteRole/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteRole/main.go deleted file mode 100644 index 45549fc8ef4..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteRole/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_DeleteRole] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.DeleteRoleRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.DeleteRole(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_DeleteRole] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccount/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccount/main.go deleted file mode 100644 index 52a12e4b3ff..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccount/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_DeleteServiceAccount] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.DeleteServiceAccountRequest{ - // TODO: Fill request struct fields. - } - err = c.DeleteServiceAccount(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END iam_generated_iam_admin_apiv1_IamClient_DeleteServiceAccount] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccountKey/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccountKey/main.go deleted file mode 100644 index 4dd4d0a3037..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/DeleteServiceAccountKey/main.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_DeleteServiceAccountKey] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.DeleteServiceAccountKeyRequest{ - // TODO: Fill request struct fields. - } - err = c.DeleteServiceAccountKey(ctx, req) - if err != nil { - // TODO: Handle error. - } -} - -// [END iam_generated_iam_admin_apiv1_IamClient_DeleteServiceAccountKey] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetRole/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/GetRole/main.go deleted file mode 100644 index f5ad8ff519e..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetRole/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_GetRole] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.GetRoleRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetRole(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_GetRole] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccount/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccount/main.go deleted file mode 100644 index 7e8db1bc4d8..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccount/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_GetServiceAccount] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.GetServiceAccountRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetServiceAccount(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_GetServiceAccount] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccountKey/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccountKey/main.go deleted file mode 100644 index 290a4489b96..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/GetServiceAccountKey/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_GetServiceAccountKey] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.GetServiceAccountKeyRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.GetServiceAccountKey(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_GetServiceAccountKey] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListRoles/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/ListRoles/main.go deleted file mode 100644 index ca7746e7fbf..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListRoles/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_ListRoles] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.ListRolesRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.ListRoles(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_ListRoles] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccountKeys/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccountKeys/main.go deleted file mode 100644 index 397421c3a2a..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccountKeys/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_ListServiceAccountKeys] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.ListServiceAccountKeysRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.ListServiceAccountKeys(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_ListServiceAccountKeys] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccounts/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccounts/main.go deleted file mode 100644 index 2571fa82ede..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/ListServiceAccounts/main.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_ListServiceAccounts] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - "google.golang.org/api/iterator" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.ListServiceAccountsRequest{ - // TODO: Fill request struct fields. - } - it := c.ListServiceAccounts(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END iam_generated_iam_admin_apiv1_IamClient_ListServiceAccounts] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/NewIamClient/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/NewIamClient/main.go deleted file mode 100644 index b751b4d24e6..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/NewIamClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_NewIamClient] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END iam_generated_iam_admin_apiv1_NewIamClient] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryGrantableRoles/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryGrantableRoles/main.go deleted file mode 100644 index 6246a7d3f17..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryGrantableRoles/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_QueryGrantableRoles] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.QueryGrantableRolesRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.QueryGrantableRoles(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_QueryGrantableRoles] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryTestablePermissions/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryTestablePermissions/main.go deleted file mode 100644 index 052733fcb5f..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/QueryTestablePermissions/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_QueryTestablePermissions] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.QueryTestablePermissionsRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.QueryTestablePermissions(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_QueryTestablePermissions] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/SignBlob/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/SignBlob/main.go deleted file mode 100644 index 2d7fd08c614..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/SignBlob/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_SignBlob] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.SignBlobRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.SignBlob(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_SignBlob] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/SignJwt/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/SignJwt/main.go deleted file mode 100644 index c81cc5cefb1..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/SignJwt/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_SignJwt] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.SignJwtRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.SignJwt(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_SignJwt] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/TestIamPermissions/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/TestIamPermissions/main.go deleted file mode 100644 index ba1fce415e9..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/TestIamPermissions/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_TestIamPermissions] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - iampb "google.golang.org/genproto/googleapis/iam/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &iampb.TestIamPermissionsRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.TestIamPermissions(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_TestIamPermissions] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/UndeleteRole/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/UndeleteRole/main.go deleted file mode 100644 index 451ae55506e..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/UndeleteRole/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_UndeleteRole] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.UndeleteRoleRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.UndeleteRole(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_UndeleteRole] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateRole/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateRole/main.go deleted file mode 100644 index b483de3ee6c..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateRole/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_UpdateRole] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.UpdateRoleRequest{ - // TODO: Fill request struct fields. - } - resp, err := c.UpdateRole(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_UpdateRole] diff --git a/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateServiceAccount/main.go b/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateServiceAccount/main.go deleted file mode 100644 index 7816294ddad..00000000000 --- a/internal/generated/snippets/iam/admin/apiv1/IamClient/UpdateServiceAccount/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iam_generated_iam_admin_apiv1_IamClient_UpdateServiceAccount] - -package main - -import ( - "context" - - admin "cloud.google.com/go/iam/admin/apiv1" - adminpb "google.golang.org/genproto/googleapis/iam/admin/v1" -) - -func main() { - ctx := context.Background() - c, err := admin.NewIamClient(ctx) - if err != nil { - // TODO: Handle error. - } - - req := &adminpb.ServiceAccount{ - // TODO: Fill request struct fields. - } - resp, err := c.UpdateServiceAccount(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END iam_generated_iam_admin_apiv1_IamClient_UpdateServiceAccount] diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go index 40651a534d8..9e4887e1cd9 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_GenerateAccessToken] +// [START iamcredentials_v1_generated_IAMCredentials_GenerateAccessToken_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_GenerateAccessToken] +// [END iamcredentials_v1_generated_IAMCredentials_GenerateAccessToken_sync] diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go index aacc11b778b..baeea5191ed 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_GenerateIdToken] +// [START iamcredentials_v1_generated_IAMCredentials_GenerateIdToken_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_GenerateIdToken] +// [END iamcredentials_v1_generated_IAMCredentials_GenerateIdToken_sync] diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/NewIamCredentialsClient/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/NewIamCredentialsClient/main.go deleted file mode 100644 index 4aefa4be6af..00000000000 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/NewIamCredentialsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START iamcredentials_generated_iam_credentials_apiv1_NewIamCredentialsClient] - -package main - -import ( - "context" - - credentials "cloud.google.com/go/iam/credentials/apiv1" -) - -func main() { - ctx := context.Background() - c, err := credentials.NewIamCredentialsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END iamcredentials_generated_iam_credentials_apiv1_NewIamCredentialsClient] diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go index 4118ab28173..600c9e824d1 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_SignBlob] +// [START iamcredentials_v1_generated_IAMCredentials_SignBlob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_SignBlob] +// [END iamcredentials_v1_generated_IAMCredentials_SignBlob_sync] diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go index 1ad018c5339..ff5cd518692 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_SignJwt] +// [START iamcredentials_v1_generated_IAMCredentials_SignJwt_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END iamcredentials_generated_iam_credentials_apiv1_IamCredentialsClient_SignJwt] +// [END iamcredentials_v1_generated_IAMCredentials_SignJwt_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go index 525830aa91e..3e8549221a6 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_BindDeviceToGateway] +// [START cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_BindDeviceToGateway] +// [END cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go index c46ba0be8c3..d909e28abda 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_CreateDevice] +// [START cloudiot_v1_generated_DeviceManager_CreateDevice_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_CreateDevice] +// [END cloudiot_v1_generated_DeviceManager_CreateDevice_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go index 351d2632d27..05b0f9aa0e6 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_CreateDeviceRegistry] +// [START cloudiot_v1_generated_DeviceManager_CreateDeviceRegistry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_CreateDeviceRegistry] +// [END cloudiot_v1_generated_DeviceManager_CreateDeviceRegistry_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go index 987ed01b1dd..afcf65eda0f 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_DeleteDevice] +// [START cloudiot_v1_generated_DeviceManager_DeleteDevice_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_DeleteDevice] +// [END cloudiot_v1_generated_DeviceManager_DeleteDevice_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go index 65c38dd5998..6f0ec767426 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_DeleteDeviceRegistry] +// [START cloudiot_v1_generated_DeviceManager_DeleteDeviceRegistry_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_DeleteDeviceRegistry] +// [END cloudiot_v1_generated_DeviceManager_DeleteDeviceRegistry_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go index ff04f4b13ca..884e7fb174c 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_GetDevice] +// [START cloudiot_v1_generated_DeviceManager_GetDevice_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_GetDevice] +// [END cloudiot_v1_generated_DeviceManager_GetDevice_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go index f7a1931f9ac..d740e29b699 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_GetDeviceRegistry] +// [START cloudiot_v1_generated_DeviceManager_GetDeviceRegistry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_GetDeviceRegistry] +// [END cloudiot_v1_generated_DeviceManager_GetDeviceRegistry_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go index 2d43c3788f3..94c011bbbd5 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_GetIamPolicy] +// [START cloudiot_v1_generated_DeviceManager_GetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_GetIamPolicy] +// [END cloudiot_v1_generated_DeviceManager_GetIamPolicy_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go index ebc93ff5dee..29ba0f7fe29 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceConfigVersions] +// [START cloudiot_v1_generated_DeviceManager_ListDeviceConfigVersions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceConfigVersions] +// [END cloudiot_v1_generated_DeviceManager_ListDeviceConfigVersions_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go index 35d2b962f56..b5e85817c0d 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceRegistries] +// [START cloudiot_v1_generated_DeviceManager_ListDeviceRegistries_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceRegistries] +// [END cloudiot_v1_generated_DeviceManager_ListDeviceRegistries_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go index 4357d613655..02dc29781e8 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceStates] +// [START cloudiot_v1_generated_DeviceManager_ListDeviceStates_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDeviceStates] +// [END cloudiot_v1_generated_DeviceManager_ListDeviceStates_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go index 73679c43a3a..1fd349760af 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDevices] +// [START cloudiot_v1_generated_DeviceManager_ListDevices_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_ListDevices] +// [END cloudiot_v1_generated_DeviceManager_ListDevices_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go index 5039ae59483..2f11f99004d 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_ModifyCloudToDeviceConfig] +// [START cloudiot_v1_generated_DeviceManager_ModifyCloudToDeviceConfig_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_ModifyCloudToDeviceConfig] +// [END cloudiot_v1_generated_DeviceManager_ModifyCloudToDeviceConfig_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/NewDeviceManagerClient/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/NewDeviceManagerClient/main.go deleted file mode 100644 index 703c9ceaf3f..00000000000 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/NewDeviceManagerClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudiot_generated_iot_apiv1_NewDeviceManagerClient] - -package main - -import ( - "context" - - iot "cloud.google.com/go/iot/apiv1" -) - -func main() { - ctx := context.Background() - c, err := iot.NewDeviceManagerClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudiot_generated_iot_apiv1_NewDeviceManagerClient] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go index 515f400a683..3d49a174ce6 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_SendCommandToDevice] +// [START cloudiot_v1_generated_DeviceManager_SendCommandToDevice_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_SendCommandToDevice] +// [END cloudiot_v1_generated_DeviceManager_SendCommandToDevice_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go index 111f52e1e59..ffef68cdcb3 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_SetIamPolicy] +// [START cloudiot_v1_generated_DeviceManager_SetIamPolicy_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_SetIamPolicy] +// [END cloudiot_v1_generated_DeviceManager_SetIamPolicy_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go index 7a4e574ecb7..d24b2995bdf 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_TestIamPermissions] +// [START cloudiot_v1_generated_DeviceManager_TestIamPermissions_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_TestIamPermissions] +// [END cloudiot_v1_generated_DeviceManager_TestIamPermissions_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go index 5a51e4e3115..53648e64210 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_UnbindDeviceFromGateway] +// [START cloudiot_v1_generated_DeviceManager_UnbindDeviceFromGateway_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_UnbindDeviceFromGateway] +// [END cloudiot_v1_generated_DeviceManager_UnbindDeviceFromGateway_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go index 4b0d5950a05..4fcdb0c5363 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_UpdateDevice] +// [START cloudiot_v1_generated_DeviceManager_UpdateDevice_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_UpdateDevice] +// [END cloudiot_v1_generated_DeviceManager_UpdateDevice_sync] diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go index 63236c3d1b0..01ef6e621cb 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudiot_generated_iot_apiv1_DeviceManagerClient_UpdateDeviceRegistry] +// [START cloudiot_v1_generated_DeviceManager_UpdateDeviceRegistry_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudiot_generated_iot_apiv1_DeviceManagerClient_UpdateDeviceRegistry] +// [END cloudiot_v1_generated_DeviceManager_UpdateDeviceRegistry_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go index f975b1406c7..14768d2a6c0 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_AsymmetricDecrypt] +// [START cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_AsymmetricDecrypt] +// [END cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go index a16b1edf1e7..252ca7ab3f8 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_AsymmetricSign] +// [START cloudkms_v1_generated_KeyManagementService_AsymmetricSign_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_AsymmetricSign] +// [END cloudkms_v1_generated_KeyManagementService_AsymmetricSign_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go index 20f61e1f803..a42e42c0813 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_CreateCryptoKey] +// [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_CreateCryptoKey] +// [END cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go index 7129199329a..2b4faf5752b 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_CreateCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_CreateCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go index e932d664aaa..8f3484dacd1 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_CreateImportJob] +// [START cloudkms_v1_generated_KeyManagementService_CreateImportJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_CreateImportJob] +// [END cloudkms_v1_generated_KeyManagementService_CreateImportJob_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go index 81ae291e230..1430d317210 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_CreateKeyRing] +// [START cloudkms_v1_generated_KeyManagementService_CreateKeyRing_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_CreateKeyRing] +// [END cloudkms_v1_generated_KeyManagementService_CreateKeyRing_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go index 874af50dc4e..a80a7702a50 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_Decrypt] +// [START cloudkms_v1_generated_KeyManagementService_Decrypt_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_Decrypt] +// [END cloudkms_v1_generated_KeyManagementService_Decrypt_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go index 581cf76506d..9ace7d1f798 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_DestroyCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_DestroyCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go index e1b225130ce..643110a539f 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_Encrypt] +// [START cloudkms_v1_generated_KeyManagementService_Encrypt_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_Encrypt] +// [END cloudkms_v1_generated_KeyManagementService_Encrypt_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go index d660e4dde3c..df98e30054d 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_GetCryptoKey] +// [START cloudkms_v1_generated_KeyManagementService_GetCryptoKey_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_GetCryptoKey] +// [END cloudkms_v1_generated_KeyManagementService_GetCryptoKey_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go index a561b10a4b1..293dd8834f6 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_GetCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_GetCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go index 87757e85201..457e8d946f2 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_GetImportJob] +// [START cloudkms_v1_generated_KeyManagementService_GetImportJob_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_GetImportJob] +// [END cloudkms_v1_generated_KeyManagementService_GetImportJob_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go index de55770d88f..40d8e147ac7 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_GetKeyRing] +// [START cloudkms_v1_generated_KeyManagementService_GetKeyRing_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_GetKeyRing] +// [END cloudkms_v1_generated_KeyManagementService_GetKeyRing_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go index d74f87e2005..a5bae62e5a8 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_GetPublicKey] +// [START cloudkms_v1_generated_KeyManagementService_GetPublicKey_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_GetPublicKey] +// [END cloudkms_v1_generated_KeyManagementService_GetPublicKey_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go index 504ce937db6..e393f93a3c3 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ImportCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ImportCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go index dc513cf0669..cfe548af862 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ListCryptoKeyVersions] +// [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ListCryptoKeyVersions] +// [END cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go index 8dc4fcb21d2..e734bbee1f5 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ListCryptoKeys] +// [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ListCryptoKeys] +// [END cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go index 42ecb424aff..c4ccb52e173 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ListImportJobs] +// [START cloudkms_v1_generated_KeyManagementService_ListImportJobs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ListImportJobs] +// [END cloudkms_v1_generated_KeyManagementService_ListImportJobs_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go index 387455a12f7..904b1f0a10f 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ListKeyRings] +// [START cloudkms_v1_generated_KeyManagementService_ListKeyRings_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ListKeyRings] +// [END cloudkms_v1_generated_KeyManagementService_ListKeyRings_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/NewKeyManagementClient/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/NewKeyManagementClient/main.go deleted file mode 100644 index 619aaaa49b5..00000000000 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/NewKeyManagementClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudkms_generated_kms_apiv1_NewKeyManagementClient] - -package main - -import ( - "context" - - kms "cloud.google.com/go/kms/apiv1" -) - -func main() { - ctx := context.Background() - c, err := kms.NewKeyManagementClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END cloudkms_generated_kms_apiv1_NewKeyManagementClient] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ResourceIAM/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ResourceIAM/main.go deleted file mode 100644 index 28ab66d2314..00000000000 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ResourceIAM/main.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_ResourceIAM] - -package main - -import ( - "context" - - kms "cloud.google.com/go/kms/apiv1" -) - -func main() { - ctx := context.Background() - c, err := kms.NewKeyManagementClient(ctx) - if err != nil { - // TODO: Handle error. - } - - // TODO: fill in key ring resource path - keyRing := "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEY_RING]" - handle := c.ResourceIAM(keyRing) - - policy, err := handle.Policy(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use policy. - _ = policy -} - -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_ResourceIAM] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go index 5f879f57f79..0b67adef365 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_RestoreCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_RestoreCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_RestoreCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_RestoreCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go index 645192a830c..8996d6b2b24 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKey] +// [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKey_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKey] +// [END cloudkms_v1_generated_KeyManagementService_UpdateCryptoKey_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go index e0b9f04368c..212ae73e768 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKeyPrimaryVersion] +// [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyPrimaryVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKeyPrimaryVersion] +// [END cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyPrimaryVersion_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go index fc514ab16c7..222bdbf3d96 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKeyVersion] +// [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyVersion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END cloudkms_generated_kms_apiv1_KeyManagementClient_UpdateCryptoKeyVersion] +// [END cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyVersion_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go index 961028ffd0c..bdc40a743af 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_AnalyzeEntities] +// [START language_v1_generated_LanguageService_AnalyzeEntities_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_AnalyzeEntities] +// [END language_v1_generated_LanguageService_AnalyzeEntities_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go index 0d101418632..0313f94576d 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_AnalyzeEntitySentiment] +// [START language_v1_generated_LanguageService_AnalyzeEntitySentiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_AnalyzeEntitySentiment] +// [END language_v1_generated_LanguageService_AnalyzeEntitySentiment_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go index 9e6c61bb736..17b44126e8f 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_AnalyzeSentiment] +// [START language_v1_generated_LanguageService_AnalyzeSentiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_AnalyzeSentiment] +// [END language_v1_generated_LanguageService_AnalyzeSentiment_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go index 952e1d039d7..cef87d6fad5 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_AnalyzeSyntax] +// [START language_v1_generated_LanguageService_AnalyzeSyntax_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_AnalyzeSyntax] +// [END language_v1_generated_LanguageService_AnalyzeSyntax_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go b/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go index aef8a45977f..3f05b2bc2ea 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_AnnotateText] +// [START language_v1_generated_LanguageService_AnnotateText_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_AnnotateText] +// [END language_v1_generated_LanguageService_AnnotateText_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go b/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go index 146c50d5fe3..34f4f267c8b 100644 --- a/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go +++ b/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1_Client_ClassifyText] +// [START language_v1_generated_LanguageService_ClassifyText_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1_Client_ClassifyText] +// [END language_v1_generated_LanguageService_ClassifyText_sync] diff --git a/internal/generated/snippets/language/apiv1/Client/NewClient/main.go b/internal/generated/snippets/language/apiv1/Client/NewClient/main.go deleted file mode 100644 index 31e29b0e773..00000000000 --- a/internal/generated/snippets/language/apiv1/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START language_generated_language_apiv1_NewClient] - -package main - -import ( - "context" - - language "cloud.google.com/go/language/apiv1" -) - -func main() { - ctx := context.Background() - c, err := language.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END language_generated_language_apiv1_NewClient] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go index 08101a702b8..e1cf5741ca9 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_AnalyzeEntities] +// [START language_v1beta2_generated_LanguageService_AnalyzeEntities_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_AnalyzeEntities] +// [END language_v1beta2_generated_LanguageService_AnalyzeEntities_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go index 6542382b453..0477343cbc4 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_AnalyzeEntitySentiment] +// [START language_v1beta2_generated_LanguageService_AnalyzeEntitySentiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_AnalyzeEntitySentiment] +// [END language_v1beta2_generated_LanguageService_AnalyzeEntitySentiment_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go index bf791eae022..69538157438 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_AnalyzeSentiment] +// [START language_v1beta2_generated_LanguageService_AnalyzeSentiment_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_AnalyzeSentiment] +// [END language_v1beta2_generated_LanguageService_AnalyzeSentiment_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go index 21fd3d2e847..1d5c77b6aa6 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_AnalyzeSyntax] +// [START language_v1beta2_generated_LanguageService_AnalyzeSyntax_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_AnalyzeSyntax] +// [END language_v1beta2_generated_LanguageService_AnalyzeSyntax_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go index 9c54a11cb65..a695cc42ea5 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_AnnotateText] +// [START language_v1beta2_generated_LanguageService_AnnotateText_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_AnnotateText] +// [END language_v1beta2_generated_LanguageService_AnnotateText_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go b/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go index 081dac9fcc3..dc65e4ce44c 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START language_generated_language_apiv1beta2_Client_ClassifyText] +// [START language_v1beta2_generated_LanguageService_ClassifyText_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END language_generated_language_apiv1beta2_Client_ClassifyText] +// [END language_v1beta2_generated_LanguageService_ClassifyText_sync] diff --git a/internal/generated/snippets/language/apiv1beta2/Client/NewClient/main.go b/internal/generated/snippets/language/apiv1beta2/Client/NewClient/main.go deleted file mode 100644 index ebbabf8fed1..00000000000 --- a/internal/generated/snippets/language/apiv1beta2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START language_generated_language_apiv1beta2_NewClient] - -package main - -import ( - "context" - - language "cloud.google.com/go/language/apiv1beta2" -) - -func main() { - ctx := context.Background() - c, err := language.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END language_generated_language_apiv1beta2_NewClient] diff --git a/internal/generated/snippets/logging/Client/Logger/main.go b/internal/generated/snippets/logging/Client/Logger/main.go deleted file mode 100644 index 4caaa3e8334..00000000000 --- a/internal/generated/snippets/logging/Client/Logger/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Client_Logger] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - _ = lg // TODO: use the Logger. -} - -// [END logging_generated_logging_Client_Logger] diff --git a/internal/generated/snippets/logging/Client/NewClient/errorFunc/main.go b/internal/generated/snippets/logging/Client/NewClient/errorFunc/main.go deleted file mode 100644 index f24609ce59c..00000000000 --- a/internal/generated/snippets/logging/Client/NewClient/errorFunc/main.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_NewClient_errorFunc] - -package main - -import ( - "context" - "fmt" - "os" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - // Print all errors to stdout, and count them. Multiple calls to the OnError - // function never happen concurrently, so there is no need for locking nErrs, - // provided you don't read it until after the logging client is closed. - var nErrs int - client.OnError = func(e error) { - fmt.Fprintf(os.Stdout, "logging: %v", e) - nErrs++ - } - // Use client to manage logs, metrics and sinks. - // Close the client when finished. - if err := client.Close(); err != nil { - // TODO: Handle error. - } - fmt.Printf("saw %d errors\n", nErrs) -} - -// [END logging_generated_logging_NewClient_errorFunc] diff --git a/internal/generated/snippets/logging/Client/NewClient/main.go b/internal/generated/snippets/logging/Client/NewClient/main.go deleted file mode 100644 index 3a558b7a749..00000000000 --- a/internal/generated/snippets/logging/Client/NewClient/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_NewClient] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - // Use client to manage logs, metrics and sinks. - // Close the client when finished. - if err := client.Close(); err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_NewClient] diff --git a/internal/generated/snippets/logging/Client/Ping/main.go b/internal/generated/snippets/logging/Client/Ping/main.go deleted file mode 100644 index 1a7c1db9693..00000000000 --- a/internal/generated/snippets/logging/Client/Ping/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Client_Ping] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - if err := client.Ping(ctx); err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_Client_Ping] diff --git a/internal/generated/snippets/logging/HTTPRequest/main.go b/internal/generated/snippets/logging/HTTPRequest/main.go deleted file mode 100644 index 0bc22f85a59..00000000000 --- a/internal/generated/snippets/logging/HTTPRequest/main.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_HTTPRequest] - -package main - -import ( - "context" - "net/http" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - httpEntry := logging.Entry{ - Payload: "optional message", - HTTPRequest: &logging.HTTPRequest{ - // TODO: pass in request - Request: &http.Request{}, - // TODO: set the status code - Status: http.StatusOK, - }, - } - lg.Log(httpEntry) -} - -// [END logging_generated_logging_HTTPRequest] diff --git a/internal/generated/snippets/logging/Logger/Flush/main.go b/internal/generated/snippets/logging/Logger/Flush/main.go deleted file mode 100644 index 9045e8c0d0c..00000000000 --- a/internal/generated/snippets/logging/Logger/Flush/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_Flush] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - lg.Log(logging.Entry{Payload: "something happened"}) - lg.Flush() -} - -// [END logging_generated_logging_Logger_Flush] diff --git a/internal/generated/snippets/logging/Logger/Log/json/main.go b/internal/generated/snippets/logging/Logger/Log/json/main.go deleted file mode 100644 index 4e0e0999250..00000000000 --- a/internal/generated/snippets/logging/Logger/Log/json/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_Log_json] - -package main - -import ( - "context" - "encoding/json" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - j := []byte(`{"Name": "Bob", "Count": 3}`) - lg.Log(logging.Entry{Payload: json.RawMessage(j)}) -} - -// [END logging_generated_logging_Logger_Log_json] diff --git a/internal/generated/snippets/logging/Logger/Log/main.go b/internal/generated/snippets/logging/Logger/Log/main.go deleted file mode 100644 index 67177afd470..00000000000 --- a/internal/generated/snippets/logging/Logger/Log/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_Log] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - lg.Log(logging.Entry{Payload: "something happened"}) -} - -// [END logging_generated_logging_Logger_Log] diff --git a/internal/generated/snippets/logging/Logger/Log/struct/main.go b/internal/generated/snippets/logging/Logger/Log/struct/main.go deleted file mode 100644 index 5b762d191a0..00000000000 --- a/internal/generated/snippets/logging/Logger/Log/struct/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_Log_struct] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - type MyEntry struct { - Name string - Count int - } - - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - lg.Log(logging.Entry{Payload: MyEntry{Name: "Bob", Count: 3}}) -} - -// [END logging_generated_logging_Logger_Log_struct] diff --git a/internal/generated/snippets/logging/Logger/LogSync/main.go b/internal/generated/snippets/logging/Logger/LogSync/main.go deleted file mode 100644 index 5104f584e2e..00000000000 --- a/internal/generated/snippets/logging/Logger/LogSync/main.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_LogSync] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - err = lg.LogSync(ctx, logging.Entry{Payload: "red alert"}) - if err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_Logger_LogSync] diff --git a/internal/generated/snippets/logging/Logger/StandardLogger/main.go b/internal/generated/snippets/logging/Logger/StandardLogger/main.go deleted file mode 100644 index 886af123bbc..00000000000 --- a/internal/generated/snippets/logging/Logger/StandardLogger/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_Logger_StandardLogger] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("my-log") - slg := lg.StandardLogger(logging.Info) - slg.Println("an informative message") -} - -// [END logging_generated_logging_Logger_StandardLogger] diff --git a/internal/generated/snippets/logging/LoggerOption/ContextFunc/main.go b/internal/generated/snippets/logging/LoggerOption/ContextFunc/main.go deleted file mode 100644 index 8ecfb3442e8..00000000000 --- a/internal/generated/snippets/logging/LoggerOption/ContextFunc/main.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_ContextFunc] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" - "go.opencensus.io/trace" -) - -func main() { - ctx := context.Background() - client, err := logging.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - lg := client.Logger("logID", logging.ContextFunc(func() (context.Context, func()) { - ctx, span := trace.StartSpan(context.Background(), "this span will not be exported", - trace.WithSampler(trace.NeverSample())) - return ctx, span.End - })) - _ = lg // TODO: Use lg -} - -// [END logging_generated_logging_ContextFunc] diff --git a/internal/generated/snippets/logging/Severity/ParseSeverity/main.go b/internal/generated/snippets/logging/Severity/ParseSeverity/main.go deleted file mode 100644 index e4a22107bcc..00000000000 --- a/internal/generated/snippets/logging/Severity/ParseSeverity/main.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_ParseSeverity] - -package main - -import ( - "fmt" - - "cloud.google.com/go/logging" -) - -func main() { - sev := logging.ParseSeverity("ALERT") - fmt.Println(sev) -} - -// [END logging_generated_logging_ParseSeverity] diff --git a/internal/generated/snippets/logging/ToLogEntry/main.go b/internal/generated/snippets/logging/ToLogEntry/main.go deleted file mode 100644 index 6f80531d624..00000000000 --- a/internal/generated/snippets/logging/ToLogEntry/main.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_ToLogEntry] - -package main - -import ( - "context" - - "cloud.google.com/go/logging" - vkit "cloud.google.com/go/logging/apiv2" - logpb "google.golang.org/genproto/googleapis/logging/v2" -) - -func main() { - e := logging.Entry{ - Payload: "Message", - } - le, err := logging.ToLogEntry(e, "my-project") - if err != nil { - // TODO: Handle error. - } - client, err := vkit.NewClient(context.Background()) - if err != nil { - // TODO: Handle error. - } - _, err = client.WriteLogEntries(context.Background(), &logpb.WriteLogEntriesRequest{ - Entries: []*logpb.LogEntry{le}, - LogName: "stdout", - }) - if err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_ToLogEntry] diff --git a/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go b/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go index 4530203a03c..8fbf6af7fbb 100644 --- a/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_DeleteLog] +// [START logging_v2_generated_LoggingServiceV2_DeleteLog_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_Client_DeleteLog] +// [END logging_v2_generated_LoggingServiceV2_DeleteLog_sync] diff --git a/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go index 1be10132fbb..f81c3aa832e 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_ListLogEntries] +// [START logging_v2_generated_LoggingServiceV2_ListLogEntries_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_Client_ListLogEntries] +// [END logging_v2_generated_LoggingServiceV2_ListLogEntries_sync] diff --git a/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go b/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go index 4baf13d7893..205d1dc71ef 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_ListLogs] +// [START logging_v2_generated_LoggingServiceV2_ListLogs_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_Client_ListLogs] +// [END logging_v2_generated_LoggingServiceV2_ListLogs_sync] diff --git a/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go b/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go index f66c3f07139..d0ddc7c4f97 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_ListMonitoredResourceDescriptors] +// [START logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_Client_ListMonitoredResourceDescriptors] +// [END logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_sync] diff --git a/internal/generated/snippets/logging/apiv2/Client/NewClient/main.go b/internal/generated/snippets/logging/apiv2/Client/NewClient/main.go deleted file mode 100644 index ba2c1508b06..00000000000 --- a/internal/generated/snippets/logging/apiv2/Client/NewClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_apiv2_NewClient] - -package main - -import ( - "context" - - logging "cloud.google.com/go/logging/apiv2" -) - -func main() { - ctx := context.Background() - c, err := logging.NewClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END logging_generated_logging_apiv2_NewClient] diff --git a/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go index 6b016ea0b0e..f3ea6fd335f 100644 --- a/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_TailLogEntries] +// [START logging_v2_generated_LoggingServiceV2_TailLogEntries_sync] package main @@ -60,4 +60,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_Client_TailLogEntries] +// [END logging_v2_generated_LoggingServiceV2_TailLogEntries_sync] diff --git a/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go index f572f75abad..814a06d931b 100644 --- a/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_Client_WriteLogEntries] +// [START logging_v2_generated_LoggingServiceV2_WriteLogEntries_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_Client_WriteLogEntries] +// [END logging_v2_generated_LoggingServiceV2_WriteLogEntries_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go index 9aecf76d6db..a37f0fcbfe8 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_CreateBucket] +// [START logging_v2_generated_ConfigServiceV2_CreateBucket_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_CreateBucket] +// [END logging_v2_generated_ConfigServiceV2_CreateBucket_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go index 15656025beb..986d677ccb1 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_CreateExclusion] +// [START logging_v2_generated_ConfigServiceV2_CreateExclusion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_CreateExclusion] +// [END logging_v2_generated_ConfigServiceV2_CreateExclusion_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go index ab23ca5a136..2dd72e485fe 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_CreateSink] +// [START logging_v2_generated_ConfigServiceV2_CreateSink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_CreateSink] +// [END logging_v2_generated_ConfigServiceV2_CreateSink_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go index e2726fbfe78..f24e4e352f2 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_CreateView] +// [START logging_v2_generated_ConfigServiceV2_CreateView_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_CreateView] +// [END logging_v2_generated_ConfigServiceV2_CreateView_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go index a9844dc8e18..4adef411858 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_DeleteBucket] +// [START logging_v2_generated_ConfigServiceV2_DeleteBucket_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_DeleteBucket] +// [END logging_v2_generated_ConfigServiceV2_DeleteBucket_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go index f78f4622b5c..298c907f84f 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_DeleteExclusion] +// [START logging_v2_generated_ConfigServiceV2_DeleteExclusion_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_DeleteExclusion] +// [END logging_v2_generated_ConfigServiceV2_DeleteExclusion_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go index 65fc571be6c..f6cad54ac1c 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_DeleteSink] +// [START logging_v2_generated_ConfigServiceV2_DeleteSink_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_DeleteSink] +// [END logging_v2_generated_ConfigServiceV2_DeleteSink_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go index 5b75c82b288..6533fa76a49 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_DeleteView] +// [START logging_v2_generated_ConfigServiceV2_DeleteView_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_DeleteView] +// [END logging_v2_generated_ConfigServiceV2_DeleteView_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go index 59a25a170ac..a71aaf682d1 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_GetBucket] +// [START logging_v2_generated_ConfigServiceV2_GetBucket_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_GetBucket] +// [END logging_v2_generated_ConfigServiceV2_GetBucket_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go index 9be2d5b50f3..0ea0d51bbf8 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_GetCmekSettings] +// [START logging_v2_generated_ConfigServiceV2_GetCmekSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_GetCmekSettings] +// [END logging_v2_generated_ConfigServiceV2_GetCmekSettings_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go index be3d96e9bfc..fe09f9552dd 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_GetExclusion] +// [START logging_v2_generated_ConfigServiceV2_GetExclusion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_GetExclusion] +// [END logging_v2_generated_ConfigServiceV2_GetExclusion_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go index 3f6660eaa6d..190bde75dd6 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_GetSink] +// [START logging_v2_generated_ConfigServiceV2_GetSink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_GetSink] +// [END logging_v2_generated_ConfigServiceV2_GetSink_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go index eb8d456272f..58eab5560a7 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_GetView] +// [START logging_v2_generated_ConfigServiceV2_GetView_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_GetView] +// [END logging_v2_generated_ConfigServiceV2_GetView_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go index 4e3877fc63e..b13064691f8 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_ListBuckets] +// [START logging_v2_generated_ConfigServiceV2_ListBuckets_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_ListBuckets] +// [END logging_v2_generated_ConfigServiceV2_ListBuckets_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go index 7e6792705d8..dfa26a367ee 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_ListExclusions] +// [START logging_v2_generated_ConfigServiceV2_ListExclusions_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_ListExclusions] +// [END logging_v2_generated_ConfigServiceV2_ListExclusions_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go index 9ca534788c6..e894c28870a 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_ListSinks] +// [START logging_v2_generated_ConfigServiceV2_ListSinks_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_ListSinks] +// [END logging_v2_generated_ConfigServiceV2_ListSinks_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go index 080fe95fbc5..894ac9ff133 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_ListViews] +// [START logging_v2_generated_ConfigServiceV2_ListViews_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_ListViews] +// [END logging_v2_generated_ConfigServiceV2_ListViews_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/NewConfigClient/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/NewConfigClient/main.go deleted file mode 100644 index 231d3a6a905..00000000000 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/NewConfigClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_apiv2_NewConfigClient] - -package main - -import ( - "context" - - logging "cloud.google.com/go/logging/apiv2" -) - -func main() { - ctx := context.Background() - c, err := logging.NewConfigClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END logging_generated_logging_apiv2_NewConfigClient] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go index 65746f6c958..29e190f79e4 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UndeleteBucket] +// [START logging_v2_generated_ConfigServiceV2_UndeleteBucket_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_ConfigClient_UndeleteBucket] +// [END logging_v2_generated_ConfigServiceV2_UndeleteBucket_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go index 4838a457223..bb6447754e0 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UpdateBucket] +// [START logging_v2_generated_ConfigServiceV2_UpdateBucket_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_UpdateBucket] +// [END logging_v2_generated_ConfigServiceV2_UpdateBucket_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go index 1b14ff3e2ae..b1454b87627 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UpdateCmekSettings] +// [START logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_UpdateCmekSettings] +// [END logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go index 6c246dc35ba..da9753c0929 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UpdateExclusion] +// [START logging_v2_generated_ConfigServiceV2_UpdateExclusion_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_UpdateExclusion] +// [END logging_v2_generated_ConfigServiceV2_UpdateExclusion_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go index a6e76efffde..feec3efa39e 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UpdateSink] +// [START logging_v2_generated_ConfigServiceV2_UpdateSink_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_UpdateSink] +// [END logging_v2_generated_ConfigServiceV2_UpdateSink_sync] diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go index 3d2220ae770..2e0b3ccda0b 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_ConfigClient_UpdateView] +// [START logging_v2_generated_ConfigServiceV2_UpdateView_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_ConfigClient_UpdateView] +// [END logging_v2_generated_ConfigServiceV2_UpdateView_sync] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go index a10b76a7dc5..c3c376f6d88 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_MetricsClient_CreateLogMetric] +// [START logging_v2_generated_MetricsServiceV2_CreateLogMetric_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_MetricsClient_CreateLogMetric] +// [END logging_v2_generated_MetricsServiceV2_CreateLogMetric_sync] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go index 8be65f1b731..98ae2485996 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_MetricsClient_DeleteLogMetric] +// [START logging_v2_generated_MetricsServiceV2_DeleteLogMetric_sync] package main @@ -39,4 +39,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_MetricsClient_DeleteLogMetric] +// [END logging_v2_generated_MetricsServiceV2_DeleteLogMetric_sync] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go index df77579f960..8dedc920838 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_MetricsClient_GetLogMetric] +// [START logging_v2_generated_MetricsServiceV2_GetLogMetric_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_MetricsClient_GetLogMetric] +// [END logging_v2_generated_MetricsServiceV2_GetLogMetric_sync] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go index efacb225aaf..b6f1e527857 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_MetricsClient_ListLogMetrics] +// [START logging_v2_generated_MetricsServiceV2_ListLogMetrics_sync] package main @@ -51,4 +51,4 @@ func main() { } } -// [END logging_generated_logging_apiv2_MetricsClient_ListLogMetrics] +// [END logging_v2_generated_MetricsServiceV2_ListLogMetrics_sync] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/NewMetricsClient/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/NewMetricsClient/main.go deleted file mode 100644 index a45381beaee..00000000000 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/NewMetricsClient/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_apiv2_NewMetricsClient] - -package main - -import ( - "context" - - logging "cloud.google.com/go/logging/apiv2" -) - -func main() { - ctx := context.Background() - c, err := logging.NewMetricsClient(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use client. - _ = c -} - -// [END logging_generated_logging_apiv2_NewMetricsClient] diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go index aeb57b7ff6a..10144f4c996 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START logging_generated_logging_apiv2_MetricsClient_UpdateLogMetric] +// [START logging_v2_generated_MetricsServiceV2_UpdateLogMetric_sync] package main @@ -43,4 +43,4 @@ func main() { _ = resp } -// [END logging_generated_logging_apiv2_MetricsClient_UpdateLogMetric] +// [END logging_v2_generated_MetricsServiceV2_UpdateLogMetric_sync] diff --git a/internal/generated/snippets/logging/logadmin/Client/CreateMetric/main.go b/internal/generated/snippets/logging/logadmin/Client/CreateMetric/main.go deleted file mode 100644 index 9caec2322d9..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/CreateMetric/main.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_CreateMetric] - -package main - -import ( - "context" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - err = client.CreateMetric(ctx, &logadmin.Metric{ - ID: "severe-errors", - Description: "entries at ERROR or higher severities", - Filter: "severity >= ERROR", - }) - if err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_logadmin_Client_CreateMetric] diff --git a/internal/generated/snippets/logging/logadmin/Client/CreateSink/main.go b/internal/generated/snippets/logging/logadmin/Client/CreateSink/main.go deleted file mode 100644 index 6e035298043..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/CreateSink/main.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_CreateSink] - -package main - -import ( - "context" - "fmt" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - sink, err := client.CreateSink(ctx, &logadmin.Sink{ - ID: "severe-errors-to-gcs", - Destination: "storage.googleapis.com/my-bucket", - Filter: "severity >= ERROR", - }) - if err != nil { - // TODO: Handle error. - } - fmt.Println(sink) -} - -// [END logging_generated_logging_logadmin_Client_CreateSink] diff --git a/internal/generated/snippets/logging/logadmin/Client/DeleteLog/main.go b/internal/generated/snippets/logging/logadmin/Client/DeleteLog/main.go deleted file mode 100644 index 1533780baf4..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/DeleteLog/main.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_DeleteLog] - -package main - -import ( - "context" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - err = client.DeleteLog(ctx, "my-log") - if err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_logadmin_Client_DeleteLog] diff --git a/internal/generated/snippets/logging/logadmin/Client/DeleteMetric/main.go b/internal/generated/snippets/logging/logadmin/Client/DeleteMetric/main.go deleted file mode 100644 index dfc8b1c63a8..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/DeleteMetric/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_DeleteMetric] - -package main - -import ( - "context" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - if err := client.DeleteMetric(ctx, "severe-errors"); err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_logadmin_Client_DeleteMetric] diff --git a/internal/generated/snippets/logging/logadmin/Client/DeleteSink/main.go b/internal/generated/snippets/logging/logadmin/Client/DeleteSink/main.go deleted file mode 100644 index 79a4a640238..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/DeleteSink/main.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_DeleteSink] - -package main - -import ( - "context" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - if err := client.DeleteSink(ctx, "severe-errors-to-gcs"); err != nil { - // TODO: Handle error. - } -} - -// [END logging_generated_logging_logadmin_Client_DeleteSink] diff --git a/internal/generated/snippets/logging/logadmin/Client/Entries/main.go b/internal/generated/snippets/logging/logadmin/Client/Entries/main.go deleted file mode 100644 index 421319874db..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/Entries/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_Entries] - -package main - -import ( - "context" - - "cloud.google.com/go/logging/logadmin" -) - -func main() { - ctx := context.Background() - client, err := logadmin.NewClient(ctx, "my-project") - if err != nil { - // TODO: Handle error. - } - it := client.Entries(ctx, logadmin.Filter(`logName = "projects/my-project/logs/my-log"`)) - _ = it // TODO: iterate using Next or iterator.Pager. -} - -// [END logging_generated_logging_logadmin_Client_Entries] diff --git a/internal/generated/snippets/logging/logadmin/Client/Entries/pagination/main.go b/internal/generated/snippets/logging/logadmin/Client/Entries/pagination/main.go deleted file mode 100644 index b6b1036f7e1..00000000000 --- a/internal/generated/snippets/logging/logadmin/Client/Entries/pagination/main.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// [START logging_generated_logging_logadmin_Client_Entries_pagination] - -package main - -import ( - "bytes" - "context" - "flag" - "fmt" - "html/template" - "log" - "net/http" - - "cloud.google.com/go/logging" - "cloud.google.com/go/logging/logadmin" - "google.golang.org/api/iterator" -) - -var ( - client *logadmin.Client - projectID = flag.String("project-id", "", "ID of the project to use") -) - -func main() { - // This example demonstrates how to iterate through items a page at a time - // even if each successive page is fetched by a different process. It is a - // complete web server that displays pages of log entries. To run it as a - // standalone program, rename both the package and this function to "main". - ctx := context.Background() - flag.Parse() - if *projectID == "" { - log.Fatal("-project-id missing") - } - var err error - client, err = logadmin.NewClient(ctx, *projectID) - if err != nil { - log.Fatalf("creating logging client: %v", err) - } - - http.HandleFunc("/entries", handleEntries) - log.Print("listening on 8080") - log.Fatal(http.ListenAndServe(":8080", nil)) -} - -var pageTemplate = template.Must(template.New("").Parse(` -
{{.}} |